Updated
Janitor AI and OpenAI-Compatible APIs: How They Fit
People searching janitor ai open ai usually want one of two things: to plug an OpenAI-style API into Janitor AI, or to know whether a different API can replace it. This article covers both, and explains where each tool sits.

Key points
- Janitor AI is a chat front end. An OpenAI-compatible API is the model backend. They are layers, not rivals.
- Front ends that accept a custom proxy or OpenAI-style URL can use this API with model
uncensored. - This is not OpenAI. It shares the request format only, and uses one open-weight model with no content refusals for lawful adult use.
- Check Janitor AI's current interface and terms; menus and rules change.
Two layers: the chat site and the model API
Janitor AI is a website where you chat with characters. The thing that writes the replies is a language model somewhere behind it. Janitor AI has offered its own built-in option and has also allowed users to connect an outside model through API or proxy settings. That second route is why the janitor ai open ai question exists: the OpenAI chat completions format became the common language that many front ends speak.
An OpenAI-compatible API is any service that accepts the same JSON request and returns the same JSON response as that format. It does not have to be run by OpenAI. This site is one example: a hosted text API with POST /v1/chat/completions and GET /v1/models, model ID uncensored, authenticated with Authorization: Bearer your-key. Because the format matches, any front end that lets you set a custom OpenAI-style URL can talk to it.
So the honest comparison is not Janitor AI versus an API. It is: which front end do you like, and which backend do you plug into it?
What this API is, and what it is not
The facts that matter before you connect anything:
- It serves one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use.
- It is not the official API of OpenAI, Meta, Mistral, Qwen, DeepSeek, xAI, Google, Anthropic or any other vendor, and it does not route between them.
- It is text only. No images, audio or video, no embeddings, no fine-tuning.
- The context window is 100,000 tokens, prompt plus reply.
- It supports streaming, tool calling and JSON mode, and passes temperature, top_p, stop, seed and penalties through.
- One firm limit: no sexual content involving minors.
If you need a particular vendor's model with its own behaviour and policies, use that vendor's service and check their current pricing and usage rules. If you want one unrestricted-for-lawful-use model behind a standard interface, this API fits.
Connect a front end that accepts a proxy
Interface names change, so I will describe the fields and not the exact menus. In Janitor AI, look in the chat or API settings for the option that lets you use an external or proxy model. Check the site's current instructions, since the layout and rules are theirs to change. You will normally see three fields:
| Field | Value |
|---|---|
| URL or base URL | https://api.wannsfw.cc/v1 (or the full /v1/chat/completions path if the field wants a complete endpoint) |
| API key | The key from the API key page |
| Model name | uncensored |
Save the settings and send a short message. If you get an error, do not guess. Reproduce the call outside the front end, which tells you at once whether the fault is your key or the app's configuration:
curl https://api.wannsfw.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"Say hello in one sentence."}],"stream":false}'The response includes the headers X-Request-Id and X-Balance-USD. Keep the request ID if you ever need to look into a failed call.
If it does not connect
Most failed connections come from a short list of causes. Check them in this order:
- Copy and paste errors. A trailing space or line break in the key is common. Paste into a plain text editor first.
- Wrong path. Some apps append
/chat/completionsthemselves, others expect it in the field. If one form fails with 404, try the other. - Model name. It must be
uncensored, in lowercase. - Empty balance. Check
X-Balance-USDin a response header from curl. Trial credit expires after 7 days. - Rate limits. Look for 429 and read the error code before retrying.
When none of that explains it, run the curl call from the earlier section. If curl works from your machine, the key, URL and model are correct and the cause is inside the front end or its network path.
The same call from code
If the front end is not for you, the same endpoint works from any OpenAI SDK. Only the base URL, the key and the model name change.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.wannsfw.cc/v1",
api_key=os.environ["API_KEY"],
)
reply = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": "You are a sardonic innkeeper in a fantasy novel. Stay in character."},
{"role": "user", "content": "A stranger walks in at midnight. What do you say?"},
],
temperature=0.9,
max_tokens=250,
)
print(reply.choices[0].message.content)The same in Node:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.wannsfw.cc/v1",
apiKey: process.env.API_KEY,
});
const reply = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Describe a rainy harbour town in two sentences." }],
});
console.log(reply.choices[0].message.content);Moving a project between OpenAI-style backends is a three-line change, which is the real benefit of the shared format. The docs show the remaining options.
Side by side: choosing a setup
| Question | Hosted chat site only | Chat site or app plus this API |
|---|---|---|
| Who picks the model? | The site | You, through the URL and model name |
| What do you pay for? | Check the site's current plans | Tokens: $0.15 per 1M input, $0.50 per 1M output |
| Can you see the exact prompt? | Usually not | Yes, in your own client or script |
| Can you build your own app on it? | No | Yes, with any OpenAI SDK |
| Setup effort | Lowest | A key and three fields |
If you only want to read stories with ready-made characters and never touch settings, a hosted chat site alone may be the easier path. If you want control over cost and prompts, or you are building something, the API route pays off. Neither choice is wrong.
Switching from the default OpenAI endpoint
If you already have a tool configured for the OpenAI API, switching is a short checklist. Work through it in order and test after each step.
- Replace the base URL with
https://api.wannsfw.cc/v1. Tools that hard-code the original address need a setting, often called base URL or API host, and a few need an environment variable instead. - Replace the key with one from this service. Keys are not interchangeable between providers.
- Replace the model name with
uncensored. Names from other providers will not be found here. - Remove features this API does not offer. It handles chat completions only, so image, audio and embedding calls need another provider.
- Check your token budget. The context window is 100,000 tokens, which may be larger or smaller than what you used before, so review any limits your tool sets.
A word on expectations. The format is the same, but the model is different. Prompts tuned for another model may need small edits, and the style of replies will not be identical. Spend ten minutes testing your three or four most important prompts before you commit to a workflow.
Limits, errors and costs
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. The API answers HTTP 429 when you cross a line: the code rate_limited means too many per minute, concurrency means too many at once, and a 429 with Retry-After: 5 is temporary overload. A streamed reply holds its slot until it ends, so rapid regenerate clicks can trip the concurrency limit on a trial key. The maximum request body is 8 MB.
The price math is short. A chat turn with a 10,000-token prompt and a 300-token reply costs 10,000 x $0.15 / 1,000,000 = $0.0015 for input plus 300 x $0.50 / 1,000,000 = $0.00015 for output, which is $0.00165. A hundred turns cost $0.165. New users can claim $0.50 of trial credit with one click after sign-up, valid for 7 days, which covers about 300 such turns (0.50 / 0.00165 is roughly 303).
After the trial, top up any whole amount from $20 to $500 with a bonus of +5% from $50, +10% from $100 and +15% from $200. This site takes crypto only: USDT on TRC20 or USDC on Base. Credit never expires and failed or refused requests are not charged. See the pricing page for the table. Prompts are not used for training.
Streaming and long chats
Most chat front ends request streamed replies, so words appear as they are generated. The API supports this over server-sent events with stream: true and sends usage at the end of the stream. If a front end seems to freeze, the cause is often a proxy between you and the API that buffers streams; try without it. Remember that each open stream counts against your concurrency allowance until it finishes.
For long chats, watch the prompt size. Every turn resends the history, so a thousand-message story gets expensive long before it reaches the 100,000-token window. Summarise old events, keep the character description tight, and your costs stay close to the example above.
Use it responsibly
The model is built for lawful adult use, including fiction, roleplay and companion-style apps. That freedom comes with a hard limit that cannot be changed: nothing sexual involving minors. Keep your characters and scenarios clearly adult. Also read the terms of any front end you connect, because their rules apply to what you do there, separate from this API.
More guides
Questions and answers
Is this API made by OpenAI?
No. It is a separate service that uses the same request and response format as the OpenAI chat completions API. The model is an open-weight model run by an independent provider.
What URL do I enter in a proxy field?
Use https://api.wannsfw.cc/v1 as the base URL. Some front ends want the full path, https://api.wannsfw.cc/v1/chat/completions, so try that if the first form fails.
What model name do I type?
Type uncensored exactly. It is the only model ID, and you can confirm it with GET /v1/models.
Can I use this for adult fiction and roleplay?
Yes, for lawful adult use. The model is tuned to answer without content refusals, but sexual content involving minors is never allowed.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.