EN ▾
Get API key

Grokunfiltered API in SillyTavern: Setup Steps

To use the grokunfiltered api sillytavern setup, open the Chat Completion tab, pick the custom OpenAI-compatible source, and enter our base URL, your key and the model ID uncensored. The steps below cover the fields, the generation settings worth changing and the errors people hit first.

Updated

Key points

  • Use Chat Completion with the Custom (OpenAI-compatible) source, base URL https://api.grokunfiltered.cc/v1 and model uncensored.
  • Set context size to what you actually need; the hard limit is 100,000 tokens for prompt plus reply.
  • Group chats can hit the 8 concurrent request cap, so limit parallel generations.
  • The service is for lawful adult fiction and roleplay; sexual content involving minors is never allowed.
Stage with glowing chat bubbles linked to a server, illustrating a roleplay front end connecting to an API

What you are connecting

SillyTavern is a front end for chatting with characters. It does not run a model itself; it talks to a backend over an API. Its Chat Completion mode lets you add any OpenAI-compatible endpoint, and our API fits that description: it accepts POST /v1/chat/completions, uses Bearer auth, and supports streaming over SSE.

The backend is one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not the official API of xAI, Meta or any other vendor. Users mostly connect it for fiction, roleplay and companion-style apps for adults, where the refusals of a general assistant interrupt the story. The one hard limit is that sexual content involving minors is not allowed, and nothing in your settings changes that.

Before you start you need an API key. Sign up with Google or email, then claim the $0.50 trial on the API key page. The trial lasts 7 days and needs no payment. Once you decide to keep going, top up prepaid credit from $20; the pricing page lists the rates.

Step-by-step setup

Menu names change a little between SillyTavern versions, so match by meaning if a label looks different on your install.

  1. Open SillyTavern and click the plug icon (API Connections) in the top bar.
  2. Under API, choose Chat Completion.
  3. In Chat Completion Source, choose Custom (OpenAI-compatible).
  4. In Custom Endpoint (Base URL), enter https://api.grokunfiltered.cc/v1. Do not add /chat/completions yourself; the app appends the path.
  5. Paste your key into the API key field. SillyTavern sends it as Authorization: Bearer.
  6. In Model ID, type uncensored. If the app offers a model list, select uncensored from it. Our GET /v1/models endpoint returns this ID.
  7. Click Connect. A green status with the model name means the call worked.

If you prefer to test outside SillyTavern first, this curl command checks the same URL, key and model:

curl https://api.grokunfiltered.cc/v1/chat/completions \
  -H "Authorization: Bearer $GROKUNFILTERED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"uncensored","messages":[{"role":"user","content":"Say hello in five words."}]}'

A JSON reply means the key and URL are fine, so any remaining problem is in the SillyTavern fields. The full parameter list is in the docs.

Settings that matter for roleplay

Open the AI Response Configuration panel (the sliders icon). A few controls change the experience more than the rest.

Context size and response length

The window is 100,000 tokens for the prompt and the reply together. You do not need to set the slider that high. A context of 16,000 to 32,000 tokens holds a long scene plus character cards and a lorebook, and costs less per turn, since the full history is sent as input every time. Set Max Response Length to what your scenes need, for example 300 to 600 tokens. A reply cap also limits spend, because output tokens cost $0.50 per 1M against $0.15 per 1M for input.

Sampling

The service passes temperature, top_p, stop, seed and the frequency and presence penalties to the model. A temperature around 0.8 to 1.0 with top_p near 0.95 is a common starting point for creative text. Lower the temperature if characters ramble, raise the presence penalty slightly if replies keep repeating a phrase. Change one value at a time so you can tell what helped.

Streaming

Turn on Streaming so words appear as they are generated. The API streams over SSE, and a streamed request occupies its concurrency slot until it ends. If you press stop partway, the slot frees once the connection closes.

Prompt style

Because the model is tuned not to refuse lawful adult requests, you usually do not need a jailbreak-style preset. A plain system prompt that sets the scene, the tone and the characters' voices works better and wastes fewer tokens. Keep the character card focused, since every word in it is resent on every turn.

Group chats, limits and the 429 error

