OpenAI API error 429 rate limit exceeded
You're building something with the OpenAI API, and suddenly you hit a wall: Error 429: Rate limit exceeded. Your requests stop working, your app breaks, and you're stuck wondering what just happened.
OpenAI API error 429 rate limit exceeded
You're building something with the OpenAI API, and suddenly you hit a wall: `Error 429: Rate limit exceeded`. Your requests stop working, your app breaks, and you're stuck wondering what just happened.
What's actually happening
Error 429 means you've sent too many requests to the OpenAI API in too short a time. OpenAI sets limits on how many requests you can make per minute (RPM) and how many tokens you can process per minute (TPM). When you cross either threshold, the API rejects your requests until the limit resets.
These limits vary by your account tier and the specific model you're using. A new free-tier account might only get 3 requests per minute on GPT-4, while a paid account with usage history could handle 10,000 requests per minute on GPT-3.5-turbo. The API doesn't warn you before you hit the limit — it just stops accepting requests and returns the 429 error.
The error response usually includes a message like `Rate limit reached for gpt-4 in organization org-xxxxx on requests per min (RPM): Limit 3, Used 3, Requested 1`. That tells you exactly which limit you hit and when you can try again.
How to fix it
1. Check your current rate limits
Log into platform.openai.com and go to Settings → Limits. You'll see your exact RPM and TPM limits for each model. If you're on a free tier, your limits are severely restricted — often just 3 RPM for GPT-4 and 200 RPM for GPT-3.5-turbo.
2. Implement exponential backoff
Add retry logic to your code. When you get a 429 error, wait a few seconds and try again. Double the wait time with each failure. Here's the pattern: wait 1 second, then 2, then 4, then 8. Most API libraries have built-in retry mechanisms — enable them.
3. Add request queuing
If you're sending bursts of requests, queue them instead. Spread them out over time so you stay under your per-minute limits. A simple queue that processes one request every 2 seconds keeps you well under a 30 RPM limit.
4. Upgrade your tier
Go to Settings → Billing → Payment methods and add a credit card if you haven't already. Once you've spent at least $5, OpenAI automatically increases your rate limits. Spend $50, and they go up again. The system checks your spend every few hours and adjusts limits accordingly.
5. Request a limit increase
For higher limits than automatic upgrades provide, click the Request increase button next to your limits on the Settings → Limits page. Fill out the form explaining your use case and expected volume. OpenAI typically responds within 7-10 business days. Be specific about which models you need and why — vague requests get rejected.
If that doesn't work
You might be hitting quota limits instead of rate limits. Check if you're seeing OpenAI API error 429 with a message about insufficient quota or billing issues. That's different — it means you've run out of credits or hit your monthly spend cap.
If you've added retry logic and upgraded your account but still hit 429 errors constantly, you're probably trying to process too much volume for your tier. Consider switching to a model with higher limits (GPT-3.5-turbo has much higher limits than GPT-4), batching requests to reduce API calls, or implementing a caching layer so you're not re-processing identical requests.
For urgent issues where you genuinely need higher limits immediately, you can try contacting OpenAI support through the chat widget on platform.openai.com. They sometimes manually increase limits for legitimate business needs, but expect a 2-3 day wait for a response.
Questions people actually ask
Q: How long until my rate limit resets?
A: Rate limits reset every 60 seconds. If you hit your RPM limit at 2:34:17 PM, you can send requests again at 2:35:17 PM. It's a rolling window, not a fixed minute boundary.
Q: Do rate limits apply to all models equally?
A: No. Each model has separate limits. You might have 10,000 RPM on GPT-3.5-turbo but only 500 RPM on GPT-4. Check Settings → Limits for the complete breakdown.
Q: Can I pay to remove rate limits entirely?
A: No. Even the highest-tier accounts have rate limits. OpenAI increases them based on usage history and payment, but limits always exist to prevent abuse and ensure system stability.
What to remember
- Rate limits are per minute and reset on a rolling 60-second window
- Free accounts have extremely low limits — you need to add payment to scale
- Each model has different limits — check Settings → Limits for your specific numbers
- Implement exponential backoff in your code before you hit production
- Limit increases are granted based on spend history and legitimate use cases
---
*openai-support.com is an independent resource, not affiliated with OpenAI Inc.*