- Uncensored AI Generator
- SillyTavern AI Setup With an OpenAI-Compatible API
SillyTavern AI Setup With an OpenAI-Compatible API
SillyTavern is a front end for chatting and roleplay, and it needs a model behind it. This guide connects it to a hosted OpenAI-compatible API in a few minutes and covers the settings that matter afterwards.

No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).
Key points
- Use the Chat Completion API type with the Custom (OpenAI-compatible) source.
- Base URL is https://api.uncensoredaigenerator.cc/v1 and the model ID is uncensored.
- Test the key with curl first, so any later error is clearly a SillyTavern setting.
- An 8,000-token context with a 250-token reply costs about $0.0013 per message.
What you are connecting
Searches for sillytavern-ai usually come from people who have installed the front end and now need a model to talk to. SillyTavern itself does not contain a language model. It is a local web interface for characters, chats, lorebooks and prompt formatting, and it sends your conversation to whichever backend you configure. One of the supported backends is any OpenAI-compatible endpoint, which is exactly what this service provides.
Here is what you plug in:
- Base URL:
https://api.uncensoredaigenerator.cc/v1 - Model ID:
uncensored - Key: your API key, sent as a Bearer token
The service is a hosted text API for one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. It suits fiction, roleplay and companion-style apps for adults. Sexual content involving minors is a hard limit and is never allowed. The API supports POST /v1/chat/completions and GET /v1/models, so use SillyTavern's chat completion mode, not text completion.
Step 1: Get a key and test it outside SillyTavern
Sign up on the API key page with Google, or with an email and password. After sign-up you can claim $0.50 of trial credit with one click. It is valid for 7 days, needs no card, and is limited to one per person.
Before touching SillyTavern, confirm that the key works with a plain request. If something fails later, this tells you whether the problem is the key or the front end settings.
curl https://api.uncensoredaigenerator.cc/v1/chat/completions -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"model":"uncensored","messages":[{"role":"user","content":"Reply with the single word ready."}],"max_tokens":10}'
You should get JSON back with a short reply. A 401 means the key is wrong or has stray whitespace, so copy it again without any extra characters.
Step 2: Connect SillyTavern
Menu names shift a little between SillyTavern versions, but the path has stayed stable for a long time. Open the plug icon, which is the API Connections panel, and set:
- API: choose Chat Completion.
- Chat Completion Source: choose Custom (OpenAI-compatible).
- Custom Endpoint (Base URL): enter
https://api.uncensoredaigenerator.cc/v1. Keep the/v1at the end and do not add/chat/completions, because SillyTavern appends that itself. - Custom API Key: paste your key.
- Model ID: type
uncensored. - Press Connect. A green indicator and the model name mean the handshake worked.
Open a character and send a message. If the reply arrives, the connection is complete. If you get an error toast, open the browser console or the terminal where SillyTavern runs, because the HTTP status code is printed there. The troubleshooting section below maps the common codes to fixes.
Step 3: Settings worth changing
The defaults work, but a few settings decide how good and how expensive a session is.
Context size
The model has a 100,000-token context window, prompt plus completion. Bigger is not automatically better. SillyTavern fills the context with the character card, the persona, lorebook entries and as much chat history as fits, and you pay for those input tokens on every message. For most chats, 8,000 to 16,000 tokens keeps the character consistent without a large bill. Raise it only if you have a long story where early details matter.
Response length
Set a maximum response length that matches your style, for example 250 to 400 tokens for chat and more for prose. The API does not require max_tokens, but a cap stops a reply from running on and keeps cost predictable.
Streaming
Turn on streaming. Replies appear word by word, which feels much faster, and SillyTavern lets you stop a reply you do not like before it finishes. The API streams over server-sent events and reports usage at the end.
Sampling
Temperature, top_p, stop sequences, seed and the frequency and presence penalties are passed through to the model. A temperature around 0.8 to 1.0 is a reasonable start for roleplay. If replies start repeating, raise the frequency or presence penalty slightly before you change anything else.
What it costs in a real session
Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit. Take a typical SillyTavern message: 8,000 tokens of context go in, and a 250-token reply comes out.
- Input: 8,000 x $0.15 / 1M = $0.0012
- Output: 250 x $0.50 / 1M = $0.000125
- Total: $0.001325 per message
A hundred messages cost $0.1325. The $0.50 trial credit covers about 377 messages at this size, and a $20 top-up covers about 15,000. Cut the context in half to 4,000 tokens and the input cost per message halves with it, to $0.0006, for a total of $0.000725.
The first top-up is any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. Payment is by crypto (USDT on TRC20, USDC on Base). Credit never expires and failed or refused requests are not charged. The pricing page lists the rates in full, and the X-Balance-USD response header shows your remaining balance after each call.
Troubleshooting common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 Unauthorized | Wrong or truncated key | Paste the key again; test it with the curl command above |
| 404 or a connection failure | Base URL typo or a missing /v1 | Use exactly https://api.uncensoredaigenerator.cc/v1 |
429 with code concurrency | Too many requests at once; trial keys allow 2, full keys 8 | Close extra tabs and group chats that generate in parallel |
429 with code rate_limited | More than 60 (trial) or 300 (full) requests per minute | Slow down automatic regenerations or swipes |
| 429 with a Retry-After header | Temporary overload | Wait 5 seconds and retry |
| Model not found | Model ID typed differently | Enter uncensored in lowercase |
A streamed reply holds its concurrency slot until the stream ends. In group chats where several characters answer at the same time, this is the most common reason a trial key hits the limit of 2. Set the group to take turns, or upgrade to a funded key with 8 slots.
Group chats deserve a separate note. Each character reply is its own request, and each carries the full context, so a group of four characters that all answer a message costs roughly four times a single reply. That multiplies both the bill and the concurrency pressure, so keep group contexts smaller than solo ones.
If an error mentions the prompt being too long, lower the context size in SillyTavern. Requests over 8 MB are rejected, which almost never happens with text, but a huge pasted lorebook could do it.
Tips for longer roleplay sessions
Three habits improve quality and keep cost flat as chats grow. First, keep the character definition tight. Every token in the card is sent on every message, so 1,500 tokens of tidy description beat 5,000 tokens of repeated backstory. Second, use the summary or memory features SillyTavern offers once a chat is long, so older events survive in a few lines instead of thousands of tokens. Third, use lorebook entries that trigger on keywords so side details only enter the prompt when they matter.
If you want to script your own tools next to SillyTavern, the same endpoint works from any OpenAI SDK, including tool calling and JSON mode. The API documentation shows the full parameter list. As a minimal sanity check from Python:
from openai import OpenAI
client = OpenAI(
base_url="https://api.uncensoredaigenerator.cc/v1",
api_key="YOUR_API_KEY",
)
models = client.models.list()
print([m.id for m in models.data])
The output should include uncensored. Prompts are not used for training, and the service is text only, so image generation extensions in SillyTavern will need a different backend.
More guides
Questions and answers
Which SillyTavern API type should I choose?
Choose Chat Completion, then set the source to Custom (OpenAI-compatible). The API only supports the chat completions endpoint, so text completion mode will not work.
What do I enter as the model name?
Enter uncensored in lowercase. You can confirm it with GET /v1/models on the same base URL.
Does it work with a trial key?
Yes. A trial key works with the same settings but is limited to 2 concurrent requests and 60 requests per minute, so avoid group chats that generate in parallel.
Why do I get a 429 error?
You exceeded a limit. The error code is rate_limited for requests per minute or concurrency for too many at once, and a Retry-After of 5 seconds means temporary overload.
Can SillyTavern generate images through this API?
No. The service is text only, with no image, audio or video generation, so use a separate backend for image features.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.