SillyTavern Setup with an Uncensored OpenAI API
You cloned SillyTavern and now need a model behind it. This guide connects it to a hosted, OpenAI-compatible endpoint with no refusals for lawful adult use, then tunes the settings that matter.

Key points
- Use Chat Completion with the Custom (OpenAI-compatible) source, not a text completion backend.
- Enter the base URL ending in /v1, your key, and the model ID uncensored.
- Keep the context size near 16k to 32k tokens; every turn re-sends the whole prompt.
- A 20,000-token prompt with a 300-token reply costs $0.00315 per turn.
No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).
Get API keyWhat the SillyTavern repository gives you, and what it does not
Searching for https://github.com/sillytavern/sillytavern usually ends with a cloned repository and a local web page at port 8000. SillyTavern is a front end for chatting with characters. It stores your cards, chats, lorebooks and prompt presets, but it does not contain a language model. For the actual text it needs a backend: a local model, or a hosted API.
A hosted OpenAI-compatible API is the lightest option. There is no GPU to rent or driver to debug, and the settings screen only needs three values: the base URL, a key and a model ID. SillyTavern has a connection type built for this (a custom OpenAI-compatible endpoint), so the setup below needs no extensions or patches.
What you will end up with: your own SillyTavern install, talking to one open-weight model that is tuned to answer without content refusals for lawful adult use. It is run by an independent provider and is not an official API of any model vendor. The hard rule is that nothing involving minors is ever generated, so cards that depict them will not work, and that is by design.
Before you start: get the key
Open the API key page, sign up with Google or with email and password, and create a key. On the same page a new account can claim $0.50 of trial credit with one click. It lasts 7 days, needs no card and is limited to one claim per person. A trial key allows 2 concurrent requests and 60 requests per minute, which is plenty for one person chatting.
Keep the key out of screenshots and shared config files. SillyTavern stores connection secrets on your machine, so treat the data folder like a password file.
You also need the three values the connection form will ask for:
- Base URL:
https://api.unrestrictedvideogenerator.com/v1 - Model ID:
uncensored - Key: the string you just created, sent as a Bearer token
Connect SillyTavern step by step
- Start SillyTavern and open it in the browser.
- Click the plug icon at the top to open API Connections.
- Set the API type to Chat Completion. The text completion types expect a different protocol and will not talk to this endpoint.
- In the Chat Completion Source list, choose Custom (OpenAI-compatible).
- Paste
https://api.unrestrictedvideogenerator.com/v1into the custom endpoint (base URL) field. Do not add/chat/completionsyourself. - Paste your key into the API key field and save it.
- Type
uncensoredinto the model ID field. If the model list loads, you can pick it from there instead. - Press Connect. A green status with the model name means the call worked.
Menu labels shift a little between SillyTavern releases, but the five pieces are always the same: source, endpoint, key, model, connect. If the status stays red, test the endpoint outside the app first. This curl call takes ten seconds and removes SillyTavern from the equation:
curl https://api.unrestrictedvideogenerator.com/v1/chat/completions -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" -d '{"model":"uncensored","messages":[{"role":"user","content":"Say hello in five words."}]}'
If curl works and the app does not, the problem is a typo in the endpoint or an extra path segment. If curl fails, check the key and the balance.
Settings worth changing on day one
Context size
The model has a 100,000-token window, prompt plus completion. That does not mean you should set SillyTavern to 100,000. Each turn re-sends the character card, your persona, the lorebook entries that fire, and as much chat history as fits. The bigger the budget, the more you pay on every message. Most roleplay runs fine at 16,000 to 32,000 tokens, and you can raise it later for a long campaign.
Response length
Set the response token limit to something like 300 to 500 for chat-style replies. The API treats max_tokens as optional, but a cap stops the occasional runaway reply from eating the budget.
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 with top_p near 0.95 is a sensible starting point for character voice. If the model repeats phrases, raise the penalties slightly instead of cranking the temperature. Not every sampler that SillyTavern shows (for example top-k or min-p) is part of the OpenAI-style request, so expect those sliders to have no effect on this connection.
Streaming
Turn streaming on in the response settings so text appears word by word. Streaming works over server-sent events. Note that a streaming request holds its concurrency slot until it ends, so stopping a generation mid-way and immediately firing several swipes can briefly hit the concurrency limit.
Character cards, lorebooks and prompt size
Most of the tokens in a SillyTavern prompt come from material you wrote, not from the chat. A detailed character card can run to 1,500 tokens, a persona to 200, a system prompt preset to 500, and each active lorebook entry adds its own text. Open the prompt inspector or token counter in SillyTavern after a few turns and see where the budget goes before you blame the model for slowness.
Some practical trims: shorten example dialogues to the two best exchanges, keep lorebook entries to a few lines with tight trigger keywords, and move rarely needed backstory into an entry that only fires when it is mentioned. Smaller prompts are cheaper and tend to produce replies that stay closer to the last message you wrote, since the model has less older text to weigh.
For group chats the cost multiplies, because each character turn sends its own full prompt. Three characters replying in order means three requests. On a trial key with 2 concurrent requests, keep group generation sequential rather than letting several characters answer at once.
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. Because SillyTavern sends the whole prompt each turn, input dominates the bill. Here is a worked turn with a generous context:
- Prompt: 20,000 tokens x $0.15 / 1M = $0.003
- Reply: 300 tokens x $0.50 / 1M = $0.00015
- Per turn: $0.00315
A hundred turns cost $0.315, and the $0.50 trial credit covers about 158 turns at that size. Drop the prompt to 8,000 tokens and a turn costs $0.0012 + $0.00015 = $0.00135, so a hundred turns come to $0.135. Failed or refused requests are not charged, and credit does not expire, so leftover balance simply waits for your next session.
When you want more than the trial, top-ups are any whole amount from $20 to $500, paid in USDT on TRC20 or USDC on Base. Bonuses apply on the larger ones: +5% from $50, +10% from $100, +15% from $200. A $20 top-up at the 8,000-token size above covers roughly 14,800 turns. The pricing page has the full table.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Status stays red after Connect | Wrong source or endpoint | Use Custom (OpenAI-compatible) and a base URL that ends in /v1 |
| 401 error | Key missing or mistyped | Paste the key again, with no spaces or quotes |
429 with code concurrency | Too many generations at once | Wait for streams to finish, avoid rapid swipes |
429 with code rate_limited | Over the per-minute cap | Slow down; a trial key allows 60 per minute |
| 429 with a Retry-After header | Temporary overload | Retry after 5 seconds |
| Replies cut off or very slow | Huge context or no length cap | Lower context size, set a response limit |
Each response includes an X-Request-Id header. If you contact support, send that value along with the time of the call; the support page lists how to reach the team.
The API documentation covers every parameter the endpoint accepts, including tool calling and JSON mode. SillyTavern users rarely need them, but they help if you later script your own bot against the same key.
More guides
Questions and answers
Which SillyTavern API type should I choose?
Choose Chat Completion, then the Custom (OpenAI-compatible) source. Paste the base URL ending in /v1, your key and the model ID uncensored.
Does the model remember my characters between sessions?
The API is stateless. SillyTavern stores your cards and chat history and re-sends the relevant parts with each request, up to the context size you set.
Can I use this for companion or roleplay apps?
Yes, for lawful adult use such as fiction, roleplay and companion chat. Content involving minors is never generated.
Are my chats used for training?
No. Prompts are not used for training.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.