A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. For a single chat you will not notice either number. Group chats are different: when several characters answer in turn, or when you regenerate while a previous request is still streaming, requests overlap.

If SillyTavern shows a 429 error, the response body tells you why:

  • concurrency: too many requests at once. On a trial key, two overlapping generations are enough. Wait for the current reply to finish, or move to a funded key.
  • rate_limited: too many requests per minute. This is rare in hand-driven chat, but extensions that fire summaries or image prompts on every message can trigger it.
  • A 429 with a Retry-After: 5 header means temporary overload. Wait five seconds and send again.

Rate-limited requests are not billed. Note that the trial key's 2-request ceiling is the most common cause of confusing errors during setup, so test with one chat open and no extensions running.

Fixing the usual connection problems

SymptomLikely causeFix
401 or "invalid key"Key pasted with a space, or an old keyCopy the key again from the API key page and paste without extra characters
404 not foundBase URL missing /v1, or /chat/completions added twiceUse exactly https://api.grokunfiltered.cc/v1
"model not found"Model ID typed differentlyEnter uncensored, lowercase, no spaces
Insufficient balanceTrial spent or expiredTop up prepaid credit from $20
Connects, but replies cut offMax response length too lowRaise it, or remove a stop sequence that fires early
Request too largeBody over 8 MBReduce context size or remove very large lorebook entries

If none of these match, note the X-Request-Id header from the failing response (visible in the browser developer tools Network tab if you run SillyTavern in a browser) and send it through the support page.

Tips for longer stories and character cards

Once the connection works, most of the quality comes from how you structure the prompt, not from API settings. A few habits help with this model.

  • Write the card as a scene brief. State who the character is, how they speak, what they want and what they will not do. Short, concrete lines beat long backstory paragraphs, and they cost less because the card is resent every turn.
  • Use the author note for steering. A one-line reminder placed near the end of the prompt, such as the current location or mood, carries more weight than text buried at the top.
  • Summarize old chapters. When a chat passes a few hundred messages, summarize the early part into a paragraph and keep recent turns verbatim. SillyTavern has summary tools for this, and it keeps you well inside the 100,000-token window.
  • Set stop sequences carefully. If the model starts writing the user character's lines, add a stop string such as the user name followed by a colon, instead of lowering the reply length.
  • Use a seed when testing. The seed value is passed through, so you can compare two prompt versions with the same sampling start. Treat it as a testing aid, not a promise of identical output.

Keep the content on the right side of the line. The service exists for lawful adult fiction and roleplay, and a character who is a minor in a sexual scene is not something the API permits, whatever the card says. Make characters adults in the card, and the model stays on the story.

If you later write your own tools around the same endpoint, the Grok API alternative page explains how this service compares in scope and what it does not offer, such as image generation or embeddings.

What a session costs

Cost depends on how long your chats run, since the history is sent as input each turn. Take a session of 100 turns where the average prompt is 6,000 tokens and the average reply is 300 tokens:

  • Input: 600,000 tokens x $0.15 / 1M = $0.09
  • Output: 30,000 tokens x $0.50 / 1M = $0.015
  • Total: $0.105

The $0.50 trial covers around four to five sessions of that size. Credit you add later never expires, and prompts are not used for training. Payment is in crypto, USDT on TRC20 or USDC on Base, with top-ups from $20 to $500. Check the live rates on the pricing page before you plan a large budget.

Questions and answers

Which SillyTavern API type should I choose?

Chat Completion, with the Custom (OpenAI-compatible) source. Enter https://api.grokunfiltered.cc/v1 as the endpoint and uncensored as the model ID.

Why does my group chat return a 429 error?

Group chats can send several requests at once, and a trial key allows only 2 concurrent requests (8 on a full key). Wait for streams to finish or reduce parallel generations.

How large should I set the context?

The hard limit is 100,000 tokens for prompt plus reply, but 16,000 to 32,000 is enough for most roleplay and costs less, because the history is resent as input each turn.

Is any content off limits?

Yes. The model is tuned for lawful adult fiction without needless refusals, but sexual content involving minors is never allowed.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Start with trial credit

Email and password, key on screen right away.