Ginza club queen
Sato Akari
An elegant Tokyo Ginza club character with warm, ritual-rich replies for users who want refined emotional companionship.
Janitor AI model setup
Connect Janitor AI to the official xAI Grok API, choose a current model, estimate token cost, fix 401 or 429 errors and protect your API key.
12 min read
Quick answer
Grok in the consumer app and Grok through the xAI API are separate products. To use an xAI model through Janitor AI’s current custom proxy controls, you need an xAI developer API key, the full Chat Completions endpoint `https://api.x.ai/v1/chat/completions` and an active model ID such as grok-4.6 or grok-4.3. API use is token-billed, not covered by a free Grok consumer allowance. Verify Janitor AI’s live field labels before saving because its interface can change.
Featured companions
Three characters refresh on each visit. Cards play a promo video when available and otherwise show the character image.
Ginza club queen
An elegant Tokyo Ginza club character with warm, ritual-rich replies for users who want refined emotional companionship.
Gothic maid
Formal devotion and haunted-house elegance make her a fit for ritual-rich, controlled roleplay.
Pro esports player
A Chengdu AG pro who is focused in matches and softer in private, ideal for users who want a cool, attentive companion with a competitive spark.

Janitor AI Grok API setup guide
People searching Janitor AI Grok are usually not comparing Grok Ani with Janitor AI. They want a working model route: which URL to enter, which Grok model ID to choose, whether a consumer subscription pays for API calls and why the first test returns 401, 404 or 429. This guide owns that setup intent. The separate Grok Ani vs JanitorAI comparison covers the platform decision, while the Janitor AI Advanced Prompts guide covers persistent behavior rules rather than provider access.
The xAI developer API exposes Grok models through an OpenAI-compatible base URL and Chat Completions endpoint. Janitor AI can act as the character-card and conversation frontend while xAI produces the reply, if the current Janitor interface accepts a compatible custom provider. That does not merge the two accounts. A Grok web or app subscription does not automatically create a developer key, pay Janitor requests or move a character card into Grok. Treat provider, frontend and card as three separate layers.
| Route | What it gives you | What it does not give you |
|---|---|---|
| Grok consumer app | Grok chat with consumer-plan limits | An API key for Janitor AI |
| Direct xAI API | Official OpenAI-compatible endpoint and usage billing | A free unlimited model |
| Third-party model gateway | One key for several model providers | The same privacy, price or uptime as direct xAI |
| LumiChat | Hosted character discovery and managed chat | Janitor AI proxy controls or xAI account access |
Create a dedicated xAI developer key and add it only to the provider control in Janitor AI. The official xAI base URL is https://api.x.ai/v1 and the Chat Completions path is /v1/chat/completions, so a field requesting the full proxy URL needs the combined endpoint shown below. Janitor AI’s labels and menus can change, and its public documentation is not always centralized; verify the live screen instead of copying coordinates from an old video. Start with one temporary adult fictional character and no private chat history.
https://api.x.ai/v1/chat/completions.Use an exact model ID that the xAI developer console currently exposes. xAI released grok-4.6 on August 12, 2026 with a 500K context window and lists grok-4.3 with a 1M context window. The biggest context number is not automatically the best roleplay choice: a long character definition, examples, lore and full transcript all consume input tokens and cost money. Test voice consistency, correction handling, repetition and latency on the same ten turns before committing to one model.
| Model | Context listed by xAI | Input / 1M tokens | Output / 1M tokens | Practical note |
|---|---|---|---|---|
| grok-4.6 | 500K | $2.00 | $6.00 | Current frontier model; prices increase above 200K prompt tokens |
| grok-4.5 | 500K | $2.00 | $6.00 | Current model, but 4.6 is newer |
| grok-4.3 | 1M | $1.25 | $2.50 | Lower listed token price and larger context |
xAI bills API input and output tokens. A consumer “free to start” allowance is not API credit. The estimates below apply the official listed base token rates and ignore cached-input discounts, tools, taxes, regional differences and requests above the 200K prompt threshold. They are examples, not a bill forecast. Read the usage object or xAI console for real cost; a long-running Janitor chat can resend a growing context, so input commonly costs more than the latest user message suggests.
| Example request | grok-4.6 estimated token charge | grok-4.3 estimated token charge |
|---|---|---|
| 5K input + 300 output | about $0.0118 | about $0.0070 |
| 20K input + 300 output | about $0.0418 | about $0.0258 |
| 50K input + 500 output | about $0.1030 | about $0.0638 |
Debug one layer at a time. First test the endpoint and key, then the model ID, then one short request, then the character card and prompt stack. Do not solve an authentication error by adding more prompt text. Do not call a model “bad at memory” when the request never reached xAI. Also avoid public reverse proxies that ask for your xAI key without a clear operator, privacy policy and billing path. If a gateway is necessary, compare its model slug, markup, data policy and logs with direct xAI.
| Symptom | Most likely layer | First check |
|---|---|---|
| 401 / unauthorized | API key | Create or copy an active xAI developer key |
| 404 / model not found | URL or model ID | Verify the full endpoint and current model slug |
| 429 / rate limit | xAI account tier or request volume | Wait, reduce requests and check console limits |
| Blank or generic reply | Card, prompt or context | Test one small card and inspect prompt conflicts |
| Cost climbs over time | Growing chat context | Compare input-token usage and summarize only when needed |
| Works in Grok app, fails in Janitor | Consumer access is not API access | Verify console billing, key and endpoint separately |
After connection succeeds, keep stable identity in the card, changing scene facts in Janitor AI Chat Memory, world facts in the appropriate lore layer and response behavior in the Advanced Prompt. Retest one variable at a time. If Grok writes for the user, shorten conflicting examples and add one observable player-agency rule. If cost grows, inspect context rather than deleting essential identity. If replies become repetitive, compare a fresh chat using the same card before rewriting every layer.
Choose direct xAI when you want the official provider route, clear console billing and control over the exact model. Choose a reputable gateway only when consolidated models or payment access is worth another processor in the data path. Choose Janitor AI when card authoring and provider control are the hobby. If the desired outcome is simply to discover a hosted character and begin chatting without API keys, open the LumiChat character library. LumiChat is a separate service; it does not provide an xAI key or unlock Janitor AI features.
It can use an OpenAI-compatible xAI model route when the current Janitor AI provider controls accept the endpoint, key and model ID.
The official xAI Chat Completions endpoint is https://api.x.ai/v1/chat/completions. Verify whether the current field wants the full endpoint or base URL.
No blanket free claim is accurate. The xAI developer API uses token billing, separate from consumer Grok access.
Start with grok-4.6 for the current frontier route or compare grok-4.3 for lower listed token rates and larger context. Test the same card.
The API key is missing, invalid, revoked or not accepted by the xAI developer API. Consumer login credentials are not an API key.
The account or model rate limit was reached. Check the xAI console, reduce request frequency and retry with backoff.
When xAI is the active model route, the prompt needed for generation is sent to xAI. Do not include secrets or unnecessary identifying information.
Yes, when you prefer managed browser character chat. It is a separate platform and does not expose Janitor AI proxy controls.
Continue in LumiChat
Browse active characters, choose a personality that fits, and start chatting in seconds.
Continue the conversation naturally
Janitor AI prompt workflow
A practical Advanced Prompt kit with player-agency, voice, pacing and scene-state templates plus a six-turn A/B test.
Chat memory guide
A practical workflow for deciding what belongs in Chat Memory, Persona, recent history or a Lorebook—and testing whether the bot actually recalls it.
Status and troubleshooting
A symptom-first Janitor AI troubleshooting guide: identify the failing layer, apply the smallest fix and avoid unsafe “unblocked” shortcuts.
AI companion head-to-head
A focused comparison between a turnkey animated companion and a flexible, community-card, text-first roleplay platform.