Anthropic Claude API error
Anthropic API 402 billing_error: what it means and how to fix it
402 billing_errorRetry? Not statedLast verified 1 documented fix1 source
What it means
There is an issue with your billing or payment information.
Causes
- Problem with billing or payment details on the account
How to fix it
- Fix 1.
Check your payment details in the Claude Console, or in AWS Marketplace if you are using Claude Platform on AWS.
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 stated403 permission_errorRetry? Not stated404 not_found_errorRetry? Not stated409 conflict_errorRetry? Yes413 request_too_largeRetry? Not stated429 rate_limit_errorRetry? Yes
HTTP 402 at other providers
402 Payment RequiredRetry? Not statedCohere API402 - Insufficient BalanceRetry? Not statedDeepSeek API402 payment_requiredRetry? NoGemini API402 RESOURCE_EXHAUSTEDRetry? NoGemini API402 Payment requiredRetry? Not statedMistral API402 payment_requiredRetry? NoOpenRouter402 in_flight_budget_exhaustedRetry? YesOpenRouter402 weight_exceeds_budgetRetry? NoOpenRouter
FAQ
What does the Anthropic API error "402 billing_error" mean?
There is an issue with your billing or payment information.
How do I fix Anthropic API "402 billing_error"?
Check your payment details in the Claude Console, or in AWS Marketplace if you are using Claude Platform on AWS.
Should I retry Anthropic API "402 billing_error"?
Not stated. The official docs do not say whether this error is retryable.
Which other AI APIs return HTTP 402?
Per their official error docs: Cohere API (402 Payment Required), DeepSeek API (402 - Insufficient Balance), Gemini API (402 payment_required; 402 RESOURCE_EXHAUSTED), Mistral API (402 Payment required), OpenRouter (402 payment_required; 402 in_flight_budget_exhausted; 402 weight_exceeds_budget).
Sources
Last verified against 1 source: Anthropic API's official docs and official SDK repositories.
- 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.