NSFW LLM APISillyTavern 'Too Many Requests' Error: How to Fix It
SillyTavern 'Too Many Requests' Error: How to Fix It
When SillyTavern says the sillytavern api returned an error too many requests, the server answered with HTTP 429. It means you hit a rate limit, a concurrency limit, or a short overload, and each one has a different fix.


Key points
- 429 has three causes here: requests per minute, requests at once, and temporary overload.
- The error code, rate_limited or concurrency, tells you which limit you hit.
- A streamed reply holds its slot until the stream ends, so rapid swipes and group chats stack up.
- Trial keys allow 2 concurrent requests and 60 per minute; full keys allow 8 and 300.
What the error actually means
HTTP 429 is the standard "too many requests" status. SillyTavern shows it as a red toast or a line in the console, and it can look like the API is broken. It is not, and no credit is lost when it happens. The server is working and is telling your client to slow down.
On this API there are three separate reasons for a 429:
rate_limited: you sent too many requests in one minute. The limit is 300 per minute on a full key and 60 per minute on a trial key.concurrency: you have too many requests open at the same time. The limit is 8 on a full key and 2 on a trial key.- Temporary overload: the service is busy. It also returns 429, with a
Retry-After: 5header telling you to wait five seconds.
The first two depend on your usage. The third is not your fault and clears on its own. You can tell which one you got by looking at the error code in the response, as shown in the next section.
Find out which limit you hit
Open your browser console or the terminal where SillyTavern runs and look at the failing request. Better, reproduce it with curl, which prints the response headers:
curl -i https://api.nsfwllmapi.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"ping"}],"max_tokens":5}'
A normal answer returns 200 with X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency headers. Those two headers show the limits that apply to your key, so you can confirm if your key has trial or full limits. X-Balance-USD shows the credit left. If this single request succeeds, your key is fine and the problem is how SillyTavern is sending traffic.
If the curl call also returns 429 with a Retry-After: 5 header, wait a few seconds and retry. That is the overload case and nothing in SillyTavern needs changing.
Why SillyTavern triggers it
A single reply is one request. But SillyTavern has many features that send more than one at a time, and they add up fast against a low concurrency limit.
- Fast swipes and regenerate. Clicking swipe again before the first reply finishes starts a second request. If the first stream is still open, it still counts.
- Group chats. Several characters answering in sequence or in parallel use several slots.
- Extensions. Auto-summaries, expression detection, image prompt generation and similar helpers can send their own calls in the background.
- Several tabs or devices. The limit is per key, not per browser. A phone and a desktop with the same key share it.
- Retry loops. Some setups retry on failure immediately, which turns one 429 into dozens.
A trial key allows only 2 concurrent requests, so a main reply plus one background helper already uses everything. That is the most common reason new users see this error right after sign-up.
Fixes inside SillyTavern
Menu names change between versions, so look for the equivalent if a label differs on your install.
- Check the connection. Under API Connections, set the API type to Chat Completion and the source to Custom (OpenAI-compatible). Use the base URL
https://api.nsfwllmapi.com/v1, your key, and the model IDuncensored. - Wait for the stream to finish. Let a reply end before you swipe. A stream occupies its slot until it ends.
- Stop, then wait. If you press stop, give it a moment before regenerating, so the slot frees.
- Turn off background extensions. Disable auto-summarize and similar features while you test, then switch them back on one at a time.
- Use one client per key. Close other tabs and devices that use the same key.
- Reduce group chat parallelism. Prefer sequential replies if the option is available.
A quick test helps here. Keep the browser console open, send one message, and count how many requests appear in the network tab. If you see two or three for a single message, a helper extension is active, and that explains the error better than any server setting. Streaming itself is not the problem. It is the best way to read a long roleplay reply as it is written. Just remember that it keeps a slot busy for the whole reply.
Fixes in your own code: backoff that respects Retry-After
If you call the API from a script, a bot or a custom frontend, handle 429 properly. Wait for the time the server gives you, then retry a limited number of times. The OpenAI Python SDK has built-in retries, but explicit handling gives you control.
import time
from openai import OpenAI, RateLimitError
client = OpenAI(base_url="https://api.nsfwllmapi.com/v1", api_key="YOUR_KEY", max_retries=0)
def chat(messages, tries=5):
delay = 5
for attempt in range(tries):
try:
return client.chat.completions.create(model="uncensored", messages=messages)
except RateLimitError as e:
wait = float(e.response.headers.get("Retry-After", delay))
time.sleep(wait)
delay = min(delay * 2, 60)
raise RuntimeError("still rate limited after retries")
To avoid hitting the concurrency limit at all, cap your own parallelism. In Python, a threading.Semaphore(2) on a trial key, or Semaphore(8) on a full key, keeps you under the line. The same idea applies to a Discord bot that handles many users; the page on an NSFW LLM API Discord bot covers queueing.
When you simply need higher limits
If you have tuned your settings and still hit the ceiling, the limits themselves are the issue. A trial key is built for testing: 2 concurrent requests and 60 requests per minute. A full key allows 8 concurrent requests and 300 requests per minute. The API docs describe the limits and the response headers, and the pricing page shows how to top up. Payment is by crypto, USDT on TRC20 or USDC on Base, with amounts from $20 to $500.
Not sure what a month of roleplay costs? A typical reply with 3,000 input tokens and 400 output tokens costs $0.00045 plus $0.0002, which is $0.00065. See NSFW LLM API pricing for more examples. New accounts can claim a $0.50 trial on the API key page, no payment details needed. For a clear view of what this kind of API can and cannot do, read the NSFW chatbot API myths and facts.
More guides
Questions and answers
Does a 429 error cost me credit?
No. Failed requests are not charged, and that includes requests rejected for rate limits.
How long should I wait after a 429?
If the response has a Retry-After header, wait that long; for temporary overload it is 5 seconds. For rate_limited, wait until the minute window clears.
Why do I get 429 with only one chat open?
A background extension may be sending requests, or an earlier stream may still be open. On a trial key, even two simultaneous calls reach the limit.
Is it the same error as running out of credit?
No. A low balance is a separate condition. Check the X-Balance-USD header or the balance endpoint to see your remaining credit.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.