What Is Janitor AI? Using Your Own Uncensored API
What is Janitor AI? It is a website for chatting with user-made fictional characters, and it can talk to an outside model if you give it an OpenAI-compatible URL and key. This page explains the idea and shows how to connect this API.

Key points
- Janitor AI is a character chat site; check its current settings for how it accepts a custom API.
- This API is OpenAI-compatible: base URL https://api.wannsfw.com/v1, model ID
uncensored. - A typical roleplay message costs about $0.001, so the $0.50 trial covers hundreds of messages.
- For lawful adult fiction only; no sexual content involving minors.
What Janitor AI is
If you are asking what is janitor ai, the plain answer is this: a web service where people create characters and chat with them. A character is a profile, usually a name, a personality, a scenario and a first message. You open the character, type, and a language model plays the part. Users publish characters for others to try, so the site works like a library of fictional personas, some ordinary, some dark, some silly.
Sites in this category, including Janitor AI, generally let you choose which model drives the conversation. Besides a built-in option, they offer a setting where you enter an API address, a key and a model name for an outside service. That setting is the reason this article exists. Settings and names change over time, so look at the site's current help pages for the exact wording of the menu.
We are an independent service and have no connection with Janitor AI. All we offer is a text API that happens to match the format those settings expect.
Why people connect an outside API
Three reasons come up again and again.
- Refusals. A model tuned for general assistant use may stop a story when the plot turns violent, tragic or morally grey. Adults writing fiction find this frustrating. The model behind this API is tuned to answer without content refusals for lawful adult use.
- Cost control. Pay per token means you spend in proportion to how much you chat. No monthly fee runs while you are away.
- Memory. The context window here is 100,000 tokens, prompt plus completion. A long character profile and a long chat history both fit.
The hard limit stays in place: no sexual content involving minors, in any framing. Characters must be adults, and the use must be lawful. We keep this page about fiction and roleplay, and the API is not for anything beyond that.
What you need to connect
Collect four values before you open the settings page of your chat site:
| Field | Value |
|---|---|
| Base URL | https://api.wannsfw.com/v1 |
| Full chat endpoint | https://api.wannsfw.com/v1/chat/completions |
| Model name | uncensored |
| API key | From the key page |
Some front ends ask for the base URL and add the path on their own. Others want the full chat endpoint pasted in. If the first form gives you a 404 error, try the second, and the other way around. The key goes in as a bearer token, which is what every OpenAI-style client does: Authorization: Bearer your-key.
To get a key, sign up with Google or with email and password. After sign-up, one click on the key page claims $0.50 of trial credit. It needs no payment method, is valid for 7 days and is limited to one per person. The trial key allows 2 concurrent requests and 60 requests per minute, which is plenty for one person chatting.
Test the key before you paste it anywhere
Chat sites rarely show useful error messages. A two-minute test from your own machine tells you whether the key works, so that a failure on the site has a smaller list of causes.
curl https://api.wannsfw.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [
{"role": "system", "content": "You play Mara, a weary ship captain in a space-opera story. Stay in character."},
{"role": "user", "content": "Captain, the engines are failing. What do we do?"}
],
"temperature": 0.9
}'
You should get a JSON reply with Mara's answer. You can list the model with GET /v1/models if you want to confirm the ID. If you run your own bot or app instead of using a hosted site, the Python version looks like this:
from openai import OpenAI
client = OpenAI(api_key="paste-your-key-here", base_url="https://api.wannsfw.com/v1")
history = [
{"role": "system", "content": "You play Mara, a weary ship captain. Stay in character."},
]
def say(text):
history.append({"role": "user", "content": text})
reply = client.chat.completions.create(
model="uncensored", messages=history, temperature=0.9, top_p=0.95,
)
msg = reply.choices[0].message.content
history.append({"role": "assistant", "content": msg})
return msg
print(say("Captain, the engines are failing. What do we do?"))Writing a character that works well with any model
The model matters, and so does the prompt it receives. A character profile is the system prompt in disguise, and a few habits improve results on every backend.
- State who, where and what is going on. Two or three sentences covering the character's role, the setting and the current situation give the model something to hold on to.
- Show the voice with a short example. One sample line of dialogue teaches tone better than a paragraph of adjectives.
- Keep the profile short. Everything in it is billed as input on every message. A 1,500-token profile adds $0.000225 to each request (1,500 x $0.15 / 1M). That sounds tiny, but across 1,000 messages it is $0.225.
- Say what the character will not do. Hard rules such as "never speak for the user" reduce the model writing your side of the scene.
- Make every character an adult. Give ages explicitly. Content involving minors is prohibited on this service, with no exceptions.
If a scene drifts, edit the last model reply and continue rather than arguing with the character. Models pattern-match on the history, so a corrected history produces a corrected story.
Settings that matter for roleplay
The API passes through temperature, top_p, stop, seed and the frequency and presence penalties. Chat sites often expose some of these as sliders. A few starting points:
- Temperature. Around 0.8 to 1.0 keeps prose lively. Drop it toward 0.5 if the character rambles or contradicts itself.
- Penalties. Small frequency and presence penalties reduce looping phrases in long chats. Raise them gently; high values make dialogue strange.
- Stop sequences. If the model starts writing your lines as well as the character's, add a stop string such as your own name followed by a colon.
- Seed. Useful when you want to compare two settings on the same scene.
- Max tokens. Optional. Setting it to a few hundred keeps replies short and cheap.
The API also supports streaming over SSE, so replies can appear word by word, plus JSON mode and tool calling. Chat sites mostly use plain streaming. Tool calling matters if you build your own companion app that, for example, saves memories to a database or rolls dice between turns.
What roleplay costs
Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens. In roleplay the input is large, because each message resends the character profile and the chat so far, while the reply is short. Take a mid-length chat where each request sends 6,000 tokens and gets 300 back:
- Input: 6,000 x $0.15 / 1,000,000 = $0.0009
- Output: 300 x $0.50 / 1,000,000 = $0.00015
- Per message: $0.00105
A thousand messages cost $1.05. The $0.50 trial covers about 476 such messages. If you let the history grow to 50,000 tokens, each message costs $0.0075 + $0.00015 = $0.00765, around seven times more. Long memory is useful, and it has a price, so trim or summarise old turns when the early part of the story no longer matters.
When the trial is gone, top up any whole amount from $20 to $500. Bonuses are +5% from $50, +10% from $100 and +15% from $200. Payment is in crypto: USDT on TRC20 or USDC on Base. Credit never expires, and failed or refused requests are not charged. See the pricing page for details, and the quickstart for the full request format.
Limits, privacy and what this is not
A full key allows 8 concurrent requests and 300 requests per minute. A streamed reply holds its slot until it finishes, so several tabs generating at once can hit the limit and return a 429 with code concurrency. Wait a few seconds and retry; a 429 with a Retry-After: 5 header means a brief overload.
Prompts are not used for training. Be mindful all the same: do not put real personal data into a roleplay.
This is text only. There is no image, audio or video generation and no embeddings. It is one open-weight model run by an independent provider, not the official API of any big vendor and not a router across models. If your chat site offers its own bundled model, compare the two on a scene you know well before you commit.
More guides
Questions and answers
Is this affiliated with Janitor AI?
No. It is an independent text API. Chat sites that accept a custom OpenAI-compatible URL can connect to it, but we have no relationship with them.
Which model name should I enter?
Enter uncensored in lowercase. With the base URL https://api.wannsfw.com/v1 and your key, that is all an OpenAI-compatible client needs.
Can I use it for content involving minors?
No. Sexual content involving minors is prohibited without exception. The service is for lawful adult use, including fiction and roleplay between adult characters.
How do I pay after the trial?
Top up from $20 to $500 with crypto, USDT on TRC20 or USDC on Base. Credit never expires.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.