Anthropic 429: rate limits, spend caps, and retry headers

Distinguish Claude traffic limits from monthly spend caps, inspect structured details, and account for workspace, cache and SDK behavior.

By benchr Editorial Team · · · Changelog

Provider documentation read . Documentation review; no provider execution is established by this date.

Anthropic's rate_limit_error does not always mean that a short wait will restore access. The current Messages documentation also uses HTTP 429 for a monthly tier-spend cap. Read the structured details and the response headers before adding a retry loop.

Separate traffic pressure from a spend cap

Request, input-token, or output-token rate limit

Signal. HTTP 429; inspect the named limiter and available retry-after guidance.

Action. Wait at least the instructed duration, reduce pressure, and retry only within a bounded policy.

Monthly usage-tier spend cap

Signal. On Messages, error.details.error_code is enforced_spend_limit_reached; the response has no retry-after header.

Action. Pause the queue. Access resumes with the next monthly cycle or an approved higher limit; repeated requests do not raise the cap.

An organization or workspace spend limit you configured

Signal. Generally HTTP 400 invalid_request_error, with a message identifying the specified API usage limit.

Action. Have an authorized owner review that limit rather than changing the request schema blindly.

Claude Code workspace limit

Signal. Checked separately; can return HTTP 429 with retry-after.

Action. Follow the workspace-specific limit guidance. Do not infer its behavior from the general organization spend-cap response.

A missing header alone does not identify a billing problem. For Messages, the explicit enforced_spend_limit_reached detail is the useful discriminator. Handle unknown or missing details without treating every unfamiliar 429 as retryable.

Capacity replenishes continuously

Anthropic documents token-bucket rate limiting: capacity refills continuously up to the limit rather than resetting in one fixed minute. Limits are separated into requests per minute, input tokens per minute, and output tokens per minute for each model class. Workspace limits can be lower than organization limits, and sharp usage increases can also trigger acceleration controls.

Use the anthropic-ratelimit-requests-*, anthropic-ratelimit-input-tokens-*, and anthropic-ratelimit-output-tokens-* headers where supplied. Their reset fields are RFC 3339 times; they are not the same format as OpenAI's documented duration headers. Token-remaining values can be rounded. The combined token headers reflect the most restrictive applicable limit, so keep the workspace scope with the incident record.

A worker pool does not establish a rate limit

A concurrency cap controls how many requests are in flight. It does not alone cap how many start per minute: fast responses free slots faster. For a sustained workload, combine a bounded queue, paced admission, request and token budgets, and explicit backpressure when the queue fills. Coordinate those budgets across workers that share the organization or workspace.

Ramp traffic gradually after a deployment or backlog release. If the problem is acceleration rather than a steady-state ceiling, immediately restoring maximum concurrency can repeat it. A temporary 529 overload is a separate response and should be recorded separately.

Cache accounting depends on the model

The rate-limit guide says that for most Claude models, cache reads do not count toward input-token-per-minute usage, while uncached input and cache writes do. It also identifies model-specific exceptions. Do not apply a universal cache multiplier or assume that every token shown in a cached request has the same rate-limit treatment.

The response's input_tokens is not the whole cached input. Total input includes input_tokens, cache_creation_input_tokens, and cache_read_input_tokens. Keep that distinction when comparing token counts with the model's context limit or your billing estimate. A billing discount and a rate-limit exemption are different contracts.

One retry policy, with a stopping condition

Anthropic documents two SDK retries by default for eligible transient failures and honors retry-after when present. If an application loop owns retries, configure or disable the SDK retry layer so attempts do not multiply. Count initial calls and retries separately, preserve the request ID, set a timeout for each attempt, and stop when the remaining operation budget cannot accommodate the server's minimum wait.

No account limits or authenticated requests were tested for this guide. The source review establishes documented behavior as of its stated date. Your actual model, workspace, usage tier, and deployment must be checked in the Console.

Changelog

  • 2026-10-15 — Reconstructed the guide around continuous token-bucket refill, separate limit dimensions, explicit spend-cap details and workspace exceptions. Removed claims that concurrency alone establishes a steady request rate.
  • — Published. Rate-limit behavior, the acceleration-limit caveat, and the response shape verified against Anthropic's API error docs.

Sources and documentation review

Documentation review dates are recorded per source. No provider inference or independent benchmark replication was performed for this revision.

  1. Claude API errors — read
  2. Claude API rate and spend limits — read