Uncensored LLM API Rate Limits and Retry Patterns
The uncensored llm api rate limit comes in two parts: how many requests you send per minute, and how many are in flight at the same moment. Here are the numbers, the two kinds of 429 you will see, and code that handles both.
Updated

No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).
Get API keyThe limits in one table
| Limit | Full key | Trial key |
|---|---|---|
| Requests per minute | 300 | 60 |
| Concurrent requests | 8 | 2 |
| Maximum request body | 8 MB | 8 MB |
| Context window (prompt plus completion) | 100,000 tokens | 100,000 tokens |
The trial key comes from the $0.50 trial credit you can claim with one click on the API key page after sign-up. It is meant for testing, and its lower limits reflect that.
Every response carries headers that show where you stand: X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency. Log the request ID with every failure. If you ever contact support, that ID is the quickest way to point at one specific call.
Two limits, two different errors
Both limits answer with HTTP 429, but the error code in the body tells you which one you hit, and the right reaction differs.
rate_limitedmeans you passed the requests-per-minute count. Waiting a few seconds lets the window recover. Slowing your send rate fixes it for good.concurrencymeans too many requests were running at once. It clears as soon as one of them finishes. The fix is a cap on parallel calls in your client, not a longer sleep.- Temporary overload also returns 429, with a
Retry-After: 5header. This is not about your usage. Wait the number of seconds given and try again.
One detail catches streaming users. A streamed request occupies its concurrency slot until the stream ends, not until the first token. A client that opens a stream and then reads it slowly, or abandons it without closing the connection, keeps burning a slot. Close streams you no longer need.
The 8 MB body limit is a separate matter and is unrelated to 429. If you paste very large documents into one request you will hit the context window long before the body size, since 100,000 tokens of English text is far smaller than 8 MB.
A retry wrapper that respects Retry-After
The pattern is simple: retry only on 429 and on network errors, wait for the server's hint when it gives one, and otherwise back off exponentially with some random jitter so parallel workers do not retry in lockstep.
import os, random, time
from openai import OpenAI, RateLimitError, APIConnectionError
client = OpenAI(
base_url="https://api.uncensoredllm.top/v1",
api_key=os.environ["UNCENSORED_API_KEY"],
max_retries=0, # we handle retries ourselves
)
def chat(messages, attempts=6, **kwargs):
delay = 1.0
for attempt in range(attempts):
try:
return client.chat.completions.create(
model="uncensored", messages=messages, **kwargs
)
except RateLimitError as e:
hint = e.response.headers.get("Retry-After")
wait = float(hint) if hint else delay
kind = getattr(e, "code", None)
print(f"429 ({kind}), waiting {wait:.1f}s, attempt {attempt + 1}")
except APIConnectionError:
wait = delay
if attempt == attempts - 1:
raise
time.sleep(wait + random.uniform(0, 0.5))
delay = min(delay * 2, 30)
Setting max_retries=0 keeps the SDK's built-in retries from stacking on top of yours. If you would rather not write a wrapper, leave the default retries on and raise the number slightly. Both approaches work. The wrapper is useful because it lets you log which kind of 429 occurred.
Do not retry 400 or 401 responses. A malformed body or a wrong key will fail the same way every time.
Cap concurrency before the server has to
Retrying is a safety net. A better design never trips the concurrency limit. An asyncio semaphore does it in a few lines:
import asyncio, os
from openai import AsyncOpenAI
client = AsyncOpenAI(
base_url="https://api.uncensoredllm.top/v1",
api_key=os.environ["UNCENSORED_API_KEY"],
)
sem = asyncio.Semaphore(6) # stay under 8 on a full key
async def one(prompt):
async with sem:
r = await client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": prompt}],
max_tokens=400,
)
return r.choices[0].message.content
async def main(prompts):
return await asyncio.gather(*(one(p) for p in prompts))
Use 6 rather than 8 if anything else shares the key, such as a dashboard, a cron job or a teammate's script. Limits apply per key, so two programs each running 8 workers will collide. On a trial key, drop the value to 2.
For the per-minute limit, a simple pacing rule is enough: never send more than one request per 0.2 seconds on a full key, which is 300 per minute. In practice you will rarely reach it, as the next section shows.
Which limit binds first
Throughput is the smaller of what the minute limit and the concurrency limit allow. The concurrency ceiling in requests per minute is workers x 60 / seconds per request.
Take a request that takes 10 seconds from send to last token. That figure is only an example, since generation time depends on how long the output is. With 8 workers you complete 8 x 60 / 10 = 48 requests per minute. That is well below 300, so concurrency is the binding limit. You would only approach 300 per minute if the average request finished in 8 x 60 / 300 = 1.6 seconds, which is rare for generation tasks.
The trial key shows the same effect more sharply: 2 workers at 10 seconds each give 12 requests per minute, under the 60 allowed.
Now scale it up. Suppose a batch job of 10,000 requests, each with 1,500 input tokens and 400 output tokens:
- Input: 10,000 x 1,500 = 15,000,000 tokens, which is 15 x $0.15 = $2.25.
- Output: 10,000 x 400 = 4,000,000 tokens, which is 4 x $0.50 = $2.00.
- Total: $4.25.
- Time at 8 workers and 10 seconds each: 10,000 / 8 x 10 = 12,500 seconds, about 3.5 hours.
So for batch work, the cost is small and the wall-clock time is the real constraint. If 3.5 hours is too long, shorter outputs (a lower max_tokens) are the lever that helps, because shorter generations free each slot sooner.
Retries, billing and the free question
Failed or refused requests are not charged, so a 429 followed by a successful retry costs the same as a single success. You pay for completed work only. Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit with no subscription, and credit never expires. Full details are on the pricing page.
There is no free tier. What exists is the one-time $0.50 trial credit, valid for 7 days, one per person, no payment method required. At the rates above, $0.50 buys roughly 1,000 calls of 2,000 input and 500 output tokens: each costs 2,000 x $0.15 / 1M = $0.0003 plus 500 x $0.50 / 1M = $0.00025, so $0.00055, and $0.50 / $0.00055 is about 909 calls. Call it 900. That is enough to test your retry code against the trial limits, though at 2 concurrent requests you will see 429 responses quickly if you do not cap your workers.
Real use means topping up. Any whole amount from $20 to $500 works, with +5% bonus credit from $50, +10% from $100 and +15% from $200. A $100 top-up, for example, becomes $110 of credit. You can pay with crypto (USDT on TRC20, USDC on Base).
A short checklist before you go live
- Cap parallel calls below 8 (below 2 on a trial key) in the client.
- Retry on 429 and connection errors only, with exponential backoff, jitter and a maximum number of attempts.
- Read
Retry-Afterfirst and your own delay second. - Log
X-Request-Idand the error code for every failure. - Watch
X-Balance-USDso a long job does not run out of credit halfway. - Close or finish every stream.
- Set
max_tokenson bulk jobs to keep each request short.
For endpoint setup and example requests, start from the quickstart.
More guides
Questions and answers
What happens if I exceed the limit?
The API returns HTTP 429. The error code is rate_limited for too many requests per minute or concurrency for too many at once. Wait, then retry.
Can I get higher limits?
A full key is capped at 8 concurrent requests and 300 per minute. Those are the published limits. If your workload does not fit them, ask support, but plan around the numbers above.
Are 429 responses billed?
No. Failed or refused requests are not charged, so retries do not add cost.
Why do I get 429 when I am under 300 requests per minute?
You are probably over the concurrency limit, or the service is briefly overloaded. In the second case the response includes Retry-After: 5.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.