Unfiltered AI Chatbot RP: SillyTavern and API Setup
An unfiltered ai chatbot rp setup needs three things: an endpoint that does not stop mid-scene, a long enough memory, and a frontend you like. This guide wires an OpenAI-compatible API into SillyTavern and into a small Python client, with real cost numbers.
Updated

What you need before you start
For an unfiltered ai chatbot rp session you need a key, a base URL and a frontend. The key comes from the API key page after you sign up with Google or with email and password. New accounts can claim $0.50 of trial credit with one click, no payment needed, valid for 7 days. That is enough for a few hundred turns to test whether the voice suits you.
The settings are the same in every client:
- Base URL:
https://api.unfilteredchatbot.top/v1 - Model ID:
uncensored - Auth header:
Authorization: Bearer YOUR_KEY
The service is text only. It handles the chat; it does not draw character portraits or speak the lines. If your frontend supports images or voice, those need separate providers.
Fiction for lawful adult use is the intended purpose of the model. One boundary never changes: no sexual content involving minors, in any framing, and all characters in adult scenes must be adults.
Connect SillyTavern
SillyTavern lets you add an OpenAI-compatible endpoint, so no plugin is needed. Menu labels shift between versions, so match the names loosely.
- Open the plug icon (API connections) and choose Chat Completion as the API type.
- Set the source to Custom (OpenAI-compatible).
- Paste the base URL into the endpoint field. Use the URL as listed above, ending in
/v1. - Paste your key into the API key field.
- Enter
uncensoredas the model ID. If a model list loads fromGET /v1/models, pick it from there. - Press connect. A green status means the key and URL are right.
If you see a 401, the key has a stray space or was copied from the wrong place. If you see a 404, the URL probably lacks /v1 or has an extra /chat/completions on the end. The quickstart shows the exact paths.
Preset values to start with
Temperature, top_p, stop sequences, seed and the frequency and presence penalties are passed through to the model, so your frontend's sliders work. A reasonable starting point for narrative text is temperature 0.8 to 1.0, top_p 0.9 and a small presence penalty if the model loops on the same phrases. Change one value at a time and play a few turns before judging. Lower the temperature if the plot drifts; raise it if replies feel flat.
Write the character so it stays in voice
Most roleplay failures are prompt failures. The model follows what the context gives it, so spend your effort there.
- Short, concrete descriptions. "Speaks in clipped sentences, never apologizes, hides a stammer when nervous" beats a paragraph of adjectives.
- Example dialogue. Two or three sample exchanges set rhythm and vocabulary better than a rule list.
- Scene state. A line at the top that says where the characters are, what time it is and what each wants this scene keeps the model anchored.
- Who speaks for whom. Say plainly that the model plays its character only and never writes the user's actions. Add a stop sequence such as the user's name followed by a colon to cut off runaway turns.
- Style lines. Tell it the point of view, tense and typical reply length. Replies run as long as you permit, since
max_tokensis optional, so set a limit if you want short turns.
The API takes a fixed system prompt plus message history, which is exactly what character frontends produce, so character definition files and lorebooks work as they are.
Memory over long sessions
The window is 100,000 tokens, shared by prompt and reply. That holds hundreds of turns, but a campaign that runs for weeks will pass it. Plan for that early.
Frontends handle it by dropping the oldest messages once the budget is reached. That works, but anything dropped is gone unless you captured it. Three tools help:
- Use a summary block. Every 30 or 40 turns, ask the model to summarize what happened and pin the summary near the top.
- Use a lorebook or world info for names, places and rules. Entries load only when a keyword shows up, which saves tokens.
- Keep a short "facts so far" list by hand: injuries, promises, items in the bag. A dozen lines cost almost nothing.
You do not have to fill the window. A scene that runs at 6,000 tokens of context is cheaper and often more focused than one that carries everything. The API endpoint overview lists what the endpoint accepts.
What a session costs
Billing is per token: $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit that never expires. Here is a normal turn, with 6,000 tokens of context (character, summary, recent history) and a 400-token reply.
- Input: 6,000 x $0.15 / 1,000,000 = $0.0009
- Output: 400 x $0.50 / 1,000,000 = $0.0002
- Total: $0.0011 per turn
One hundred turns cost $0.11. One thousand turns cost $1.10. If you let the context grow to 30,000 tokens, input alone is $0.0045 per turn, so a thousand turns cost $4.50 for input plus $0.20 for output, $4.70 in all. The summary habit above is a direct saving.
Failed or refused requests are not charged. The smallest top-up is $20 and the largest is $500, with a bonus of +5% from $50, +10% from $100 and +15% from $200. On this site payment is by crypto (USDT on TRC20, USDC on Base). The pricing page has the details.
Streaming and a small custom client
Streaming makes roleplay feel live because words appear as they are generated. The API streams over SSE with stream: true. Below is a terminal client you can extend into a bot.
from openai import OpenAI
client = OpenAI(base_url="https://api.unfilteredchatbot.top/v1", api_key="YOUR_KEY")
SYSTEM = (
"You play Mara, a smuggler captain in a harbor city. Stay in character, "
"write in third person past tense, 2 short paragraphs per reply, "
"and never write the player's actions."
)
history = [{"role": "system", "content": SYSTEM}]
while True:
line = input("You: ")
if not line:
break
history.append({"role": "user", "content": line})
stream = client.chat.completions.create(
model="uncensored",
messages=history,
temperature=0.9,
top_p=0.9,
stop=["You:"],
stream=True,
)
text = ""
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
piece = chunk.choices[0].delta.content
text += piece
print(piece, end="", flush=True)
print()
history.append({"role": "assistant", "content": text})
The same call from Node, for a Discord bot:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.unfilteredchatbot.top/v1",
apiKey: process.env.API_KEY,
});
const stream = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Open the scene at the docks." }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}Group scenes and several characters
Two approaches work for scenes with more than one character. In the first, one model call plays the narrator and all non-player characters, and the system prompt lists each character with a one-line voice note. This is cheap, since you pay for one reply per turn, and it keeps the cast aware of each other. The drawback is that voices can blur.
In the second, each character gets its own call with its own definition and the shared scene log. Voices stay distinct, but cost and concurrency rise with the cast size. Five characters answering every turn means five requests, and a trial key allows only 2 at once, so test with a full key or serialize the calls.
A middle path is to let one call choose who speaks next, then send only that character's definition for the actual reply. The choosing call can be tiny: a few hundred tokens and a one-word answer, which costs a fraction of a cent.
House rules worth writing down
Decide early what the story will not contain, and put it in the system prompt in plain terms. Because the model is tuned for lawful adult use without refusals, the limits you want come from your own prompt. The only hard line set by the service is the one on minors.
Fixing common problems
Error 429 in a group chat
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. Error code concurrency means too many requests at once, and rate_limited means too many per minute. A streamed request holds its slot until the stream ends, so a group chat where several characters answer in parallel can hit the limit. Queue the replies or add a short delay. A 429 with a Retry-After: 5 header signals temporary overload; wait that long and retry.
Replies that repeat themselves
Raise the presence or frequency penalty a little, or lift the temperature by 0.1. Also check that your summary block does not repeat the last few lines verbatim.
The character drifts
Move the key traits to the end of the system prompt, add a brief reminder line after the latest messages, and cut unrelated lorebook entries.
More guides
Questions and answers
Which frontends work for roleplay?
Any client that accepts an OpenAI-compatible base URL and key, including SillyTavern, custom bots built with an OpenAI SDK, and many other chat frontends. Use model ID uncensored.
Is there a free way to test it?
Yes. New users can claim $0.50 of trial credit with one click on the API key page after sign-up. It lasts 7 days and needs no payment.
Are my roleplay logs used for training?
No. Prompts are not used for training.
Are there content restrictions?
The model is tuned to answer without content refusals for lawful adult use. Sexual content involving minors is a hard limit and is not allowed.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.