SillyTavern talks to any OpenAI-compatible endpoint, which makes it the usual front end for people who want an uncensored roleplay model without a platform’s rules in the way. Setting it up takes five fields. The part nobody explains is what a long chat costs once it starts resending its own history on every turn. This guide gives the exact menu names, checked on 27 November 2026 against SillyTavern’s docs and source, then the token arithmetic: a 100-request day holds up to 100 replies, but only if Context Size stays under about 30,000 tokens. A chat that has filled a 1,048,576-token window fits 2 requests a day, not 100. Fiction only, adults 18 and over.
Why do people ask for an uncensored roleplay API?
Two Reddit threads show the demand. In r/SillyTavernAI, “What is the most uncensored popular API model?” (86 points and 100 comments, posted 31 August 2026) opens with the asker reporting refusals on GLM 5.3. Replies named DeepSeek, Kimi and Gemma, some adding that it depends on which provider hosts the model. In r/JanitorAIUnchained, “Is SillyTavern really the only good Janitor AI alternative?” (74 points and 40 comments, posted 25 October 2026) shows people moving away from a hosted platform and naming SillyTavern as where they land.
We read both as context, not proof: anecdotes about different hosts and different prompts. They tell us what the audience wants: a choice of model, no platform sitting between them and it, and a connection that works. That is what an API gives you, and it is why SillyTavern ships a Custom (OpenAI-compatible) source.
A word on scope. This is a guide to fiction: characters, worlds, stories, between adults. One AI API Key applies its acceptable use policy to every request on every model. That means 18 and over, no sexual content involving minors, no help to harm real people, and no circumventing limits at scale. We do not cover explicit content here, and a model that refuses less does not widen those terms. If your reason for reading is “what does ‘uncensored’ actually mean for a model”, the unfiltered AI API guide separates tone, refusals and policy, and the abliterated versus uncensored guide explains how the models are built.
What do you need before you open SillyTavern?
Three values, and a note on what you are connecting to.
- A key. Sign-in on One AI API Key is Google only and there is no card field. Open the sign-up page, continue with Google, create a key under Keys in the console and copy it. The authentication guide covers scopes and expiry, and the quickstart shows a first call in code. Some hosted uncensored chat sites need no account at all; this route does, and the free uncensored AI chat guide covers the browser option.
- The base URL:
https://api.oneaiapikey.com/v1. It ends in/v1and does not include/chat/completions. - A model id. Ids are exact and case-sensitive. The free uncensored ones end in
:free; the table further down lists all 7.
The note: SillyTavern normally runs on your own machine, and its server, not your browser tab, sends the request to the endpoint. We read the chat-completions backend in the SillyTavern repository: for the Custom source it takes the URL and key from the settings you entered and calls fetch on the URL with /chat/completions appended. That matters for two reasons. Your key lives in your own SillyTavern install, and browser cross-origin rules do not apply to the call.
What happens when you press send
How do you connect SillyTavern step by step?
Menu names below come from SillyTavern’s docs page on the custom endpoint and from the labels in its source, read on 27 November 2026. SillyTavern changes between releases, so if a label differs on your screen, look for the field with the same job. We verified labels from the docs and the source; we did not drive a live SillyTavern install for this post.
- Open API Connections. It is the plug icon in the top bar. The docs call this the “API Connections” page.
- Set the API type to Chat Completion. The dropdown at the top of that panel offers Text Completion, Chat Completion and a few others. The SillyTavern docs explain the difference: Chat Completion structures the prompt as a series of messages between you and the assistant, which is what an OpenAI-compatible endpoint expects.
- Set Chat Completion Source to Custom (OpenAI-compatible). That is the option the docs name for “other services and programs that expose an OpenAI-compatible API”.
- Fill Custom Endpoint (Base URL) with
https://api.oneaiapikey.com/v1. The form’s own hint says to try/v1at the end if it does not work and that the/chat/completionssuffix is added automatically, and the docs repeat it: do not add that suffix yourself. - Paste your key into Custom API Key. SillyTavern marks that field optional, since some local servers need none; ours needs it. After you click Connect, the field hides the key.
- Enter a Model ID. The docs say that if the endpoint implements
/v1/models, you can choose from a dropdown (the form calls it Available Models); otherwise type the id. Ours requires a key forGET /v1/models(it returns 401 without one), and we did not capture the dropdown on a live install, so be ready to type the id. A free id to start with:dealignai-glm-5.3-uncensored-fp8:free. - Click Connect. The status line under the buttons should change from “No connection…”. If SillyTavern warns that the endpoint is not working but your key and id are right, the docs describe a checkbox called Bypass API status check for that case.
- Click Test Message to send a short prompt. The button’s tooltip warns that you will be credited for it, which here means one request out of your 100 for the day.
To check the connection without SillyTavern in the way, run the two calls below. The first lists ids; the second prints the response headers, including X-Daily-Remaining, which the headers reference documents.
export ONEAIAPIKEY_API_KEY="paste-your-key-here"
# 1. Does the key work, and which ids can it call?
curl -s https://api.oneaiapikey.com/v1/models -H "Authorization: Bearer $ONEAIAPIKEY_API_KEY"
# 2. One real call, with the response headers (look for X-Daily-Remaining)
curl -sS -D - -o /dev/null https://api.oneaiapikey.com/v1/chat/completions \
-H "Authorization: Bearer $ONEAIAPIKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "dealignai-glm-5.3-uncensored-fp8:free", "max_tokens": 20, "messages": [{"role": "user", "content": "Say ok"}]}'Two more settings are worth touching before the first real turn. Both live in the other panel, AI Response Configuration (the sliders icon at the top left).
- Max Response Length (tokens). The Common Settings docs call it Response (tokens) and describe it as the most tokens the API will generate for one reply. We use 400 in the arithmetic below, which is about 300 words. If the reply is cut mid-sentence, raise it.
- Context Size (tokens). The docs call it the maximum number of tokens SillyTavern sends as the prompt, minus the response length, and add that messages above the dotted line in your chat are not sent. For the Custom source, the slider’s maximum in the source we read is 2,000,000, so a 1,048,576-token model fits without any special checkbox. What number to use is the whole next section.
Two defaults to leave alone. Multiple swipes per generation should stay at 1: we have not checked how the daily counter treats a higher value. Prompt Post-Processing should stay on None unless a model errors on message roles. The docs list the converters, from merging consecutive roles up to a single user message, and warn that the stricter ones remove tool calls.
Which free uncensored id fits a roleplay?
7 uncensored ids sit on the free lane, 3 of them with a published context window of 1,048,576 tokens. All bill $0 per token and share one daily allowance. We list only what models.ts says; we have not benchmarked these for roleplay and do not quote speeds or scores.
| Id | Tier and tags on its page | Context |
|---|---|---|
dealignai-glm-5.3-uncensored-fp8:free |
Balanced; uncensored chat, roleplay, writing | 1,048,576 |
dealignai-glm-5.3-flash-uncensored-fp8:free |
Fast; uncensored chat, roleplay, drafting | 1,048,576 |
dealignai-deepseek-v4.1-flash-uncensored-fp8:free |
Fast; uncensored chat, reasoning, coding | 1,048,576 |
laguna-xs-2.1-uncensored:free |
Balanced; uncensored chat, coding, roleplay | not listed |
nemotron-3-ultra-550b-a55b-uncensored:free |
Flagship; uncensored chat, reasoning, roleplay | not listed |
k2-horizon-375b-a23b-uncensored:free |
Flagship; uncensored chat, reasoning, roleplay | not listed |
Read the table with two filters. A 1,048,576-token window lets a chat grow very long before anything is dropped, which is useful for a story that runs for weeks. The three ids with no listed context may be fine for roleplay too; the page simply does not say, so test before you commit a long story to one. The tags are our own labels from the catalogue, not a quality ranking.
Which id should you try first?
A long story I will continue for weeks
Quick scenes, fast replies
Plot-heavy scenes that need reasoning
I am not sure
How far does a day of 100 requests actually go?
Start with what a request is. When you press send, SillyTavern builds one prompt out of the character card, the main prompt, any lorebook entries and as much chat history as Context Size allows, then sends it. One send is one request. A regenerate or swipe is another. The Test Message button is another. The free lane counts requests and tokens together: 100 requests and 3,000,000 tokens a day per account, whichever runs out first, refilling at 00:00 UTC (05:30 IST). The free LLM API guide sets that against OpenRouter, Groq and Google.
Converting words to tokens. OpenAI’s help article gives the rule of thumb for English: 100 tokens is about 75 words, so one token is about three-quarters of a word. It calls these estimates, and other models tokenize differently. With that rule, we assume:
- A reply of 250 words is about 333 tokens (250 divided by 0.75).
- A message from you of 60 words is about 80 tokens (60 divided by 0.75).
- A character card plus main prompt plus a little lorebook is about 2,000 tokens. This one is a guess: a minimal card is smaller, a rich one much larger. Open Prompt Itemization on a reply, which the docs describe as the lined square icon in the message’s menu, and read the real number.
So one exchange adds about 413 tokens to the history (80 from you, 333 from the model).
What each request costs. Request number k sends the card, all k minus 1 earlier exchanges and your new message, and the model writes a reply. That is roughly 2,000 plus 413 times k tokens in total. Add them up and the cost of the first N requests is N times 2,000 plus 413 times N times (N plus 1), divided by 2. Nothing in that depends on the model; it is how a front end that resends history behaves.
Here is the first request, and some later ones, with Context Size left at the model’s full 1,048,576 so nothing is ever trimmed:
| Exchange number | Prompt sent | Tokens that request uses |
|---|---|---|
| 1 | 2,080 | 2,413 |
| 25 | 11,992 | 12,325 |
| 50 | 22,317 | 22,650 |
| 100 | 42,967 | 43,300 |
| 300 | 125,567 | 125,900 |
| 1,000 | 414,667 | 415,000 |
| 2,500 | 1,034,167 | 1,034,500 |
A first day of 100 exchanges in a fresh chat uses 2,285,650 tokens, 76% of the allowance, so the request cap is what ends the day. The trouble starts on day two, when the same chat carries on. This is what five days of one never-trimmed chat look like, with no regenerations:
| Day | Exchanges | Requests that fit | Tokens used | Prompt at the last one |
|---|---|---|---|---|
| 1 | 1 to 100 | 100 | 2,285,650 | 42,967 |
| 2 | 101 to 154 | 54 | 2,951,505 | 65,269 |
| 3 | 155 to 194 | 40 | 2,962,740 | 81,789 |
| 4 | 195 to 227 | 33 | 2,941,719 | 95,418 |
| 5 | 228 to 256 | 29 | 2,956,434 | 107,395 |
By day 2 the tokens, not the requests, end the day. The break-even is simple: 3,000,000 tokens divided by 100 requests is 30,000 tokens per request. Once a single request, history plus reply, costs more than that, tokens run out before requests do.
What should Context Size be on the free lane?
Low enough that a request never costs more than 30,000 tokens. Context Size is the lever: SillyTavern stops sending older messages once the prompt reaches it, so it caps what each request costs. The bars show how many requests fit in 3,000,000 tokens when the chat has already grown to the setting, with a Max Response Length of 400 and a 333-token reply.
Requests per day that fit, by Context Size, once the chat has reached it
- Context Size 16,00010015,933 tokens per request
- Context Size 30,00010029,933 tokens per request
- Context Size 32,0009331,933 tokens per request
- Context Size 64,0004663,933 tokens per request
- Context Size 128,00023127,933 tokens per request
- Context Size 256,00011255,933 tokens per request
- Context Size 1,048,57621,048,509 tokens per request
At Context Size 30,000 or below, you use all 100 requests and every request costs under 30,000 tokens. At 64,000 you get 46 requests. At the full 1,048,576, a chat that has filled the window gets 2. That sounds odd for a model sold on a million-token window, and it is simply what resending a million tokens costs. The window is useful on a paid balance, or for a one-off long document. On a daily allowance it is a ceiling you should not walk up to.
A chat of 100 kept exchanges at 413 tokens each is only about 42,967 tokens of history. The point where a 32,000-token Context Size starts trimming is around exchange 72, and a 128,000-token one around exchange 304. Before then, the setting changes nothing. After it, SillyTavern drops the oldest messages from the prompt, and the model forgets them unless you moved them somewhere safer.
Where long-term memory goes instead. The SillyTavern docs describe World Info as a way to insert information anywhere in the prompt under conditions you set, including a place to store memories the AI should recall, and Post-History Instructions as final instructions sent after the history. A short lorebook entry for “what happened in chapter one” costs a few hundred tokens each turn instead of the thousands the original scenes took. The token and context glossary defines the terms, and the guide to cutting LLM costs applies the same trimming idea to paid use.
Use the calculator to see your own numbers before a session.
A day of roleplay against the free allowance
- Tokens per request, chat at the cap
- 29,933
- Requests the token allowance covers
- 100
- Requests you can send today
- 100
- Kept replies today
- 80
- What ends the day
- The 100-request cap
Free ids share 100 requests and 3,000,000 tokens a day per account, refilling at 00:00 UTC (05:30 IST). This models a chat that has already reached Context Size; a fresh chat costs less per request at first. Every regenerate or swipe is one more request.
Can you use JanitorAI with this?
We could not confirm it. JanitorAI publishes an official help article, TL;DR Quickstart Proxy Instructions, and we read it on 27 November 2026. The page shows an “Updated on” date of 01/08/2025, so it is not recent, and its worked example uses OpenRouter, not us. The field names it gives are what we can verify:
- In a chat, open the gear icon at the top right, then API Settings, then Add Configuration.
- Fill in Config Name, Model Name, Proxy URL, API Key and an optional Custom Prompt.
- The Proxy URL in the example is the full chat-completions address, ending in
/chat/completions, copied exactly. A base URL alone is not what that example shows. - Click Add, then Save Settings, refresh the page and send a test message.
For this gateway the Proxy URL would be https://api.oneaiapikey.com/v1/chat/completions, the Model Name an id from the table above and the API Key your key. That is our reading of their form, not a tested setup.
We did not test it in a JanitorAI account, and there is one thing we know that may matter. We sent a cross-origin preflight to our API on 27 November 2026, pretending to be a page on janitorai.com, and the response named only our own site, https://oneaiapikey.com, as an allowed origin. If JanitorAI sends your request from your browser, that could cause a refusal; if it sends from its own servers, browser rules do not apply. We do not know which JanitorAI does, so treat this route as untested. SillyTavern does not have the question: its server makes the call, as shown earlier. If you want a front end that is documented end to end for this gateway, use SillyTavern.
What goes wrong, and which doc fixes it?
Most first-run failures are in the table below. Ours return an error object with a code, and SillyTavern usually shows the message. The status codes below are from our error reference.
| What you see | Likely cause | Fix |
|---|---|---|
| 401, “Invalid token” | Key missing, mistyped, disabled, expired or deleted. A stray space or quote from copying is common. | Paste the key again into Custom API Key and click Connect. Check Keys in the console. Invalid key |
| 404, “Unknown endpoint” | The /v1 is missing from the base URL, or doubled. |
Base URL exactly https://api.oneaiapikey.com/v1, no /chat/completions. Error format |
404 or 503, model_not_found |
The id is wrong (ids are case-sensitive), or the model is not available to your account right now. | Copy the id from the table above or from GET /v1/models; retry or pick another id. Model not found |
429, daily_limit_free or daily_limit_tokens |
The first means you used today’s 100 requests, the second that you used the 3,000,000-token cap. | Wait for 00:00 UTC (05:30 IST); retrying sooner does not help, and another free id shares the same counters. Rate limits, 429 guide |
429, free_lane_busy |
A free request on the same key is still running, for example a second swipe or a second SillyTavern window. | Wait for the first reply to finish, then send again. One free request at a time per key. Free models page |
| 400, context too long | The prompt is longer than the model’s context window. | Lower Context Size. Bad request |
Empty reply, or finish_reason of length |
A model that thinks first used the whole Max Response Length on thinking. | Raise Max Response Length. Reasoning docs |
| Reply stops after a long wait | The provider sent nothing for 300 seconds and the gateway closed the stream; long thinking phases are the usual cause. | Retry; if it repeats, pick another id. Timeouts |
If an id keeps failing, the gateway retries a failing free call on another model by itself, and a model that shows up as dead for a day can be removed from the list: on 25 November 2026 we removed 11 free ids for exactly that reason, so a hard-coded id is a risk. The uptime and fallbacks guide explains how to set up fallbacks. If a free service ever looks like it is not serving the model it names, the verification guide gives six checks you can run for free, and our transparency page states what we monitor and what we cannot see. Wariness of resellers is reasonable, and we would rather you check than trust us.
What does it cost beyond the free lane?
The free ids need no balance. If you want more than 100 requests a day, or a model that is not free, the paid route is prepaid credit, added by email today because online checkout is not open yet. The pricing page has the steps, and per-million rates for the paid uncensored ids are on the uncensored AI API page, with a walk-through in the uncensored AI API models and prices guide. Paid models are set up by hand, offline, to stop abuse and card fraud: pick a model and see prices on that page, then email somdutt777@gmail.com to buy access. The uncensored LLM price comparison sets our listed prices against named rivals with dated sources. If you are sizing a monthly bill, the cost estimate guide has worked examples.
Other ways to reach the same models: the chat uses the same allowance and needs no front end, and the free uncensored AI API guide covers the key and first call in code. If you run the weights yourself instead, the Qwen 3.8 uncensored API guide compares local and hosted, and the Qwen 3.8 abliterated versus Heretic comparison covers two builds. If you use other tools with an OpenAI-compatible base, the guide to switching an SDK app to another base URL and the coding agent key guide show the same two-field change, and the gateway explainer says why one key reaches many models.
First-run checklist
SillyTavern first run on this gateway
0 of 8 done
Not yet
Work down the list from the top.
Connect SillyTavern to a free uncensored id
$10 sign-up credit, 47 free models sharing 100 requests and 3,000,000 tokens a day, no card.
Frequently asked questions
What do I type into SillyTavern to use this gateway?
https://api.oneaiapikey.com/v1 in Custom Endpoint (Base URL), your key in Custom API Key, and a model id such as dealignai-glm-5.3-uncensored-fp8:free in Enter a Model ID, then click Connect. Do not add /chat/completions: SillyTavern appends it. The full walk-through is in the steps above.Is it free?
How many roleplay messages is 100 requests?
Why not set the context to 1,048,576 on a model that supports it?
Can I use JanitorAI with this?
Does the gateway filter or store my roleplay?
My reply is empty or cut short. What is wrong?
finish_reason set to length. Raise Max Response Length in SillyTavern. The reasoning docs explain the room you need for the thinking and the answer.What happens at the daily limit?
daily_limit_free when the 100 requests are used, daily_limit_tokens when the 3,000,000 tokens are. Retrying sooner does not help. The error reference has the body and the rate limit guide has retry code. Switching to another free id does not help, because the allowance is one shared counter.More in this series
The other guides on uncensored and unfiltered AI APIs that we have not linked above:
- Uncensored AI coding API: refusals, models and setup: Uncensored AI coding API for agents that hit refusals: which tasks trigger them, free and paid ids, Cursor, Cline and Aider setup, and a session cost.
- Uncensored AI cybersecurity API: authorised work only: Uncensored AI cybersecurity API for red team, CTF, malware triage and detection rules: which jobs need it, free and paid ids, a cost calculator, firm limits.
- Uncensored DeepSeek API: V4.1 Flash, free id and prices: Uncensored DeepSeek API on V4.1 Flash: a free id, paid rows with prices, what stock DeepSeek refuses, how builds are made, 1M context. Checked 27 Nov 2026.
- Uncensored GLM API: GLM 5.3 and Flash, free ids and prices: Uncensored GLM API: two free GLM 5.3 ids, paid rows with prices, Reddit reports that stock GLM 5.3 still refuses, and when GLM fits over DeepSeek or Qwen.
- Uncensored Kimi API: K3.1 Pro price, setup and cost: Uncensored Kimi API on 27 Nov 2026: the K3.1 Pro row at $4 and $20, a worked monthly bill, what Reddit reports, the 1M window and free ids to try today.
- Uncensored AI for writers: an API setup for dark fiction: Uncensored AI for writers via API: dark themes, manuscript-length context, a drafting workflow, free ids and which writing tools take a base URL. 27 Nov 2026.
- Janitor AI alternatives uncensored: bring your own API: Janitor AI alternatives that are uncensored for people with their own API: five options compared, plus a curl test for the proxy field. Checked 27 Nov 2026.
- Character AI alternatives uncensored: fewer filters: Character AI alternatives uncensored: what Character.AI filters, six options compared, and what you gain and lose with your own API. Checked 27 Nov 2026.
- Uncensored AI API key: get a free or paid one safely: Uncensored AI API key, step by step: a free key from a Google sign-in, how paid access works, key safety, a copy-paste test and every error code you will meet.
- Is uncensored AI legal? What the law and licences say: Is uncensored AI legal? A sourced look at what law, open-weight licences and host rules cover. Not legal advice. Checked 27 Nov 2026.
- Qwen 3.8 uncensored in Ollama and LM Studio: GGUF setup: Qwen 3.8 uncensored in Ollama and LM Studio: exact commands, VRAM plus KV cache arithmetic, a hardware picker and a no-GPU API route. Checked 27 Nov 2026.
- Qwen 3.8 27B context window: 262K native vs 1M, uncensored: Qwen 3.8 27B context window for uncensored builds: 262,144 native vs the 1M YaRN setting, cache cost, what degrades, and a token calculator. 27 Nov 2026.
- Qwen 3.8 uncensored vs DeepSeek V4.1 Flash uncensored: Qwen 3.8 uncensored vs DeepSeek V4.1 Flash uncensored for API use: a facts table from model cards, a cost calculator and a verdict. We ran no benchmarks.
- Run uncensored LLM locally vs API: cost, privacy, effort: Run an uncensored LLM locally vs an API: a decision by VRAM, privacy, cost and effort, with a break-even you can change. Prices read 27 Nov 2026.
- Uncensored LLM GPU rental vs API cost: the break-even: Uncensored LLM GPU rental vs API cost on 27 Nov 2026: RunPod and Lambda hourly prices, idle and cold-start cost, and break-even requests a month.
- Heretic uncensored models guide: how to read a model card: Heretic uncensored models guide: what the tool does, what refusals X/100 and KL divergence measure, a worked card reading and a 10-point checklist.
- Uncensored roleplay API cost per month: real token math: Uncensored roleplay API cost per month: token math with a 1,500-token card, listed prices, free-lane limits, caching and a calculator. Checked 27 Nov 2026.
- Uncensored LLM system prompt guide with 7 templates: Uncensored LLM system prompt guide: what a prompt can and cannot change on abliterated models, seven copy-ready templates and a test plan.
- Uncensored AI on Hugging Face: a safe download checklist: Uncensored AI on Hugging Face, downloaded safely: file formats, the 2 GB scan limit, uploader and hash checks, sandboxing and a no-download option.
- Uncensored AI privacy: what providers and gateways see: Uncensored AI privacy: what the model provider, the gateway and you each see, what we store, and how it compares with running a model locally.