Anthropic API error
Anthropic 429 rate_limit_error: official rate limit vs spend cap
On this page
TL;DR · The short answer
#Official documentation checked 27 November 2026. Anthropic documents HTTP 429 as type rate_limit_error when your organization has hit a rate limit, reached its usage tier’s monthly spend cap, or reached a spend limit on the Claude Code workspace. A tier spend-cap 429 has no retry-after header and keeps failing until access resumes. On the Messages API, tell the two apart with error.details.error_code equal to enforced_spend_limit_reached.
Key takeaways
#- From Anthropic’s API errors page: 429 rate_limit_error covers a rate limit, a usage-tier monthly spend cap, or a Claude Code workspace spend limit.
- Anthropic’s rate-limits documentation says that once you reach your tier’s spend cap, API usage pauses until 00:00 UTC on the first day of the next month, unless you request a higher limit sooner.
- If you set your own spend limit below the tier cap, Anthropic says requests return HTTP 400 with invalid_request_error when that limit is reached (the message starts with “You have reached your specified API usage limits”).
The official error
#From Anthropic’s API errors page: 429 rate_limit_error covers a rate limit, a usage-tier monthly spend cap, or a Claude Code workspace spend limit. The same page says a sharp increase in usage can also cause a 429 even while you are under your rate limits (see Anthropic’s ramp limits). To tell the spend cap from a rate limit in code, check the error code.
Rate limits themselves are documented as organization-level limits using a token bucket, measured in requests per minute (RPM), input tokens per minute (ITPM) and output tokens per minute (OTPM). Anthropic notes that a rate such as 60 RPM might be enforced as 1 request per second, so short bursts can trigger a 429. Limits are maximums, not guaranteed minimums. See your current tier in the Claude Console.
Spend cap versus rate limit
#Anthropic’s rate-limits documentation says that once you reach your tier’s spend cap, API usage pauses until 00:00 UTC on the first day of the next month, unless you request a higher limit sooner. While usage is paused, requests return HTTP 429. The documented Messages API example includes error.type rate_limit_error and error.details.error_code enforced_spend_limit_reached. That page states the spend-cap response has no retry-after header, and that retrying—including the SDK’s automatic retries—fails until access resumes. Moving to a higher tier restores access.
Limits you set yourself
#If you set your own spend limit below the tier cap, Anthropic says requests return HTTP 400 with invalid_request_error when that limit is reached (the message starts with “You have reached your specified API usage limits”). Limits on the Claude Code workspace are checked separately and can instead receive a 429 that carries a retry-after header.
Do not treat this like overloaded_error (529). Litmiq cannot raise an Anthropic cap. After access resumes, you can run an eval in Litmiq with your own key.
Sources
#- Anthropic API errors — 429 rate_limit_error definition
- Anthropic rate limits — spend cap JSON, resume time, token bucket, RPM/ITPM/OTPM
Official documentation checked 27 November 2026. Independent explainer. Litmiq is not affiliated with, endorsed by or sponsored by OpenAI, Anthropic, Google, Microsoft or Cloudflare. Product names are used nominatively to identify official error codes.
FAQ
#Why is there no Retry-After header?
Anthropic says a tier spend-cap 429 has no retry-after header and keeps failing until access resumes. A genuine rate-limit 429 may include retry-after.
When does access resume after the monthly cap?
Official rate-limits documentation says usage pauses until 00:00 UTC on the first day of the next month, unless you request a higher limit sooner or move to a higher tier.
Is a 400 also a spend limit?
Yes, in one official case: when usage reaches a spend limit you set yourself, Anthropic says requests return HTTP 400 with invalid_request_error, not 429. Claude Code workspace limits can instead return a 429 with retry-after.
Test your own prompt once the API accepts requests
#Litmiq cannot lift a provider rate limit, spend cap or credit balance. You can still run a smaller eval in your browser with your own API key.
- Free, no signup
- Runs in your browser
- Your OpenAI key, sent only to OpenAI
Newsletter
Get Litmiq AI Weekly
Practical AI tips and the best tools of the week, in plain English.