OpenAI Rate Limits: Usage Tiers, 429 Errors and Fixes

8 min read

You are hitting OpenAI rate limits because your organization or project sent more requests or more tokens in a minute (or a day) than its usage tier allows for that model. OpenAI answers with HTTP 429 and expects you to wait. The fix is usually a mix of three things: retry properly with backoff, shrink what you count against the limit, and move work that is not urgent to the Batch API, which has its own separate pool.

If none of that is enough, you have hit the real ceiling of a shared, metered service. At that point the options are an enterprise capacity agreement with OpenAI, or capacity you own, where throughput is bounded by your GPUs rather than by a quota.

Everything about OpenAI below was checked against OpenAI's own documentation in November 2026. The limits change often, so confirm your own numbers on the Limits page of your organization settings.

How OpenAI rate limits work

OpenAI's rate limits guide measures usage in five ways:

Limit Meaning
RPM Requests per minute
RPD Requests per day
TPM Tokens per minute
TPD Tokens per day
IPM Images per minute

Whichever fills first throttles you. OpenAI's own example: 20 requests of 100 tokens each will exhaust a 20 RPM limit while barely touching TPM. So a 429 does not always mean "too many tokens". Look at which counter ran out.

A few details catch people out:

  • Limits apply at the organization and project level, not per user or per API key. Ten services sharing one project share one budget.
  • Limits differ by model, and some model families share a single limit, so traffic to one model in the group eats into the others.
  • Long-context requests on some models have their own separate limit.
  • Failed requests count against your per-minute limit too. A tight retry loop makes things worse, not better.

OpenAI usage tiers

Your limits grow with your tier, and the tier upgrades automatically as your total credit purchases cross each threshold. The tiers as listed in November 2026:

Tier Qualification Monthly usage limit
Free Allowed geography $100
Build $5 in total credit purchases $500
Launch $100 in total credit purchases $5,000
Grow $500 in total credit purchases $200,000

OpenAI says higher tiers "generally provide higher rate limits across models", but the per-model RPM and TPM numbers are not in the guide itself. You see them under Settings > Organization > Limits, which is also where you can request a tier upgrade. Above Grow, OpenAI points enterprise customers who need predictable capacity to its Scale Tier and Reserved Tier offerings, which are sales conversations rather than settings.

Reading the rate limit headers

Every response carries headers that tell you how close you are. From the same guide:

Header Example value
x-ratelimit-limit-requests 60
x-ratelimit-limit-tokens 150000
x-ratelimit-remaining-requests 59
x-ratelimit-remaining-tokens 149984
x-ratelimit-reset-requests 1s
x-ratelimit-reset-tokens 6m0s
x-ratelimit-limit-project-tokens 60000
x-ratelimit-remaining-project-tokens 57000
x-ratelimit-reset-project-tokens 3s
Retry-After 56

Retry-After is the minimum number of seconds to wait before retrying. The remaining headers are the ones to log: if remaining-tokens drops toward zero every afternoon, you know which limit to raise or which traffic to move.

In the Python SDK you can read them with with_raw_response:

from openai import OpenAI

client = OpenAI()
raw = client.chat.completions.with_raw_response.create(
    model="gpt-5.4-mini",
    messages=[{"role": "user", "content": "Summarize this ticket: ..."}],
    max_tokens=200,
)
print(raw.headers.get("x-ratelimit-remaining-tokens"))
completion = raw.parse()

Not every OpenAI 429 error is a rate limit

OpenAI's error codes page lists six different 429 errors, and only two of them go away if you wait:

error.code or message Cause Retry helps
Rate limit reached for requests Sending too fast Yes
slow_down Request rate increased too quickly Yes, then ramp gradually
credit_balance_exhausted No prepaid credits left No, add credits
organization_spend_limit_exceeded Your own org spend cap No, raise the cap
project_spend_limit_exceeded Your own project spend cap No, raise the cap
organization_usage_limit_exceeded OpenAI-assigned usage limit No, request a higher limit

Check error.code before you retry. Retrying a billing error just burns attempts and fills your logs.

slow_down deserves a note: OpenAI says it "can occur even when your traffic is within its requests-per-minute and tokens-per-minute limits", because the rate rose too fast. Its rule of thumb is that once you reach 1 million input tokens per minute, you should grow traffic by no more than 50% every 15 minutes. If you are launching a feature to all users at once, ramp it.

Handling 429s with retries and backoff

OpenAI's guidance comes down to this: honor Retry-After as a minimum, add a little random jitter so your clients do not all retry at the same moment, fall back to exponential backoff when the header is missing, and cap both the number of attempts and the total wait.

The official Python SDK already retries 429s and 5xx errors twice by default with a short exponential backoff. That is fine for an occasional blip. For batch-like workloads that run into the limit for minutes at a time, take control:

