No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).
Get API keyWhat the error means
When you see claude rate limit exceeded in a log or a chat window, the server has counted more traffic from your account than it allows in a short window, and it has refused the extra requests. Most HTTP APIs, Claude's among them, answer this with status 429 (Too Many Requests). The request itself was fine. Send the same one a few seconds later and it will usually go through.
That changes how you should react. Rotating keys, rewriting prompts or opening a support ticket will not help in the first hour. What helps is understanding which limit you crossed, then changing the way your code sends traffic. The limits themselves, and the numbers that apply to your account tier, are set by the provider. Read their current documentation for the exact figures, because they change and differ per plan.
Below you get a way to diagnose the error, working retry code, a few ways to cut your own token use, and an honest description of the limits on our endpoint in case you want a second route when the first one is busy.
Three limits that look the same
People lump every 429 together, but providers usually enforce several counters at once. The wording of the error body normally tells you which one fired. If it does not, the pattern of your traffic will.
| Limit | Typical trigger | What fixes it |
|---|---|---|
| Requests per minute | A loop that fires many small calls with no pause | Spread calls out, batch small tasks into one prompt |
| Tokens per minute | Few calls, but each one carries a huge prompt | Trim history, cache or summarise context |
| Concurrent requests | A worker pool or a user-facing app with many open sessions | Cap workers, queue the rest |
| Temporary overload | Provider side, nothing you did | Wait for Retry-After and retry |
A useful habit is to log three things on every failure: the HTTP status, the error code in the body, and the request ID from the response headers. With those you can tell a pacing problem from an overload in under a minute, and you have something concrete to send if you do need to contact support.
Quick diagnosis
- Errors appear only when many users are active at once: concurrency.
- Errors appear after you paste a long document or a long chat history: token volume.
- Errors appear in a tight loop and vanish when you add a one second sleep: requests per minute.
- Errors appear at random, in short bursts, even at low traffic: overload on the provider side.
Retry with backoff and a worker cap
The standard fix has two parts. First, when a call returns 429, wait and try again, increasing the wait each time and adding a little random jitter so a whole pool of workers does not wake at the same instant. Second, limit how many calls your own code starts in parallel, so you stop causing the problem. If the response carries a Retry-After header, use that number instead of guessing.
The Python example below points the official OpenAI SDK at our base URL. It turns off the SDK's own retries so the behaviour is visible, reads Retry-After, and runs six workers, which leaves headroom under an eight-request ceiling.
import random
import time
from concurrent.futures import ThreadPoolExecutor
from openai import OpenAI, RateLimitError
client = OpenAI(
base_url="https://api.uncensoredclaude.top/v1",
api_key="YOUR_KEY",
max_retries=0, # we handle 429 ourselves
)
def ask(prompt, attempts=6):
delay = 5
for _ in range(attempts):
try:
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": prompt}],
)
return r.choices[0].message.content
except RateLimitError as e:
# honour Retry-After when the server sends it
wait = float(e.response.headers.get("retry-after", delay))
time.sleep(wait + random.uniform(0, 1))
delay = min(delay * 2, 60)
raise RuntimeError("still rate limited after retries")
prompts = ["Summarise item %d" % i for i in range(40)]
# 6 workers stays under the 8-concurrent ceiling with room to spare
with ThreadPoolExecutor(max_workers=6) as pool:
results = list(pool.map(ask, prompts))The same idea in Node, using plain fetch. It logs the error code and the request ID, which is exactly what you want in a log line when you investigate later.
const BASE = "https://api.uncensoredclaude.top/v1";
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
async function chat(messages, tries = 6) {
let delay = 5000;
for (let i = 0; i < tries; i++) {
const res = await fetch(`${BASE}/chat/completions`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ model: "uncensored", messages }),
});
if (res.status === 429) {
const body = await res.json().catch(() => ({}));
console.warn("429:", body?.error?.code, res.headers.get("x-request-id"));
const retryAfter = Number(res.headers.get("retry-after")) * 1000;
await sleep((retryAfter || delay) + Math.random() * 1000);
delay = Math.min(delay * 2, 60000);
continue;
}
return res.json();
}
throw new Error("still rate limited after retries");
}Two details matter more than the exact delay values. Cap the total number of attempts, otherwise a real outage turns into a retry storm that keeps your own service busy forever. And never retry inside a tight loop with no sleep, because that makes a per-minute limit worse.
Cut the tokens you send
If the limit that bites you is tokens per minute, or if you simply want to stay further from any ceiling, send less. Chat applications are the usual offender: every turn resends the whole history, so the prompt grows with each message even though the new content is small.
- Trim old turns. Keep the system prompt and the last handful of exchanges, and drop the rest.
- Summarise instead of resending. Replace the oldest part of the history with a short summary you generate once.
- Set
max_tokenswhen you know the answer is short. A classifier that returns one label does not need room for an essay. - Batch small jobs. Ten tiny questions in one prompt use one request slot instead of ten.
- Do not stream what nobody watches. A background job gains nothing from streaming and holds a connection longer.
Here is how much the growth costs in practice. Take a chat with a 300-token system prompt where each turn adds 150 tokens from the user and 350 from the model. By turn 20, the prompt alone is 300 + 19 x 500 + 150 = 9,950 tokens. Over the whole 20 turns you send 104,000 input tokens and receive 7,000 output tokens. On our rates that is 104,000 x $0.15 / 1M = $0.0156 for input plus 7,000 x $0.50 / 1M = $0.0035 for output, so $0.0191 for the conversation. Trimming history to the last six turns would cut the input figure by roughly half, which also halves your exposure to a tokens-per-minute cap.
How the limits work on our endpoint
We are not going to claim that a different provider has no limits, because that would be untrue. Ours are fixed numbers, and you should know them before you build around them.
| Key type | Concurrent requests | Requests per minute |
|---|---|---|
| Full key | 8 | 300 |
| Trial key | 2 | 60 |
Going over returns HTTP 429. The error code is rate_limited when you exceeded requests per minute and concurrency when too many calls were open at once. If the service is briefly overloaded you also get a 429, with a Retry-After: 5 header. Each response carries X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency, so your client can read its own ceilings instead of hard-coding them.
One point catches people out: a streamed request occupies its concurrency slot until the stream ends. If your front end opens a stream and the user closes the tab, make sure the connection is actually closed on your side. Otherwise the slot stays busy and you will see concurrency errors with no obvious cause.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredclaude.top/v1", api_key="YOUR_KEY")
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Write a short scene."}],
stream=True,
)
try:
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")
finally:
stream.close() # frees the concurrency slot right awayBeyond these numbers, spending is limited by your prepaid balance, not by a subscription tier. You pay $0.15 per 1M input tokens and $0.50 per 1M output tokens, failed or refused requests are not charged, and credit does not expire. You can check the current numbers on the pricing page.
Using a second endpoint without breaking your app
Some teams hit a limit during a launch or a batch run and want a fallback. Because our API is OpenAI-compatible, adding it as a second route is mostly a configuration change: a different base URL, a different key, and the model ID uncensored. The docs list the supported methods, which are POST /v1/chat/completions and GET /v1/models.
Be clear-eyed about what this is. The model behind it is an open-weight model run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not Claude, it is not from Anthropic, and it is not a router that forwards to Claude. Output style, strengths and weaknesses will differ, so test your prompts against it before you rely on it as a drop-in replacement. For some tasks, such as fiction, roleplay or rewriting text that a stricter model refuses, it may fit better. For others, the original model will remain the better choice. A fallback that you have never tested is a risk, not a safety net.
A health check is cheap to add. Call GET /v1/models at startup with the new key to confirm that auth and routing work, then send one tiny completion with max_tokens set low. You can start with the trial: new users can claim $0.50 of credit with one click on the API key page after sign-up, valid for 7 days. That is enough for a few hundred short test calls. Note that the trial key has the lower limits shown in the table, so do not load test with it. The key page explains how to claim it.
A checklist for the next 429
- Read the body and the headers. Note the code and the request ID.
- Decide which of the four limits you hit, using the table above.
- Lower your worker count before you touch anything else.
- Add backoff with jitter and honour
Retry-After. - Trim the prompt if tokens per minute is the cause.
- Close streams you no longer read.
- Only then consider a second route, and test it first.
If you want to see the raw headers yourself, one request is enough. This call returns the response headers along with a five-token reply:
curl -i https://api.uncensoredclaude.top/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"ping"}],"max_tokens":5}'Run it a few times in a row and watch the limit headers. It is a quick way to confirm what your key allows before you size a worker pool.
