The three values to fill in
In a frontend that supports a custom proxy, such as Janitor AI, the proxy is simply any server that speaks the OpenAI chat protocol. The app sends its requests there instead of to a built-in provider. You supply three things, and for the claude proxy janitor ai question the answer for this API is below.
| Field | What to enter |
|---|---|
| Proxy URL | https://api.claudeapiproxy.com/v1/chat/completions |
| API key | The key from your account on the API key page |
| Model name | uncensored |
One honest note up front: this is not Claude. It is an independent hosted API for one open-weight model, tuned to answer without content refusals for lawful adult use. It is not the official API of Anthropic or any other vendor. If you need a Claude model, use Anthropic's own service. If you want a capable text model for fiction and roleplay at a low per-token price, the values above are all you need.
What each field does
Proxy URL
This is the address the app sends chat requests to. Many apps of this type expect the full path to the chat completions route, not only the base address. The base address of this API is https://api.claudeapiproxy.com/v1, and the route is /chat/completions on top of it. If the app rejects the short form or returns a 404, use the full one. If your app asks for a base URL instead, give it the short one, and it adds the path itself.
API key
The key is sent in an Authorization: Bearer header. Paste it exactly, with no spaces or quotes at either end. Treat it like a password: do not post screenshots of the settings screen.
Model name
The proxy may host several models, and the model field says which one to use. This API has one model ID, uncensored. A typo gives an error or an empty reply, so copy it.
Generation settings
Temperature, top-p and the penalties are passed through to the model. The context size field in the app limits how much chat history is sent. The API allows up to 100,000 tokens for prompt and reply together, but a smaller context is cheaper and often faster, and 8,000 to 32,000 is plenty for most roleplay chats.
Step by step in the app
Menus change between app versions, so treat the labels below as a guide.
- Create your account on the site, sign in with Google or with email and password, and open the API key page. Copy your key. New users can claim $0.50 of trial credit there with one click.
- In the chat, open the API or settings menu and choose the proxy or custom option, instead of the built-in providers.
- Paste the proxy URL, the key and the model name into their fields.
- Set the context size to something modest, such as 8,000 or 16,000, and a reply length around 300 to 600 tokens to begin with.
- Save the settings. Many apps need a page reload before the new values take effect.
- Send a short message. If you get a reply, the setup works.
Other roleplay frontends use the same pattern. SillyTavern, for example, lets you add an OpenAI-compatible endpoint with a URL, key and model. The values do not change from app to app.
Test the endpoint before you blame the app
When a frontend shows a vague error, take it out of the picture. Run the same URL, key and model in a terminal:
curl https://api.claudeapiproxy.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "uncensored", "messages": [{"role": "user", "content": "Say hi in three words."}]}'
A JSON reply with choices means the key, URL and model are fine, and the problem is in the app settings. An error body tells you what is wrong. You can also list the models the key can reach:
curl https://api.claudeapiproxy.com/v1/models -H "Authorization: Bearer YOUR_KEY"Common errors and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 or "invalid key" | Typo, extra space, or an old key after regenerating | Copy the current key again from the API key page |
| 404 or "not found" | URL stops at /v1, or has a typo | Use the full chat completions URL |
| Model error or empty reply | Wrong model name | Enter uncensored in lowercase |
| 429 with code concurrency | Too many requests at once, such as rapid regenerate clicks or two tabs | Wait for the reply to finish. Trial keys allow 2 at once |
| 429 with code rate_limited | Over the requests-per-minute limit | Slow down. Trial keys allow 60 per minute, full keys 300 |
| 429 with Retry-After: 5 | Temporary overload | Retry after five seconds |
| Replies stop working after a while | Balance used up | Check the balance and top up |
A streamed reply holds its concurrency slot until it ends, so cancelling and resending quickly can briefly count twice. If you regenerate a lot, a full key with 8 concurrent requests is more comfortable than a trial key.
To check the balance without opening the site, call GET /v1/balance with your key, or read the X-Balance-USD header on any response.
What a roleplay session costs
Frontends of this kind send the character description and the recent chat history with every message, so the input is much larger than the text you type. Take a context of 8,000 tokens and 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, so 100 messages cost $0.135
With a 20,000-token context, input is $0.003 and the message costs $0.00315, so 100 messages cost $0.315. The trial credit of $0.50 covers about 370 messages at the smaller context. A $20 top-up, the minimum, covers about 14,800 of them. Top-ups can be any whole amount from $20 to $500, paid in crypto (USDT on TRC20 or USDC on Base), with a bonus of 5% from $50, 10% from $100 and 15% from $200.
The reason to keep the context modest is visible in those numbers: a bigger window multiplies the input cost on every single message. The pricing page lists the rates, and the docs cover the request format and limits. For more on how billing surprises happen, see fixing common proxy billing mistakes.
Content rules
The model is tuned to answer without content refusals for lawful adult use, and that covers fiction, roleplay and companion-style apps for adults. One limit is fixed: no sexual content involving minors, in any framing. Requests that cross it are refused. Failed or refused requests are not charged. Prompts are not used for training.
