Which 429 do you have?
| Message / code | Cause | Fix |
|---|---|---|
| Rate limit reached for requests | Too many requests or tokens in a short time | Back off and retry (below) |
slow_down (type rate_limit_error) | Your traffic grew faster than the service allows, even inside your RPM and TPM | Follow Retry-After, cut the rate, ramp up gradually |
credit_balance_exhausted | No prepaid credits left | Add credits in billing settings |
organization_spend_limit_exceeded | The organization hit the monthly spend limit you set | Raise or remove it, or wait for the monthly reset |
project_spend_limit_exceeded | One project hit its own spend limit; other projects keep working | Raise or remove it in project settings |
organization_usage_limit_exceeded | The organization reached the monthly usage limit OpenAI assigned it | Request a higher approved limit, or contact support |
For billing 429s the broader error.type can still read insufficient_quota, so check error.code. OpenAI's docs are explicit: retrying a billing, spend or quota error won't restore access.
Fix a rate-limit 429
- Wait as long as
Retry-Aftersays, then add a little random delay. Without the header, use exponential backoff with jitter and cap both attempts and total time. - Know what the SDK already does. The official SDKs retry eligible 429 and 503 responses on their own. In Python the default is 2 retries:
If you write your own retry loop, turn SDK retries off or count them, or the two loops multiply your requests.from openai import OpenAI client = OpenAI(max_retries=4) # default 2; 0 turns SDK retries off - Stop hammering. Failed requests count toward your per-minute limit, so instant resends make it worse.
- Set
max_tokensclose to the answer size you expect. The limit counts the larger ofmax_tokensand the estimated tokens of the request. - Move work that can wait to the Batch API. It has its own queue limit and doesn't use your synchronous rate limits.
- Out of requests but not tokens? Put several tasks into one request to use your spare TPM.
Find your limits
Limits are set per organization and per project, not per user, and vary by model. Some model families share one limit, listed as a "shared limit" on Settings → Organization → Limits. Every response also carries the current state:
| Header | Shows |
|---|---|
x-ratelimit-remaining-requests / -tokens | What is left before the limit |
x-ratelimit-reset-requests / -tokens | Time until it resets, e.g. 1s or 6m0s |
x-ratelimit-*-project-tokens | A project-level token limit, when one applies |
Retry-After | Minimum seconds to wait, on temporary 429s and overload 503s only |
Usage tiers
Tiers rise automatically with total credit purchases, and higher tiers generally get higher rate limits:
| Tier | Qualifies at | Monthly usage limit |
|---|---|---|
| Free | Allowed geography | $100 |
| Build | $5 purchased | $500 |
| Launch | $100 purchased | $5,000 |
| Grow | $500 purchased | $200,000 |
The slow_down ramp rule
OpenAI's rule of thumb: once traffic reaches 1 million input tokens per minute, raise it by no more than 50% every 15 minutes. The exact point varies by model and traffic, so ramp new jobs up instead of starting them at full speed.
Still failing?
- Check the key belongs to the organization and project you think it does: a forgotten project with its own spend limit gives a 429 while the rest of the account looks fine.
- A
503withserver_is_overloadedis model capacity, not your limit. Check status.openai.com. - For support, collect the exact message,
error.code, request IDs (thex-request-idheader;_request_idin the Python SDK), a timestamp with time zone and the limit involved. Never include the API key.
Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review
FAQ
What does 'insufficient_quota' mean in an OpenAI 429?
It is the broad error type OpenAI can still use for billing errors. Read error.code to see which one: credit_balance_exhausted, a spend limit or the usage limit. Retrying won't fix any of them.
Do failed requests count toward OpenAI rate limits?
Yes. OpenAI's rate-limit guide says unsuccessful requests count toward your per-minute limit, so resending in a tight loop doesn't work.
How many times does the OpenAI Python SDK retry a 429?
Twice by default. Change it with max_retries on the client or per request; 0 disables retries.
How do I get a higher OpenAI rate limit?
Usage tiers upgrade automatically as total credit purchases grow: Build at $5, Launch at $100, Grow at $500. Project limits are set by your organization owner.
Related errors
- Anthropic API 429 rate_limit_error
- Gemini CLI error 429 Resource exhausted
- Claude API error 529 overloaded_error
Sources
Read 30 Nov 2026. These tools change often: if a step no longer matches, the linked page wins.
- OpenAI API docs: Error codes: developers.openai.com/api/docs/guides/error-codes
- OpenAI API docs: Rate limits: developers.openai.com/api/docs/guides/rate-limits
- OpenAI Help Center: Troubleshooting API rate limits and 429 errors: help.openai.com/en/articles/5955604-how-can-i-solve-429-too-many-requests-errors
- openai/openai-python README (retries, request IDs): github.com/openai/openai-python/blob/main/README.md
- OpenAI status page: status.openai.com
- LLM API cost checker: find LLM calls with no limits or retries capped
- Guide: API rate limiting and 429 Too Many Requests: rate limits on your own API
- Exposed API key checker: find API keys committed to a repo or shipped to the browser