Janitor AI API key: how to set up a proxy and your own key
Updated · 6 min read
To use your own API key in Janitor AI, create a key with a proxy provider such as OpenRouter, then open a chat, click the gear icon → API Settings → Add Configuration, and enter the model ID, the proxy URL https://openrouter.ai/api/v1/chat/completions and your key. Click Add, Save Settings, and refresh the page. You don't need a key to use Janitor AI at all: the free tier runs on Janitor's own model, JLLM. A key is for using other models, such as DeepSeek, Gemma or Claude.
Do you need an API key for Janitor AI?
No. Janitor's subscription FAQ lists the free tier as unlimited chats with "access to standard chat models" and a context limit of around 9,000 tokens, and says a free option will always stay. The context is the bot's memory: once a chat passes it, the oldest messages are forgotten.
People connect their own key, which Janitor calls a proxy, for three reasons:
- Other models. Through OpenRouter you can pick from hundreds of models, including free ones.
- Longer memory. Many models accept far more than 9,000 tokens of context.
- Control. You choose the model and see what each message costs on your provider's dashboard.
Step 1: get an OpenRouter API key
Janitor's own quickstart uses OpenRouter, because one key covers many models, and some of them are free.
- Sign up at openrouter.ai.
- Open your profile → Keys → Create key, and copy the key somewhere safe.
- Optional: buy at least $10 of credits. Free models then allow 1,000 requests a day instead of 50, and you can use paid models.
The full walkthrough, with per-key spending limits, is in how to get an OpenRouter API key.
Step 2: fill in Janitor AI's API settings
Open any chat on janitorai.com, click the gear icon at the top right, then API Settings → Add Configuration. The fields:
| Field | What to enter |
|---|---|
| Config Name | Any name, e.g. My OpenRouter |
| Model Name | The exact model ID from OpenRouter, e.g. google/gemma-4-31b-it:free |
| Proxy URL | https://openrouter.ai/api/v1/chat/completions |
| API Key | Your OpenRouter key, with no spaces before or after |
| Custom Prompt | Leave blank at first |
Click Add, then Save Settings, then refresh the whole page and send a test message. Janitor's help center stresses two details: the proxy URL is the full /chat/completions address, "with no extra slashes, no repeated segments", and the model name must be copied exactly.
To switch back to the built-in model, select JLLM in the same settings. Janitor suggests trying that first whenever a proxy stops answering. If JLLM works, the problem is on the proxy's side.
Which free models work today
Free models on OpenRouter have IDs ending in :free. They come and go, and many Janitor tutorials still name DeepSeek models that are gone. On 2026-12-01 OpenRouter's model list had no free DeepSeek model, so deepseek/deepseek-chat-v3-0324:free and deepseek/deepseek-r1:free return "No endpoints found". Pick a current ID from this list, which updates daily:
10 free models on OpenRouter, from its public models API (updated daily, last on ), newest first:
| Model | Model ID to paste in your app | Context | Input |
|---|---|---|---|
| Free Models Router | openrouter/free | 200K | Text, Image |
| Baidu: ERNIE-5.5-Flash-Preview | baidu/ernie-5.5-flash-preview:free | 1M | Text |
| LiquidAI: LFM3-1.7B | liquid/lfm-3-1.7b:free | 262K | Text |
| Particle AI: Particle-1 | particle-ai/particle-1:free | 1M | Text, Image |
| Recursive: Flint | recursive/flint-v1.0:free | 262K | Text |
| NVIDIA: Nemotron 3.5 Super VL | nvidia/nemotron-3.5-super-vl:free | 1M | Text, Image, Video |
| NVIDIA: Nemotron 3.5 Lightning | nvidia/nemotron-3.5-lightning:free | 1M | Text |
| NVIDIA: Nemotron 3 Ultra | nvidia/nemotron-3-ultra-550b-a55b:free | 1M | Text |
| NVIDIA: Nemotron 3 Nano Omni | nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free | 256K | Text, Audio, Image, Video |
| Google: Gemma 4 26B A4B | google/gemma-4-26b-a4b-it:free | 262K | Image, Text, Video |
| Google: Gemma 4 31B | google/gemma-4-31b-it:free | 262K | Image, Text, Video |
Limits for free models, from OpenRouter's documentation: 20 requests per minute and 50 per day, or 1,000 per day once you have bought at least $10 of credits. Janitor's error guide adds that failed requests count toward the daily limit too. For free models you may also need to allow model training in OpenRouter's privacy settings; otherwise you get "No endpoints found matching your data policy".
If you want DeepSeek specifically, use a paid model ID such as deepseek/deepseek-v4.1-flash (the current DeepSeek Flash model on OpenRouter on 2026-12-01) with credits on your OpenRouter account. A direct DeepSeek API key is another option. Janitor's help center only documents OpenRouter, though, so test any other provider with a short message before you start a long chat.
Common Janitor AI API errors and fixes
Janitor's first fix for any error: check that the configuration is marked Active, click Save Settings even if nothing changed, refresh the page, and run Test in the configuration.
| Error | What it means | Fix |
|---|---|---|
| A network error occurred (General Connection Error) | Usually a wrong proxy URL, or no refresh after saving | Use https://openrouter.ai/api/v1/chat/completions exactly, save, refresh |
| Network Error after Check Key/Model | Janitor calls that button "buggy" | Ignore it; save and refresh instead |
| 400 Bad Request | Wrong settings, or the chat is longer than the model's context | Check the model name, URL and key for typos; shorten the chat or memory |
| 401 Invalid Credentials | Problem with the API key | Create a new key and paste it again |
| 402 / "Prompt tokens limit" | Not enough credits for a paid model | Add credits or switch to a :free model |
| 404 No endpoints found | The model ID no longer exists or is unavailable | Pick a current model ID from the list above |
| 429 free-models-per-day | Daily free limit reached | Wait for the reset at midnight UTC, or buy $10 of credits |
| 429 temporarily rate-limited upstream | The free model is overloaded | Try another model or its paid version |
| 502 Provider returned error | The model's host is down | Check the model's uptime tab on OpenRouter or switch models |
Janitor has a separate 401 article for login problems: if Janitor itself keeps logging you out or rejecting requests, it suggests logging out and in, clearing cookies, or trying another browser.
Settings that affect quality
- Context and bot size. Janitor's token guide says the bot's permanent information (personality, scenario, chat memory and advanced prompts) works best under 1,500 tokens; past 2,000 it starts crowding out the conversation. A model with a bigger context helps, but a lean bot still matters.
- Custom Prompt. Janitor's quickstart leaves it blank for the first setup. Add instructions there only after the connection works, so you can tell a prompt problem from a connection problem.
- Cost on paid models. Every message resends the bot definition and recent chat history, so long roleplays use many tokens per reply. Set a credit limit on your OpenRouter key so one chat can't drain your balance. Per-token prices are compared in LLM API pricing.
janitor+ Router: models without your own key
Janitor also has its own paid route. janitor+ Router is for janitor+ subscribers on the web: select "janitor+ Router" as the API source in API Settings, open the Router wallet (subscribers can claim $1 of launch credits), and choose a model. Usage is billed per token at the rates shown for each model, and you don't need a key from a model provider. Janitor says Router is "an alternative to proxy setups, not a forced migration", so your own OpenRouter key keeps working.
Apps that take your key directly
Janitor AI is a website, and your proxy requests go through it. If you'd rather keep chats and keys on your own device, open-source roleplay apps such as SillyTavern, LettuceAI and Kallamo connect to OpenRouter, Anthropic, Google and others with your own key, or to local models. They are listed below with other apps that accept an OpenRouter key.
Roleplay and chat apps that run on your own key
VisitSillyTavern
Free, open source · Self-hosted · Open source
Open-source LLM frontend for power users, popular for role-play and creative writing. Connects to many APIs with your own keys.
Works with:OpenAIAnthropicGoogle GeminiOpenRouter+3 more





