OpenAI Reverse Proxy for Janitor AI: Setup Steps
To use an OpenAI reverse proxy with Janitor AI you need three values: a proxy URL, an API key and a model name. This guide shows where each goes, how to test the connection first, and how to fix the usual errors.
Last updated

Summary
- 01Janitor AI needs the proxy URL, your key and the model name uncensored.
- 01Test the endpoint with curl before you touch the chat settings.
- 01Most failures are a wrong URL path, a pasted space in the key, or a 429 from too many parallel requests.
- 01Chats stay cheap: a typical 8,000-token context message costs about $0.00135.
What you need before you start
Janitor AI lets you replace its built-in model with any OpenAI-style endpoint. People call that a reverse proxy setup, and if you searched for openai reverse proxy janitor ai, this is what you are after. Collect these first:
- Proxy URL:
https://api.openaireverseproxy.com/v1. Janitor AI usually wants the full chat endpoint, which is the same address with/chat/completionsadded at the end. - API key: from the API key page. Sign up with Google or with email and password, then claim the $0.50 trial credit with one click. It is valid for 7 days and one per person.
- Model name:
uncensored. There is only one model ID.
The service is an OpenAI-compatible text API. It runs one open-weight model from an independent provider, tuned to answer without content refusals for lawful adult use. It is not the official API of OpenAI or any other vendor. The hard limit is that sexual content involving minors is never allowed.
Test the endpoint with curl first
Chat front ends hide error messages. If something is wrong in Janitor AI you often see only a generic failure. A one-minute curl test tells you whether the key, the URL and the model name are right before you blame the settings screen.
curl https://api.openaireverseproxy.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Say hello in one sentence."}],
"max_tokens": 50
}'
A JSON reply with a choices array means the endpoint works. Look at the response headers too: X-Balance-USD shows what is left on your account. If this call fails, fix it here and come back to Janitor AI afterwards.
Enter the settings in Janitor AI
- Open a chat with any character and open the API settings from the chat menu.
- Choose the proxy option, not the built-in model.
- In the model name field type
uncensored, in lowercase, with no spaces. - In the proxy URL field paste
https://api.openaireverseproxy.com/v1/chat/completions. - In the key field paste the key exactly as shown, with no leading or trailing space.
- Save the settings, then reload the chat page so the new values take effect.
Menu names change when the app is updated, so follow the labels you see rather than the exact order above. The three values are what matter.
If Janitor AI accepts only the base address and appends the path itself, use https://api.openaireverseproxy.com/v1 instead. When one form returns a not-found error, the other one is usually the fix.
Generation settings that work well
The sliders affect both quality and cost, so set them on purpose.
Context size
The model accepts up to 100,000 tokens, prompt plus reply. You do not need to fill it. A character definition, a persona and the last stretch of chat fit comfortably in 8,000 to 16,000 tokens, and a smaller context also means a cheaper bill and faster replies. Raise it only if the character forgets things that matter.
Max tokens
The parameter is optional here, because a reply can use the rest of the window. In a chat app you will want a limit, such as 300 to 600 tokens, so a reply stays a paragraph or two and output cost stays low.
Temperature
Temperature, top_p, stop, seed and the penalties are passed through to the model. Start near 0.8 to 1.0 for creative fiction. If the character rambles or repeats itself, lower the temperature a little or add a small frequency penalty.
What a chat costs
Billing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit. Say each message sends an 8,000-token context and receives a 300-token reply:
- Input: 8,000 / 1,000,000 x $0.15 = $0.0012
- Output: 300 / 1,000,000 x $0.50 = $0.00015
- Per message: $0.00135
One hundred messages cost $0.135. The $0.50 trial credit covers roughly 370 messages of that size (0.50 / 0.00135 = 370). The estimate is rough because the context grows as the chat continues, so later messages cost more than earlier ones. After the trial, top up with any whole amount from $20 to $500; credit never expires, and failed or refused requests are not charged. Details are on the pricing page.
Fixing common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 or unauthorized | Key mistyped, truncated, or replaced | Copy the key again from the key page. If you regenerated it, the old key stopped working at once. |
| 404 or not found | Wrong path in the URL | Switch between the full /v1/chat/completions address and the /v1 base. |
| Model not found | Model name typed differently | Use exactly uncensored. |
| 429 with code concurrency | Too many requests at once | Trial keys allow 2 at once, full keys 8. Close extra tabs and avoid hitting regenerate repeatedly. |
| 429 with code rate_limited | Too many requests per minute | Trial keys allow 60 per minute, full keys 300. Wait a moment. |
| 429 with Retry-After: 5 | Temporary overload | Wait five seconds and send again. |
| Reply never appears | Balance used up or trial expired | Check GET /v1/balance or the X-Balance-USD header and top up. |
A streamed reply keeps its concurrency slot until the stream finishes, so a stuck tab can block your next message on a trial key. Closing the old tab frees the slot.
Getting better replies from the character setup
The model follows the instructions you give it, so a clear character definition matters more than any slider. A few habits help on this endpoint:
- Put the rules first. State the setting, the character's voice and the reply length near the top of the definition, where the model weighs them most.
- Write in the second or third person consistently. Mixed viewpoints produce replies that switch mid-paragraph.
- Give one or two short sample lines. Examples of how the character speaks steer tone better than adjectives.
- Keep the definition short. Every token of it is resent on each message and billed as input. A 1,500-token definition adds 1,500 input tokens to every turn.
Because the model is tuned to answer without content refusals for lawful adult use, you do not need jailbreak-style prompts. Long workaround text only wastes tokens and can confuse the style. Simple, direct instructions work best.
Using it well and safely
Treat the key like a password. Do not paste it into public bot definitions, shared screenshots or forum posts. You can regenerate it at any time on the key page; the old key stops working immediately, and accounts that have topped up can hold up to 5 labeled keys and revoke any of them. That makes it easy to give each app its own key.
Prompts are not used for training. The model is aimed at fiction, roleplay and companion chat for adults. Keep characters and scenes to adults only, because content involving minors is a hard limit and is never permitted.
For the numbers behind the rates, read the OpenAI API pricing comparison, and see the docs for the full parameter list, tool calling and JSON mode.
More guides
FAQ
What proxy URL do I use for Janitor AI?
Use https://api.openaireverseproxy.com/v1/chat/completions, or the base address https://api.openaireverseproxy.com/v1 if the app adds the path itself.
Which model name goes in the model field?
Type uncensored in lowercase. It is the only model ID.
Is there a free way to try it?
New users can claim $0.50 of trial credit with one click on the key page. It lasts 7 days, needs no payment, and is limited to one per person.
Why do I get a 429 error in the middle of a chat?
You sent too many requests at once or per minute for your key type. Wait a few seconds and retry; the error code tells you which limit applied.
Will my chats be used for training?
No. Prompts are not used for training.