Roleplay AI Chat Bot With No Filter: Build Your Own
A roleplay AI chat bot with no filter is a chat app wired to a model that does not refuse fiction because of its themes. You can use a ready frontend such as SillyTavern or write a short script, and this page shows both.
Updated

Key points
- Use an OpenAI-compatible endpoint with base URL https://api.unfilteredchat.cc/v1 and model ID uncensored.
- Roleplay is fiction between adults; no content involving minors is allowed, and no setting changes that.
- Memory is your job: the API is stateless, so you resend history and trim it to control cost.
- A typical roleplay turn costs a fraction of a cent.
What no filter means for roleplay, and what it does not
People searching for a roleplay ai chat bot no filter usually have the same experience behind them: a story going well, then a refusal, a moral aside, or a sudden softening of the villain. Mainstream chat products are tuned for broad audiences, so they interrupt fiction that touches violence, crime, grief or dark humor.
The API behind this site runs one open-weight model, operated by an independent provider and tuned to answer without content refusals for lawful adult use. For roleplay that means your antagonist can be menacing, your detective story can have a real body count, and your characters can disagree with you. The model is not an official product of any large vendor and it is not a router between several models.
Three boundaries stay in place. First, the audience is adults, and the model is for lawful adult use. Second, there is a hard limit that no prompt or setting changes: no sexual content involving minors. Keep every character in your scenarios an adult, and say so in the card. Third, "no filter" does not mean "no quality control". A model without refusals still forgets facts, repeats phrases and drifts out of character. Most of the work below is about reducing those problems.
This article is for developers and hobbyists who want to build their own bot or connect a frontend. If you hit trouble, the common mistakes and fixes page covers typical setup errors.
Option one: connect a frontend such as SillyTavern
If you want character cards, a persona, group chats and a polished interface without writing code, use a frontend that accepts a custom OpenAI-compatible endpoint. SillyTavern is the best known for roleplay. In it:
- Open API Connections and choose Chat Completion.
- Select Custom (OpenAI-compatible) as the source.
- Enter the base URL
https://api.unfilteredchat.cc/v1, your key, and the model IDuncensored. - Connect, open a character card, and start a chat.
Menu names shift between versions, but any frontend with an "OpenAI compatible" provider works the same way. Do not add /chat/completions to the base URL; the client appends it. Turn streaming on so replies appear as they are written.
You need a key first. After you sign up with Google or email and password, the key page has a button that claims $0.50 of trial credit, valid for 7 days, no card, one per person. A trial key allows 2 concurrent requests and 60 requests per minute, plenty for a single chat. A full key allows 8 concurrent and 300 per minute.
Frontends hide the mechanics, which is convenient until something goes wrong. The next section shows what they are doing under the hood, which makes problems easier to diagnose.
Option two: a minimal Python roleplay bot
A chat API is stateless. Every request must contain the whole conversation you want the model to see, and the model remembers nothing between calls. A bot is therefore a loop that keeps a list of messages, appends your input, sends the list and appends the reply.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.unfilteredchat.cc/v1",
api_key=os.environ["UC_KEY"],
)
SYSTEM = (
"You are Mara Voss, a retired smuggler who now runs a quiet harbor bar. "
"Stay in character. Write in third person, past tense, two to four short "
"paragraphs per reply. All characters are adults. Never speak for the user's character."
)
history = []
MAX_MESSAGES = 40 # keep the last 40 turns of history
while True:
user = input("> ")
if user.strip().lower() in {"quit", "exit"}:
break
history.append({"role": "user", "content": user})
messages = [{"role": "system", "content": SYSTEM}] + history[-MAX_MESSAGES:]
stream = client.chat.completions.create(
model="uncensored",
messages=messages,
temperature=0.9,
top_p=0.95,
frequency_penalty=0.3,
stream=True,
)
reply = ""
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
piece = chunk.choices[0].delta.content
reply += piece
print(piece, end="", flush=True)
print()
history.append({"role": "assistant", "content": reply})
The same code works in Node with the official SDK by changing the constructor options; the shape of the request is identical. The system prompt does most of the steering. Write what the character is like, how long replies should be, and the point of view. Avoid long lists of "never do" rules; they cost tokens and tend to attract the behavior they forbid.
Memory, length and keeping the character consistent
The context window is 100,000 tokens, covering prompt and reply together. That is large, but a story that runs for weeks will exceed it, and cost grows with every turn because you pay for the history again each time. There are three ways to deal with that.
Trim
The bot above keeps the last 40 messages. It is simple and works for casual chats, but old events vanish. If the character forgets a promise made twenty turns ago, you have found the edge of your window.
Summarize
Every 30 or so turns, ask the model itself to summarize the story so far in 200 words, store that text, and put it into the system prompt as "Story so far". Then drop the old messages. Facts survive and the prompt stays short.
Pin facts
Keep a short block of fixed facts in the system prompt: names, relationships, locations, open plot threads. Update it by hand or by asking the model to propose changes. This is what the "world info" and "lorebook" features in frontends do.
For length control, max_tokens is optional, but a cap around 400 stops a runaway reply. If the character starts repeating phrases, raise frequency_penalty in steps of 0.1. If the replies feel flat, raise temperature a little. Set a seed only when you want to reproduce a particular scene; temperature, top_p, stop, seed and the penalties are all passed through to the model.
Using tools and JSON for game-like features
Roleplay bots get more interesting when the model can touch some structure. Tool calling lets the character call functions you define, for example rolling dice, looking up an inventory or reading a map location. You pass tools, the model returns tool_calls, you run them, and you return the result with role: "tool". It also works while streaming.
JSON mode suits state tracking. After each scene, ask for a compact JSON object with the current location, the characters present and the open threads, and store it next to the history:
curl -s https://api.unfilteredchat.cc/v1/chat/completions \
-H "Authorization: Bearer $UC_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"response_format": {"type": "json_object"},
"messages": [
{"role": "system", "content": "Extract story state as JSON with keys location, present (array of names) and threads (array of short strings)."},
{"role": "user", "content": "Mara closed the bar early. Jonas waited by the pier with the crate he had promised to move before dawn."}
]
}'
That state object can then go into the system prompt on the next request. You get continuity without paying for a longer history. Tool support is described in the API documentation.
What a roleplay session costs
Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit with no subscription. Take a turn where the prompt (system text, summary and recent history) is 3,000 tokens and the reply is 300 tokens:
- Input: 3,000 / 1,000,000 x $0.15 = $0.00045
- Output: 300 / 1,000,000 x $0.50 = $0.00015
- Total: $0.0006 per turn
A thousand turns cost $0.60. If you let the history grow to 30,000 tokens, input per turn becomes 30,000 / 1,000,000 x $0.15 = $0.0045, plus the same $0.00015 for output, which is $0.00465. That is about eight times more per turn than the trimmed version, which is the reason summaries pay off. The $0.50 trial credit covers roughly 800 turns of the first kind.
Failed or refused requests are not charged, and credit never expires. Top-ups are any whole amount from $20 to $500, with a bonus of 5% from $50, 10% from $100 and 15% from $200, paid by crypto (USDT on TRC20, USDC on Base). See pricing for details. Prompts are not used for training.
Errors you will meet
When a limit is exceeded the API returns HTTP 429. The code rate_limited means too many requests per minute; concurrency means too many at once. During a temporary overload you also get 429 with a Retry-After: 5 header. In a bot, catch it, wait that long, and retry once or twice.
A streamed request holds its concurrency slot until the stream ends. A frontend that is still streaming one reply when you press regenerate can briefly use two slots. On a trial key, which allows two, that is already the limit.
Other common problems: a base URL missing /v1, a pasted key with a trailing space, and the wrong model name. The model ID is exactly uncensored. Replies that cut off usually mean the cap you set in max_tokens is too low. The X-Balance-USD response header shows your remaining credit after each call, which is handy to print at the end of a session.
More guides
On this page
- What no filter means for roleplay, and what it does not
- Option one: connect a frontend such as SillyTavern
- Option two: a minimal Python roleplay bot
- Memory, length and keeping the character consistent
- Using tools and JSON for game-like features
- What a roleplay session costs
- Errors you will meet
- More guides
Questions and answers
Can the bot write dark or violent fiction?
Yes, for lawful adult use. The model is tuned to answer without content refusals, so villains and tense scenes are not interrupted. Sexual content involving minors is never allowed.
Does the model remember earlier chats?
No. The API is stateless, so you must send the history each time. Use trimming, summaries or pinned facts to keep long stories consistent.
Which frontend works best?
Any frontend with a custom OpenAI-compatible provider works. SillyTavern is popular for character cards and group chats; set the base URL, key and model ID uncensored.
How much does a long roleplay cost?
With a 3,000-token prompt and a 300-token reply, a turn costs $0.0006, so a thousand turns cost $0.60 at $0.15 per 1M input and $0.50 per 1M output tokens.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.