import random
import time
from openai import OpenAI, RateLimitError

client = OpenAI(max_retries=0)  # retries handled below

DO_NOT_RETRY = {
    "credit_balance_exhausted",
    "organization_spend_limit_exceeded",
    "project_spend_limit_exceeded",
    "organization_usage_limit_exceeded",
}

def create_with_backoff(max_attempts=6, max_delay=60, **kwargs):
    delay = 1.0
    for attempt in range(max_attempts):
        try:
            return client.chat.completions.create(**kwargs)
        except RateLimitError as e:
            if e.code in DO_NOT_RETRY or attempt == max_attempts - 1:
                raise
            try:
                wait = float(e.response.headers.get("retry-after"))
            except (TypeError, ValueError):
                wait = delay
                delay = min(delay * 2, max_delay)
            time.sleep(wait + random.uniform(0, 1))

Backoff keeps you from failing. It does not give you more capacity. If your queue is always behind, the next steps are about using less of the limit or a different pool.

Getting more out of the same OpenAI TPM limit

Set max_tokens close to what you need

This one surprises people. OpenAI counts a request against your limit using the larger of max_tokens and the estimated size of the request. A summary that is usually 150 tokens, sent with max_tokens=4000, reserves far more of your TPM than it uses. Set it close to the real response length.

Pack several tasks into one request

If RPM runs out while TPM has room, OpenAI suggests batching several tasks into each request: classify 20 tickets in one call instead of 20 calls. This works especially well with small models and structured output.

Spread traffic across projects deliberately

Because limits are per organization and project, a noisy batch job and a customer-facing chat feature in the same project compete for one budget. Splitting them makes the chat feature's headroom predictable. A self-hosted LLM gateway in front of your apps can also enforce per-team quotas, so one team cannot starve another.

The Batch API: a separate pool at half the price

For anything that does not need an answer in seconds, such as nightly document processing, evaluations or backfills, the Batch API is the biggest lever you have:

  • Batch jobs do not count toward your standard per-model request or token limits. They use a separate limit on queued input tokens per model.
  • It costs 50% less than the synchronous API.
  • Results come back within a 24-hour window.
  • One batch can hold up to 50,000 requests in an input file of up to 200 MB.

The catch is the 24-hour window. It suits offline work and nothing interactive. Moving offline traffic off the synchronous limit also frees that headroom for the requests users are waiting on. Our post on how to reduce OpenAI API costs covers the Batch API and the other cost levers in more depth.

Dedicated capacity: an LLM without token limits

All of the above works inside someone else's quota. For some workloads that is the wrong frame: a support tool that summarizes every ticket all day, a document pipeline that runs around the clock, an internal assistant used by thousands of employees. These have steady, predictable volume, and a per-minute token allowance is just a ceiling you keep renegotiating.

Running an open-weight model on your own GPUs changes what the limit is. There is no TPM quota and no tier. Throughput is set by your hardware, the model size, the quantization and the inference server. When you exceed it, requests queue and latency rises; nobody returns a 429 unless you configure it to. Adding capacity means adding a GPU or a replica, not waiting for a tier upgrade. Servers with continuous batching, compared in vLLM vs Ollama, are what make one GPU serve many concurrent requests efficiently. To know your ceiling in advance, measure decode speed at your real concurrency, as described in LLM tokens per second.

Be honest about the trade. You give up frontier-model quality on the hardest tasks, and you pay for the GPUs whether they are busy or idle. The self-hosted LLM cost breakdown shows where steady volume makes that worthwhile. Because most open-model servers expose an OpenAI-compatible API, you can move one rate-limited workload over by changing the base URL and model name, and leave the rest on OpenAI.

AI Refinery, a self-hosted LLM platform, is built for that second path. It installs in your own cloud, VPC or an air-gapped network, on GPUs you provide. Every model in its catalog is benchmarked per quantization variant for GPU memory and measured tokens per second, so you can see the expected throughput before you deploy, and each deployed model exposes an OpenAI-compatible /v1/chat/completions endpoint. Request volume, latency, token usage and errors for each inference server show up in one dashboard, which tells you when to add capacity.

A short checklist when 429s start

  1. Read error.code. If it is a credit, spend or usage limit, fix billing; do not retry.
  2. Log the x-ratelimit-remaining-* headers to see whether RPM or TPM runs out first.
  3. Lower max_tokens to realistic values.
  4. Add jittered backoff that honors Retry-After.
  5. Move offline work to the Batch API.
  6. Split noisy workloads into their own projects, and request a tier upgrade if you qualify.
  7. For steady, high-volume work that still hits the ceiling, price out dedicated capacity on your own GPUs.