Anthropic Claude API error
Anthropic API 429 rate_limit_error (enforced_spend_limit_reached): what it means and how to fix it
429 rate_limit_error (enforced_spend_limit_reached)Retry? NoLast verified 2 documented fixes2 sources
What it means
Your organization reached its usage tier's monthly spend cap. API usage pauses until 00:00 UTC on the first day of the next month. The error type is rate_limit_error, but the response has no retry-after header. On the Messages API, error.details.error_code is enforced_spend_limit_reached.
Causes
- Organization crossed its monthly API usage threshold set by its API tier
How to fix it
- Fix 1.
On the Messages API, check error.details.error_code for enforced_spend_limit_reached to tell this apart from a rate limit. Retrying, including the SDK's automatic retries, fails until access resumes.
- Fix 2.
Move to a higher tier to restore access (see Requesting higher limits).
More Anthropic API errors
All 13 Anthropic API errors400 invalid_request_errorRetry? Not stated400 invalid_request_error (spend limit reached)Retry? Not stated401 authentication_errorRetry? Not stated402 billing_errorRetry? Not stated403 permission_errorRetry? Not stated404 not_found_errorRetry? Not stated409 conflict_errorRetry? Yes413 request_too_largeRetry? Not stated
HTTP 429 at other providers
Compare 429 across providers429 ThrottlingExceptionRetry? YesAmazon Bedrock429 ModelNotReadyExceptionRetry? YesAmazon Bedrock429 Too Many Requests (Rate limit is exceeded)Retry? YesAzure OpenAI429 Too Many Requests (System is experiencing high demand)Retry? YesAzure OpenAI429 Too Many Requests (temporary rate limit adjustment)Retry? YesAzure OpenAI429 Too Many Requests (token budget exceeded by request parameters)Retry? Not statedAzure OpenAI429 Too Many RequestsRetry? YesCohere API429 - Rate Limit ReachedRetry? Not statedDeepSeek API429 rate_limit_exceededRetry? YesGemini API429 quota_exceededRetry? YesGemini API429 too_many_requestsRetry? YesGemini API429 RESOURCE_EXHAUSTEDRetry? YesGemini API
FAQ
What does the Anthropic API error "429 rate_limit_error (enforced_spend_limit_reached)" mean?
Your organization reached its usage tier's monthly spend cap. API usage pauses until 00:00 UTC on the first day of the next month. The error type is rate_limit_error, but the response has no retry-after header. On the Messages API, error.details.error_code is enforced_spend_limit_reached.
How do I fix Anthropic API "429 rate_limit_error (enforced_spend_limit_reached)"?
There are 2 documented fixes. Start with the first: On the Messages API, check error.details.error_code for enforced_spend_limit_reached to tell this apart from a rate limit. Retrying, including the SDK's automatic retries, fails until access resumes.
Should I retry Anthropic API "429 rate_limit_error (enforced_spend_limit_reached)"?
No. The official docs treat this error as not retryable: fix the cause before sending the request again.
Which other AI APIs return HTTP 429?
Per their official error docs: Amazon Bedrock (429 ThrottlingException; 429 ModelNotReadyException), Azure OpenAI (429 Too Many Requests (Rate limit is exceeded); 429 Too Many Requests (System is experiencing high demand); 429 Too Many Requests (temporary rate limit adjustment); 429 Too Many Requests (token budget exceeded by request parameters)), Cohere API (429 Too Many Requests), DeepSeek API (429 - Rate Limit Reached), Gemini API (429 rate_limit_exceeded; 429 quota_exceeded; 429 too_many_requests; 429 RESOURCE_EXHAUSTED), Groq API (429 Too Many Requests), Mistral API (429 Too many requests), OpenAI API (429 credit_balance_exhausted; 429 Rate limit reached for requests; 429 rate_limit_error slow_down; 429 organization_spend_limit_exceeded; 429 project_spend_limit_exceeded; 429 organization_usage_limit_exceeded), OpenRouter (429 rate_limit_exceeded), Vertex AI (429 RESOURCE_EXHAUSTED; 429 Resource exhausted, please try again later; 429 Too many requests. Exceeded the Provisioned Throughput), xAI API (429 Too Many Requests).
Sources
Last verified against 2 sources: Anthropic API's official docs and official SDK repositories.
- platform.claude.comhttps://platform.claude.com/docs/en/api/rate-limits
- platform.claude.comhttps://platform.claude.com/docs/en/api/errors
Newsletter
Know when the APIs change
One email per week. New model releases, API changes, what broke, and how developers are working around it.