Anthropic limits you on three axes at once and returns three different 429s. Whichever axis runs out first is the one that stops you — and one of those 429s never recovers until the first of next month.
Anthropic returns three distinct 429s, distinguished by the response body. A plain rate_limit_error with a retry-after header means you exceeded RPM, ITPM, or OTPM. A rate_limit_error with details.error_code: enforced_spend_limit_reached and no retry-after means your monthly spend cap is hit — retrying cannot work until 00:00 UTC on the 1st. A 529 overloaded_error is Anthropic capacity saturation, not your account.
| Status | error.type | retry-after | Meaning | What to do |
|---|---|---|---|---|
| 429 | rate_limit_error | Yes | Exceeded RPM, ITPM, or OTPM | Wait the header's seconds, then slow down |
| 429 | rate_limit_errordetails.error_code:enforced_spend_limit_reached |
No | Monthly spend cap hit | Stop. Retrying cannot work until 00:00 UTC on the 1st, or a tier upgrade. |
| 529 | overloaded_error | Rarely | Anthropic capacity saturated | Exponential backoff + jitter, then fail over to Bedrock or Vertex |
error.type as a normal rate limit — rate_limit_error. Any retry loop that keys on error type will hammer Anthropic indefinitely, SDK auto-retries included. Branch on details.error_code first.
Anthropic publishes RPM, ITPM, and OTPM per model per tier. On Start, Claude Opus 5.5 allows 4,000 RPM, 2,000,000 input tokens per minute, and 400,000 output tokens per minute. Build raises that to 10,000 RPM / 5M ITPM / 1M OTPM, and Scale to 13,000 RPM / 10M ITPM / 2M OTPM. Custom tier has no spend cap, with limits arranged by an account team.
| Model | RPM | ITPM | OTPM |
|---|---|---|---|
| Claude Opus 5.5 | 4,000 | 2,000,000 | 400,000 |
| Claude Sonnet 5.5 | 4,000 | 2,000,000 | 400,000 |
| Claude Haiku 5.5 | 4,000 | 2,000,000 | 400,000 |
| Claude Fable 5.x | 4,000 | 500,000 | 100,000 |
| Model | RPM | ITPM | OTPM |
|---|---|---|---|
| Claude Opus 5.5 | 10,000 | 5,000,000 | 1,000,000 |
| Claude Sonnet 5.5 | 10,000 | 5,000,000 | 1,000,000 |
| Claude Haiku 5.5 | 10,000 | 5,000,000 | 1,000,000 |
| Claude Fable 5.x | 10,000 | 1,500,000 | 300,000 |
| Model | RPM | ITPM | OTPM |
|---|---|---|---|
| Claude Opus 5.5 | 13,000 | 10,000,000 | 2,000,000 |
| Claude Sonnet 5.5 | 13,000 | 10,000,000 | 2,000,000 |
| Claude Haiku 5.5 | 13,000 | 10,000,000 | 2,000,000 |
| Claude Fable 5.x | 13,000 | 4,000,000 | 800,000 |
Custom tier has no spend cap. New organizations may start in an Evaluation tier below these numbers. Opus 5 and Opus 4.x share a combined bucket; Sonnet 5 and Sonnet 4.x likewise. Full matrix at platform.claude.com.
For most Claude models, cache_read_input_tokens do not count toward ITPM. Only uncached input and cache writes count. A 2,000,000 ITPM limit at an 80% cache hit rate can process roughly 10,000,000 total input tokens per minute, because the cached 8M are excluded. If you are hitting 429 on input while caching is on, the limit you are hitting is uncached input, not total input.
input_tokens — countscache_creation_input_tokens — countscache_read_input_tokens — does not countA normal rate limit 429 includes a retry-after header and a standard rate_limit_error body. A spend-cap 429 adds "details": {"error_code": "enforced_spend_limit_reached"} and omits the header entirely. SDKs retry the spend-cap 429 anyway because they only key on error.type — the same error type as a normal rate limit. Branch on details.error_code first.
{
"type": "error",
"error": {
"type": "rate_limit_error",
"message": "You have reached your API usage limits: your organization
has crossed its monthly API usage threshold..."
},
"request_id": "req_018EeWyXxfu5pfWkrYcMdjWG"
}
Every Anthropic response carries remaining-request and remaining-token counts before you hit the wall. anthropic-ratelimit-requests-remaining tracks RPM headroom, anthropic-ratelimit-input-tokens-remaining tracks ITPM, and anthropic-ratelimit-output-tokens-remaining tracks OTPM. Each reset header is an RFC 3339 timestamp. Limiting uses a token bucket, not a fixed window.
retry-after — seconds to wait. Earlier retries fail.anthropic-ratelimit-requests-remaining — requests left in the windowanthropic-ratelimit-input-tokens-remaining — input tokens leftanthropic-ratelimit-output-tokens-remaining — output tokens leftanthropic-ratelimit-*-reset — RFC 3339 timestamp of full replenishmentThe retry must branch on details.error_code before anything else. A spend-cap 429 has no retry-after and does not clear until the 1st of the next month — retrying it fills the log with failures and can trigger the same error for a full billing cycle. For all other 429s and 529s, honour retry-after when present, fall back to exponential backoff with jitter when it isn't.
import time, random, httpx
def call(payload, headers, max_retries=5):
for attempt in range(max_retries):
r = httpx.post("https://api.anthropic.com/v1/messages",
json=payload, headers=headers, timeout=60)
if r.status_code == 200:
return r.json()
err = r.json().get("error", {})
if err.get("details", {}).get("error_code") == "enforced_spend_limit_reached":
raise SystemExit("Spend cap. Resumes 00:00 UTC on the 1st.")
ra = r.headers.get("retry-after")
if ra:
time.sleep(float(ra))
continue
if r.status_code in (429, 500, 529):
time.sleep(min(60, 2 ** attempt) + random.random())
continue
r.raise_for_status()
raise RuntimeError("retries exhausted")
Claude is also served through Amazon Bedrock and Google Vertex AI, which are separate capacity pools with separate quotas. A 529 on the direct API often succeeds immediately through Bedrock or Vertex. Wire a single fallback provider behind a flag and Anthropic availability stops being a single point of failure. Priority Tier capacity commitments target 99.5% uptime but draw from the same regular rate limits rather than on top of them.
What this is. A dated record of Anthropic's published API rate limits, error shapes, and retry behaviour. Numbers are copied verbatim from Anthropic's own documentation on the date shown. This page does not track you, does not ask for your email, and does not sell anything.
Source: platform.claude.com/docs/en/api/rate-limits · errors
Wrong or stale? Open an issue — corrections are the point.
← All APIs · OpenAI · Stripe