OpenAI API error 429 rate limit how to fix
You're building something with the OpenAI API and suddenly your requests stop working — error 429 pops up with "Rate limit reached" or "You exceeded your current quota". This hits developers on free trials, new paid acco
OpenAI API error 429 rate limit how to fix
You're building something with the OpenAI API and suddenly your requests stop working — error 429 pops up with "Rate limit reached" or "You exceeded your current quota". This hits developers on free trials, new paid accounts, and even established users during traffic spikes.
What's actually happening
Error 429 means you've hit one of OpenAI's usage limits. The API enforces three types of boundaries: requests per minute (RPM), tokens per minute (TPM), and requests per day (RPD). When you cross any threshold, the API blocks new requests until your rate window resets.
The exact error message tells you which limit you've hit. You might see "Rate limit reached for requests" (too many API calls), "Rate limit reached for tokens" (too much text processed), or "You exceeded your current quota" (billing issue, not technically a rate limit). Each tier — free, pay-as-you-go Tier 1, Tier 2, etc. — has different caps. A Tier 1 account on GPT-4 gets 500 RPM and 10,000 TPM. Tier 5 gets 10,000 RPM and 2 million TPM.
Free trial accounts have the lowest limits and they expire. If you're seeing 429 errors on a trial account, you've likely burned through your initial credit or hit the rate cap. Paid accounts start at Tier 1 and automatically move up tiers based on how much you've spent and how long you've been paying — $5 spent gets you Tier 2 after 7 days, $50 gets Tier 3 after 7 days, and so on.
How to fix it
1. Check your current tier and limits
Log into platform.openai.com and go to Settings → Limits. You'll see your exact RPM, TPM and RPD limits for each model. If you're on Tier 1 with 500 RPM and you're trying to send 1,000 requests in a minute, that's your problem right there.
2. Add payment method and upgrade tier
If you're on a free trial, go to Settings → Billing and add a payment method. Your limits increase immediately to Tier 1. If you're already paying but stuck at a low tier, you need to wait — OpenAI increases tiers automatically based on payment history and time. You can't manually request a tier bump.
3. Implement exponential backoff in your code
When you get a 429 response, wait before retrying. Start with a 1-second delay, then double it each time: 1s, 2s, 4s, 8s. Most HTTP libraries have retry logic built in. The response headers include `x-ratelimit-remaining-requests` and `x-ratelimit-reset-requests` — read these to know when you can try again.
4. Batch requests or reduce token count
If you're hitting token limits, send less text per request. Trim your prompts, limit conversation history, or split large documents into smaller chunks. If you're hitting request limits, batch multiple tasks into single API calls using features like batch processing or combining prompts.
5. Request a quota increase
For accounts spending $1,000+ monthly, go to Settings → Limits and click "Request a quota increase". Explain your use case and current spend. OpenAI reviews these manually and typically responds in 3-5 business days. They don't approve increases for brand new accounts.
If that doesn't work
Check if you're seeing "insufficient_quota" instead of a rate limit error — that means your payment method failed or you hit your billing hard cap. Go to Billing → Overview and verify your payment is active. For other OpenAI API error codes like 401 or 500, you'll need different troubleshooting steps.
If your limits seem wrong for your tier, contact OpenAI support through the help icon at platform.openai.com. Include your organization ID (from Settings), the exact error message, and timestamp. They usually respond within 24-48 hours for billing and quota issues.
For unexpected charges while troubleshooting rate limits, check your API usage dashboard — runaway loops and forgotten scripts rack up costs fast.
Questions people actually ask
Q: How long until my rate limit resets?
A: RPM and TPM limits reset every 60 seconds. Check the `x-ratelimit-reset-requests` header in the error response for the exact Unix timestamp.
Q: Can I pay to instantly increase my tier?
A: No. Tiers increase automatically based on account age and cumulative spending. A new account can't jump straight to Tier 5 even with a large payment.
Q: Why do I get 429 errors on some models but not others?
A: Each model has separate rate limits. GPT-4 has much lower limits than GPT-3.5-turbo. Check Settings → Limits to see per-model caps.
Q: Does retrying immediately help?
A: No — it makes it worse. Immediate retries count against your limit and extend how long you're blocked. Always implement exponential backoff.
What to remember
- Error 429 means you've exceeded RPM, TPM, or RPD limits for your tier
- Free trials have the lowest caps — add payment to reach Tier 1 immediately
- Implement exponential backoff with 1s, 2s, 4s delays between retries
- Check Settings → Limits for exact numbers — don't guess your tier
- Quota increases require manual review and only work for established paying accounts
---
*openai-support.com is an independent resource, not affiliated with OpenAI Inc.*