Kimi API in SillyTavern: Custom Endpoint Setup
Searching for kimi api sillytavern usually means one thing: you want SillyTavern to talk to a hosted model through a custom endpoint. This guide does that with an OpenAI-compatible uncensored API, which is not the official Moonshot Kimi API, and covers the settings, a test call and the usual errors.
Updated

Key points
- Use the Chat Completion API type with the Custom (OpenAI-compatible) source.
- Endpoint is https://api.kimiapi.cc/v1, model ID is
uncensored, and the key goes in as a Bearer token. - Test with curl first so you can separate key problems from SillyTavern settings.
- Streaming holds a concurrency slot until it ends, so keep swipes and group chats within 8 at once.
What you need before you start
Three things: a running SillyTavern install, an API key, and about five minutes. SillyTavern is a front end for chat and roleplay. It does not host a model, so it needs an endpoint to send requests to. Any service that speaks the OpenAI chat format can be added as a custom source, and this one does.
Get the key first. Sign up with Google or with email and password, open the API key page, and you can claim $0.50 of trial credit with one click. It needs no card, lasts 7 days and is limited to one per person. The API key page guide shows where the button is. For longer sessions, top up from $20 on the pricing page.
A word on naming. This site is not run by Moonshot and the model behind the endpoint is not a Kimi model. It is one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. Fiction and roleplay for adults is the intended use. Sexual content involving minors is not allowed and is a hard limit.
Check the key with curl first
Before touching SillyTavern, confirm the key and URL work on their own. If this fails, no setting in the front end will fix it.
curl https://api.kimiapi.cc/v1/models \
-H "Authorization: Bearer YOUR_KEY"
curl https://api.kimiapi.cc/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Say hello in one sentence."}],
"max_tokens": 50
}'
The first call lists the model, which should be uncensored. The second returns a normal chat completion. If you see HTTP 401, the key is wrong or has a stray space. If you see 429, you hit a rate limit and should wait a few seconds.
Add the endpoint in SillyTavern
The menu names move between SillyTavern versions, so look for the equivalents if your screen differs slightly.
- Open the API Connections panel (the plug icon in the top bar).
- Set API to Chat Completion.
- Set Chat Completion Source to Custom (OpenAI-compatible).
- In Custom Endpoint (Base URL), enter
https://api.kimiapi.cc/v1. Do not add/chat/completionsat the end, the client appends it. - Paste your key into Custom API Key.
- In Model ID, enter
uncensored. - Press Connect. A green status means the call to the endpoint worked.
If the model list loads on its own, pick uncensored from it. If it does not, typing the ID by hand is fine. The endpoint supports GET /v1/models and POST /v1/chat/completions, which are the two methods the client needs.
Settings worth changing
The defaults connect, but a few values affect both quality and cost.
Context size
The context window is 100,000 tokens, prompt plus completion. SillyTavern's own context slider decides how much history it sends each turn, and that is also what you pay for on the input side. A setting of 16,000 to 32,000 is a sensible start for a character chat: long enough to remember the scene, short enough to keep a turn cheap. At 30,000 tokens in and 400 out, one turn costs $0.0047 ($0.0045 input plus $0.0002 output at $0.15 and $0.50 per 1M).
Response length
Set Max Response Length to the reply size you want, for example 300 to 600 tokens. The API treats max_tokens as optional, so without a cap the model may write until it feels done. A cap keeps replies and bills predictable.
Sampling
Temperature, top_p, stop sequences, seed and the frequency and presence penalties are passed through to the model. Start with temperature around 0.8 to 1.0 and top_p near 0.9, and adjust if replies drift or repeat. Raise the frequency penalty slightly if a character falls into the same phrases. Those are starting points, not magic values; character cards differ.
Streaming
Leave Streaming on. The API sends server-sent events and reports usage at the end. Text appears as it is written, which feels much better in a chat window.
Prompt setup and character cards
Because the model is tuned not to refuse, your character card and system prompt carry more of the behaviour than they would with a heavily filtered model. A few habits help.
- State the setting, tone and boundaries in the system prompt in plain sentences. Short, specific instructions beat long lists.
- Keep the persona description focused. Pad it with background the scene never uses and you pay for those tokens on every turn.
- Use a short example dialogue so the model picks up the voice. Two exchanges are usually enough.
- Put hard rules at the end of the prompt or in an author's note near the latest messages. Instructions close to the end of a long context tend to be followed more reliably than ones buried 30,000 tokens back.
- If you want a scene to stop at a certain point, say so in the card. The model follows instructions but does not read your mind about where you want limits.
Because the system prompt is resent with every request, trimming 1,000 tokens from it saves 1,000 / 1,000,000 x $0.15 = $0.00015 per turn. That is small, but over 10,000 turns it adds up to $1.50.
Fixing common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 or "invalid key" | Wrong key, extra space, or the key pasted into the wrong field | Re-copy the key into Custom API Key and reconnect |
| 404 or "not found" | Base URL includes /chat/completions or lacks /v1 | Use exactly https://api.kimiapi.cc/v1 |
| Model not found | Model ID typed differently | Enter uncensored in lowercase |
429 with rate_limited | More than 300 requests per minute on a full key, or 60 on a trial key | Slow down and wait a few seconds |
429 with concurrency | More than 8 requests in flight (2 on a trial key) | Wait for streams to finish before swiping again |
| 429 with Retry-After: 5 | Temporary overload | Retry after five seconds |
The concurrency error shows up more than people expect in SillyTavern. A streamed request holds its slot until the stream ends, so swiping several alternatives at once, or running a group chat with many characters, can pile requests up. On a trial key the limit is only 2 at once, so swipe one at a time while testing. Failed requests are not charged, so retrying costs nothing.
Watching your spending
Every response includes an X-Balance-USD header with your remaining credit, and the usage block at the end of a stream gives token counts. If you want a running total outside SillyTavern, the docs show how to read these in code.
As a rule of thumb, an evening of 100 turns at 30,000 tokens of history and 400 of output costs about $0.47. The trial credit of $0.50 therefore covers an evening or two. A $20 top-up at that rate covers about 4,250 turns. Credit never expires, and a top-up of $50 or more adds a bonus of 5%, 10% or 15% at $50, $100 and $200.
The provider does not use your prompts for training. That does not replace common sense: keep real personal data out of character cards, since the cards are text that gets sent in every request.
More guides
- Kimi API Pricing and Our Pay-Per-Token Rates
- Kimi API vs OpenAI API: Which One Fits Your Project
- Kimi API Key: Uncensored LLM API Options Compared
Frequently Asked Questions
Is the Kimi API the same as our uncensored API?
No. Kimi API is provided by Moonshot AI. Our uncensored API is an independent service running a different open-weight model. Both are OpenAI-compatible, so you can switch between them easily.
How do I pay for the uncensored API?
We accept payment by crypto (USDT on TRC20, USDC on Base). You can top up from $20 to $500 in whole amounts. We do not accept PayPal or bank transfers.
Does the uncensored model filter adult content?
No, it does not refuse lawful adult, fictional, or controversial topics. The only hard limit is content involving minors, which is always refused.
What happens if I make a mistake with my payment?
Credit is prepaid and does not expire. If you experience a double charge or error, you can contact support via the Support page. The credit itself is not refunded, but issues are resolved through support.
Questions and answers
Which SillyTavern source should I choose for this API?
Choose Chat Completion, then the Custom (OpenAI-compatible) source. Enter https://api.kimiapi.cc/v1 as the base URL, your key, and the model ID uncensored.
Is this the real Kimi model?
No. It is a different open-weight model run by an independent provider, and this service is not affiliated with Moonshot. You only borrow the OpenAI-compatible endpoint format.
Why do I get a concurrency error when swiping?
A streamed reply occupies its slot until it finishes. Full keys allow 8 requests at once and trial keys allow 2, so wait for the current reply before swiping again.
Does it support tool calling and JSON mode in SillyTavern?
The API supports both, but they only apply if the client sends the matching fields in the request. Plain roleplay chat does not need either.