Skip to navigation

Uncensored AI roleplay API: SillyTavern setup guide

In short: Uncensored AI roleplay API setup for SillyTavern: Custom source, base URL, key and model id, long-chat token math and the 100-request daily cap.

Published 24 min read
On this page

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.

  1. 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.
  2. The base URL: https://api.oneaiapikey.com/v1. It ends in /v1 and does not include /chat/completions.
  3. 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

SillyTavern in your browserbuilds the prompt: card, history, lorebookSillyTavern server, your PCadds /chat/completions, sends your keyGateway: api.oneaiapikey.com/v1key check, daily counter, acceptable useModel providerruns the model under its own termsReply streams backtoken counts recorded, text not stored
The whole conversation is rebuilt and resent on every turn, which is why the token math later in this guide matters. Chats stay on your own machine in SillyTavern; the gateway keeps counts, not text.

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.

  1. Open API Connections. It is the plug icon in the top bar. The docs call this the “API Connections” page.
  2. 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.
  3. 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”.
  4. Fill Custom Endpoint (Base URL) with https://api.oneaiapikey.com/v1. The form’s own hint says to try /v1 at the end if it does not work and that the /chat/completions suffix is added automatically, and the docs repeat it: do not add that suffix yourself.
  5. 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.
  6. 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 for GET /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.
  7. 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.
  8. 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.

curl: check the key, the id and the daily counter
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

Start with GLM 5.3 Uncensored: balanced tier, tagged for roleplay and writing, with a 1,048,576-token window. Keep Context Size low anyway; the window is a ceiling. The 1M context window guide covers what a window that size does and costs.

Quick scenes, fast replies

Try GLM 5.3 Flash Uncensored, the fast tier tagged for roleplay and drafting. We publish no speed figure for it, so time a few replies yourself.

Plot-heavy scenes that need reasoning

The two flagship ids, Nemotron 3 Ultra 550B Uncensored and K2 Horizon 375B Uncensored, are tagged for reasoning and roleplay. Give them a bigger Max Response Length, since a model that thinks first can use up a small cap.

I am not sure

Run the same three prompts on two ids and compare. The unfiltered AI API guide has a short script that does this in six requests, and the free models guide sorts the whole free list by task.

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
Arithmetic: 3,000,000 tokens divided by (Context Size minus 400 plus 333), capped at 100 requests. The 333-token reply and the 400-token Max Response Length are our assumptions. Green bars use every request in the day.

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?
In API Connections, set the API type to Chat Completion and the Chat Completion Source to Custom (OpenAI-compatible). Put 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?
The 7 uncensored ids on the free lane bill $0 per token and share 100 requests and 3,000,000 tokens a day with every other free id on the account. Sign-in is Google only and there is no card field. If a free id runs short, credit is added by email today, because online checkout is not open yet; the pricing page shows the steps.
How many roleplay messages is 100 requests?
Up to 100 replies if you never regenerate, because every send is one request. If you regenerate one reply in four, 100 requests give you 80 kept replies. Anything that calls the model counts: a regenerate, a swipe or the Test Message button. The calculator above works out your own number.
Why not set the context to 1,048,576 on a model that supports it?
Because SillyTavern resends the whole history on every turn, and the free allowance counts those tokens. A chat that has filled a 1,048,576-token window costs about a million tokens per request, so only 2 requests fit in 3,000,000 tokens. The window is a ceiling, not a target. Keep Context Size at 30,000 or below to use every one of your 100 requests, and use World Info or a summary for older events.
Can I use JanitorAI with this?
We have not tested it. JanitorAI's help center lists a proxy form with Config Name, Model Name, Proxy URL and API Key, and says the Proxy URL is the full chat-completions URL. We do not know whether JanitorAI sends from your browser or from its own servers, and our API's cross-origin preflight named only our own site when we checked on 27 November 2026, so a browser-side call from another origin could be refused. SillyTavern is unaffected: its own server makes the call.
Does the gateway filter or store my roleplay?
Prompts and answers are not stored; we keep counts, such as model, token counts and charge. The company running the model receives the request and handles it under its own terms. SillyTavern keeps your chats on your own machine. The privacy guide and the routing and privacy docs list what the gateway records. The acceptable use policy applies to every request.
My reply is empty or cut short. What is wrong?
Almost always the response cap. A model that thinks first can spend the whole Max Response Length on thinking and return little or no text, with 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?
The gateway answers 429 until 00:00 UTC (05:30 IST): code 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:

More in Blog

Try it

One API key for GPT, Grok, DeepSeek, Kimi, GLM, MiniMax, Qwen, Step, Beam, Nemotron, ERNIE, Hunyuan, Gemma, Laguna, LFM, LongCat, Llama, Solar, Jais, Mistral, K2 and Roleplay.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.

New accounts$10 credit on sign-up
  • 100requests
    per day
  • 3Mtokens
    per day
  • 47free
    models
  • $0per
    token
  • No card
  • No end date
Claim $10 credit →