Open-source personal AI agent with desktop, mobile and CLI apps; the CLI can run on your own OpenRouter, Anthropic, OpenAI, xAI, Gemini or Groq key instead of Flowly Cloud.
Works with:OpenRouterAnthropicOpenAIxAI+2 more

VisitRobin Review
Free · Open source
Free, open-source AI code reviewer that runs as a GitHub Action in your repo and reviews every pull request with your own LLM API key.
Works with:OpenRouterOpenAIGroqOllama
Questions
Does Janitor AI need an API key?
No. The free tier includes Janitor's own model (JLLM) with unlimited chats and a context of about 9,000 tokens. You only need a key if you want a different model through a proxy such as OpenRouter.
What do I put in Janitor AI's API settings?
Open a chat, click the gear icon, then API Settings and Add Configuration. Enter a config name, the exact model ID (for example from OpenRouter), the proxy URL https://openrouter.ai/api/v1/chat/completions, and your API key. Leave Custom Prompt blank at first, click Add and Save Settings, then refresh the page.
Is there a free API for Janitor AI?
Yes, through OpenRouter's free models (IDs ending in :free): 50 requests a day, or 1,000 a day once you have bought at least $10 of credits, and at most 20 per minute. The free list changes often; on 2026-12-01 it had no DeepSeek model, so older guides that use deepseek-chat-v3-0324:free no longer work.
Why do I get a network error in Janitor AI?
Janitor's help center says the usual cause is a wrong proxy URL or not refreshing after saving. Use https://openrouter.ai/api/v1/chat/completions exactly, save, and reload the page. It also says the Check Key/Model button can show a false network error.
What is janitor+ Router?
A paid option for janitor+ subscribers on the web: you pick a model in API Settings and pay per token from a Router wallet, without your own provider key. It is offered as an alternative to proxy setups, and external proxies still work.
Sources
Checked against the providers' own documentation on 2026-12-01. Prices and limits change; the links below have the current figures.
- help.janitorai.com/en/article/tldr-quickstart-proxy-instructions-1x0fptu/
- help.janitorai.com/en/article/openrouter-error-guide-10ear52/
- help.janitorai.com/en/article/troubleshooting-deepseek-via-openrouter-8xko1u/
- help.janitorai.com/en/article/error-rate-limitnetwork-error-49600v/
- help.janitorai.com/en/article/janitor-router-1dyrzul/
- help.janitorai.com/en/article/faq-subscription-janitorai-1o8ccf2/
- help.janitorai.com/en/article/tokens-your-ais-memory-budget-brmwx3/
- openrouter.ai/docs/api/reference/limits
- openrouter.ai/api/v1/models