# LLM API rate limit signals All three vendors answer a rate limit with HTTP 429. They differ in overload codes, header names, and whether a 429 is retryable: spend caps and quotas also return errors that retrying does not fix. ## Facts | Signal | Anthropic | OpenAI | Gemini API | |---|---|---|---| | Rate limit | 429 `rate_limit_error` [1][2] | 429 `rate_limit_error` [3] | 429 `RESOURCE_EXHAUSTED` [5] | | Overload | 529 `overloaded_error` [2] | 503, code `server_is_overloaded` [3] | 503 `UNAVAILABLE`, code `service_unavailable` [5][6] | | Ramp (traffic grew too fast) | 429, `error.details.error_code` = `ramp_limit_exceeded` [1] | 429, code `slow_down` [3] | not documented | | Spend cap | 429, `error_code` = `enforced_spend_limit_reached` [1] | 429 when a hard spend limit is set [3] | 402 `payment_required` when Prepay credit is empty [6] | - Anthropic: limits are RPM, ITPM and OTPM per model class [1]. - Anthropic: a token bucket refills capacity continuously instead of resetting at fixed times [1]. - Anthropic: cache-read tokens do not count toward ITPM limits [1]. - Anthropic: cache-read tokens do not count toward ramp limits [1]. - Anthropic: a spend-cap 429 has no `retry-after` header [1]. - Anthropic: a spend-cap 429 keeps failing until 00:00 UTC on the first day of the next month [1]. - Anthropic, after a ramp 429: wait at least `retry-after` seconds [1]. - Anthropic, after a ramp 429: raise traffic by at most one step per minute [1]. - Anthropic: header `x-should-retry` (`true`/`false`) overrides the SDK's retry decision [2]. - Anthropic SDKs without `retry-after` back off exponentially from 0.5 to 8 seconds [2]. - OpenAI project-scoped limits add `x-ratelimit-limit-project-tokens`, `x-ratelimit-remaining-project-tokens`, `x-ratelimit-reset-project-tokens` [3]. - OpenAI: `slow_down` can occur within RPM and TPM limits; it reflects how fast traffic grew [3]. - OpenAI endpoints that returned 503 `slow_down` for both now return 429 `slow_down` for ramps and 503 `server_is_overloaded` for overload [3]. - OpenAI rule of thumb above 1 million input TPM: grow by no more than 50% every 15 minutes [3]. - Gemini rate limit error codes: `rate_limit_exceeded` (per-minute or per-second limit) and `too_many_requests` (burst), both 429 [6]. - Gemini daily quota: 429 `quota_exceeded`; it clears when the quota resets or is raised [6]. - Gemini spend-based limits run on a rolling 10-minute window and return `429 RESOURCE_EXHAUSTED` [4]. - Gemini: retry only 429, 408 and 5xx [5]. - Gemini: do not retry 400, 402 or 403 [5]. - Gemini backoff example: 1 second, then 2 s, 4 s, 8 s, with jitter [5]. - Gemini Python SDK: retries up to four times [5]. - Gemini Python SDK: first delay about 1 second, maximum delay 60 seconds [5]. ## Use it for - Telling a retryable 429 from one that will keep failing, per vendor, from status, error code and headers. - Choosing the wait: the vendor's retry header when present, else backoff with jitter. - Telling a ramp limit from a rate limit, and how fast traffic may grow back. - Not an account's actual limits; those depend on tier and model. ## Sources 1. Rate limits (rate-limits), Anthropic. https://platform.claude.com/docs/en/api/rate-limits. Read 4 Dec 2026. 2. Errors, Anthropic. https://platform.claude.com/docs/en/api/errors. Read 4 Dec 2026. 3. Rate limits (rate-limits), OpenAI. https://developers.openai.com/api/docs/guides/rate-limits. Read 4 Dec 2026. 4. Rate limits, Google (Gemini API). https://ai.google.dev/gemini-api/docs/rate-limits. Read 4 Dec 2026. 5. Troubleshooting guide, Google (Gemini API). https://ai.google.dev/gemini-api/docs/troubleshooting. Read 4 Dec 2026. 6. API errors, Google (Gemini API). https://ai.google.dev/gemini-api/docs/api-errors. Read 4 Dec 2026. Cite as: mysi, LLM API rate limit signals, mysi.dev/llm-rate-limit-signals, version 1, changed 2026-12-04. Text CC BY 4.0.