Why people look for an alternative to Janitor AI
Janitor AI is a character chat site: you pick or create a character and talk to it. People who search for an alternative to Janitor AI usually have one of a few reasons. They want a different model behind the characters, they want to keep their data and characters in their own hands, they run into the limits of a shared site, or they want to build a product for their own community.
We will not rank other services. Check their current features and rules yourself. What we can lay out is the other path: instead of choosing between existing sites, assemble your own from three parts, a front end, a small back end and a model API. This is less work than it sounds, because the part that makes characters feel alive is mostly text.
Many character front ends also let you connect your own OpenAI-compatible endpoint, so the first step can be even smaller: keep the interface you like and change only the model behind it. Check the settings of the app you use. If it accepts a base URL, a key and a model name, the values are https://api.nsfwchatgpt.cc/v1, your key, and uncensored. The rest of this page is for people who want to build the app itself.
What a character platform actually is
Strip away the interface and a character chat product has four pieces of data and one loop.
- Character card. Name, personality, speaking style, scenario, and a greeting message.
- Example messages. Two or three sample exchanges that show the voice.
- Chat history. The messages so far, stored per user and per character.
- Summary. A short note about older events, so the bot remembers them without resending everything.
The loop is: take the card, the summary and the recent messages, build one prompt, call the API, stream the reply to the user, save it. That is the entire engine. Everything else, such as accounts, search, public galleries and ratings, is ordinary web development.
The model on this API is an open-weight model tuned to answer without content refusals for lawful adult use, which is why it suits fiction and roleplay for adults. It is run by an independent provider, so you will not see it listed as the official model of a big vendor. It is text only, so portraits or voices need separate tools.
Build the prompt from a character card
The prompt builder is the heart of the app. Keep it plain and testable.
def build_messages(card, summary, history, user_text, keep=14):
system = (
f"You are {card['name']}. {card['personality']}\n"
f"Speaking style: {card['style']}\n"
f"Scenario: {card['scenario']}\n"
"Stay in character. Never write the user's actions or words. "
"All characters are adults."
)
if summary:
system += f"\nEarlier in this story: {summary}"
messages = [{"role": "system", "content": system}]
for ex in card.get("examples", []):
messages.append({"role": "user", "content": ex["user"]})
messages.append({"role": "assistant", "content": ex["char"]})
messages += history[-keep:]
messages.append({"role": "user", "content": user_text})
return messages
Notice the line stating that all characters are adults. Putting your content rule in the system prompt is good practice, and it backs up the age gate in your sign-up flow. The hard limit on the service is no sexual content involving minors, and your app should state the same rule to users in its terms.
Stream replies to the browser
A character that types its answer word by word feels alive; one that thinks for ten seconds and drops a block of text does not. Use stream: true and forward the chunks. Here is a small Node server route that does it.
import express from "express";
import OpenAI from "openai";
const app = express();
app.use(express.json());
const client = new OpenAI({
baseURL: "https://api.nsfwchatgpt.cc/v1",
apiKey: process.env.API_KEY,
});
app.post("/chat", async (req, res) => {
res.setHeader("Content-Type", "text/event-stream");
res.setHeader("Cache-Control", "no-cache");
const stream = await client.chat.completions.create({
model: "uncensored",
messages: req.body.messages,
stream: true,
temperature: 0.9,
max_tokens: 400,
});
for await (const chunk of stream) {
const piece = chunk.choices[0]?.delta?.content;
if (piece) res.write(`data: ${JSON.stringify(piece)}\n\n`);
}
res.write("data: [DONE]\n\n");
res.end();
});
app.listen(3000);
Keep your API key on the server. Never ship it in browser code, because anyone could copy it and spend your credit. The browser should talk to your route, and your route talks to the API.
Memory that stays cheap
The context window is 100,000 tokens, which holds a very long chat. Sending all of it every turn would be wasteful and slow. Use a rolling summary instead. Every 20 messages, ask the model to compress the oldest ones into a paragraph and store it.
def update_summary(client, old_summary, old_messages):
transcript = "\n".join(f"{m['role']}: {m['content']}" for m in old_messages)
prompt = (
"Update the story summary in under 150 words. Keep names, "
"relationships, promises and unresolved plot points.\n\n"
f"Current summary: {old_summary or 'none'}\n\nNew messages:\n{transcript}"
)
result = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": prompt}],
temperature=0.3,
max_tokens=250,
)
return result.choices[0].message.content
With a card of 700 tokens, a summary of 200, and 14 recent messages of about 120 tokens each, the prompt is about 700 + 200 + 1,680 = 2,580 tokens. A 300-token reply makes one turn cost 2,580 x $0.15 / 1M = $0.000387 plus 300 x $0.50 / 1M = $0.00015, so $0.000537 in total. A user who chats 100 turns in an evening costs you about $0.054. That number is what lets you decide on pricing for your own community.
Limits, queues and running it for others
One full key allows 8 concurrent requests and 300 requests per minute. A streamed reply holds its concurrency slot until it ends, so if each reply takes 15 seconds, one key serves at most a bit over 30 replies per minute. Write that number down, then decide how many active users you can host. Past it, put requests in a queue and show the user a short waiting state.
Handle the errors the API returns. HTTP 429 with the code concurrency means too many requests at once; rate_limited means too many per minute; a 429 with Retry-After: 5 signals temporary overload. In all three cases, wait and retry. Log X-Request-Id with each call so you can trace problems, and read X-Balance-USD to warn yourself when credit runs low.
Get started with the trial: claim $0.50 on the API key page, valid for 7 days and no card needed. The trial key allows 2 concurrent requests and 60 per minute, enough to build and test. Full details are in the docs, and the pricing page lists the top-up tiers. Top-ups on this site are crypto only, USDT on TRC20 or USDC on Base, from $20 to $500, with up to 15% bonus.
Privacy, safety and honest limits
If you host other people's chats, you take on duties that a hobby script does not have. Prompts sent to this API are not used for training, but your own database holds the stories your users write. Store them carefully, publish a privacy page, and let users delete their chats.
Gate your site for adults, state your content rules in your terms, and block sexual content involving minors in your own checks as well as in the model prompt. Review your local law on adult content before you open registration. Our myths and facts article explains what an uncensored API does and does not change about those responsibilities.
Finally, set your expectations about scope. This is a model API, not a ready-made site. You will not get a character gallery, accounts or moderation tools from it. In return you get a flexible backend that costs a fraction of a cent per turn and a codebase that is yours to change.
