OpenAI API 429 rate limit how to fix

You're getting a 429 error from the OpenAI API, and your requests are failing. This happens when you've hit your rate limit — the number of requests or tokens you can send per minute based on your account tier.

OpenAI API 429 rate limit how to fix

You're getting a 429 error from the OpenAI API, and your requests are failing. This happens when you've hit your rate limit — the number of requests or tokens you can send per minute based on your account tier.

What's actually happening

The OpenAI API returns a 429 status code with an error message like "Rate limit reached for requests" or "You exceeded your current quota, please check your plan and billing details." These are two different problems that both trigger 429 errors.

Rate limit errors mean you're sending requests too fast for your tier. Free tier accounts get extremely low limits — around 3 requests per minute and 40,000 tokens per minute on GPT-3.5. Tier 1 (paid accounts with $5+ spending) get 500 requests per minute. Tier 5 accounts get 10,000 requests per minute. If you're building anything beyond a basic prototype, the free tier won't cut it.

Quota errors mean you've exhausted your monthly spending limit or your account has no payment method. Your requests stop completely until you add funds or increase your limit. The error response includes specific details: `error.type` will be "insufficient_quota" or "rate_limit_exceeded", and `error.code` tells you exactly which limit you hit.

How to fix it

1. Check your current tier and limits

Go to platform.openai.com/settings/organization/limits. You'll see your exact requests per minute (RPM), tokens per minute (TPM), and requests per day (RPD) for each model. Note your usage tier — it's listed at the top of the page.

2. Implement exponential backoff

Your code needs to retry failed requests with increasing delays. When you get a 429 error, wait 1 second and retry. If it fails again, wait 2 seconds, then 4, then 8. Most API libraries support this. In Python with the OpenAI library, add:

```python

from openai import OpenAI

client = OpenAI(max_retries=3)

```

This handles retries automatically. For custom implementations, check the `retry-after` header in the 429 response — it tells you exactly how long to wait.

3. Upgrade your tier

If you're on free tier, add a payment method at platform.openai.com/settings/organization/billing. Make one successful payment of at least $5, and you'll automatically move to Tier 1 within 24 hours. Higher tiers require time and spending: Tier 2 needs 7 days + $50 spent, Tier 3 needs 7 days + $100, Tier 4 needs 14 days + $250, Tier 5 needs 30 days + $1,000.

4. Batch your requests

The batch API endpoint processes requests asynchronously with 50% lower costs and doesn't count against your real-time rate limits. Upload a JSONL file with up to 50,000 requests. Results arrive within 24 hours. This works for non-interactive workloads like data processing or content generation.

5. Request a limit increase

Click "Request a limit increase" on the limits page. You need a clear business case: explain your use case, expected request volume, and why current limits don't work. OpenAI typically responds in 3-5 business days. Generic requests get denied — be specific about your needs.

If that doesn't work

If you're hitting quota errors despite having a payment method, check platform.openai.com/usage. Look at your spending this month versus your hard limit (set at platform.openai.com/settings/organization/limits under "Set a monthly budget"). Increase this limit if you've hit it.

For persistent 429 errors after implementing backoff and upgrading tiers, contact OpenAI through the help icon on platform.openai.com. Include your organization ID (from platform.openai.com/settings/organization/general), specific error messages with timestamps, and your current tier. Learn how to contact OpenAI support effectively for faster responses.

If you're seeing other API errors like 401 or 500, the troubleshooting steps differ completely — 429 is specifically about rate limits and quotas, not authentication or server problems.

Questions people actually ask

Q: Why am I getting 429 errors with barely any usage?

A: Free tier limits are 3 RPM for GPT-4 models. If you're testing in a loop or making parallel requests, you'll hit this immediately. Add a payment method to upgrade to Tier 1.

Q: How long until my tier upgrades?

A: Tier 1 happens within 24 hours after your first successful payment. Higher tiers require both spending thresholds and waiting periods — Tier 2 needs 7 days minimum, Tier 5 needs 30 days.

Q: Do rate limits reset?

A: Yes. RPM and TPM limits reset every 60 seconds. If you hit your daily request limit, it resets at midnight UTC.

Q: Can I pay to skip tier requirements?

A: No. OpenAI enforces mandatory waiting periods for each tier to prevent abuse. Spending $1,000 on day one won't get you Tier 5 — you still wait 30 days.

What to remember

  • Free tier is 3 RPM for GPT-4 — unusable for real applications
  • Always implement exponential backoff with the `retry-after` header
  • Tier upgrades require both spending and time — you can't rush higher tiers
  • Batch API bypasses rate limits entirely for async workloads
  • Check platform.openai.com/settings/organization/limits for exact current limits

---

*openai-support.com is an independent resource, not affiliated with OpenAI Inc.*

Related help