OpenAI API "Rate limit reached" (429): what it means and how to fix it
Updated 2026-11-26
Model page: GPT-6 Sol API — pricing, specs and the playground
OpenAI measures rate limits in requests per minute (RPM), requests per day (RPD), tokens per minute (TPM), tokens per day (TPD) and, for image models, images per minute (IPM). Whichever one you reach first returns the 429. Limits are set per organization and per project, not per user or per API key, and they differ by model, so a teammate's batch job can use up the limit your own key shares. Two details catch people out. First, the limit counts the larger of your max_tokens value and the estimated size of the request, so a small prompt with a very large max_tokens uses a large slice of TPM. Second, failed requests count towards the per-minute limit, so resending the same request in a tight loop keeps you locked out.
This page follows OpenAI's error-codes and rate-limits guides as they read on 26 November 2026. Older answers and forum threads describe five numbered tiers and a single "quota exceeded" 429; the current docs list four usage tiers (Free, Build, Launch, Grow) and six separate 429 errors, each with its own error code.
The six kinds of OpenAI 429, and which ones clear
| Error | How to tell | Does retrying help? | What to do |
|---|---|---|---|
| Rate limit reached for requests | The message names the limit (requests or tokens); Retry-After may be present | Yes, after a wait | Wait Retry-After seconds, then pace requests; check what the rest of the organization is sending |
| Slow down | type rate_limit_error, code slow_down | Yes, once traffic is steady | Cut the rate, then raise it gradually; above 1M input TPM, by no more than 50% every 15 minutes |
| Credit balance exhausted | code credit_balance_exhausted | No | Add prepaid credits in billing settings |
| Organization spend limit reached | code organization_spend_limit_exceeded | No | Raise or remove the limit in organization settings, or wait for the monthly reset |
| Project spend limit reached | code project_spend_limit_exceeded | No | Raise or remove the limit in project settings, or wait for the monthly reset |
| Organization usage limit reached | code organization_usage_limit_exceeded | No | Ask OpenAI for a higher approved usage limit; this cap is assigned by OpenAI, not set by you |
| Not a 429: 503 Model temporarily overloaded | type service_unavailable_error, code server_is_overloaded | Yes, with longer waits | Honor Retry-After, lengthen the delay between retries, check the status page |
OpenAI usage tiers and the limits that come with them
Your tier sets both your rate limits and your monthly usage limit. It moves up automatically as your total credit purchases reach each threshold; there is no waiting period in the current docs. To see the exact numbers for your organization, open Settings > Organization > Limits. A model appearing in the rate-limit table does not mean your organization has access to it.
| Tier | How you qualify | Monthly usage limit | RPM / TPM for Astra, Sol and Terra |
|---|---|---|---|
| Free | Be in a supported geography | $100 | See your Limits page |
| Build | $5 in total credit purchases | $500 | 5,000 RPM / 1,000,000 TPM |
| Launch | $100 in total credit purchases | $5,000 | 10,000 RPM / 4,000,000 TPM |
| Grow | $500 in total credit purchases | $200,000 | 15,000 RPM / 40,000,000 TPM |
How to fix it
1. Read error.code first. The Python SDK raises RateLimitError for every 429, so the exception type alone does not tell you whether to wait or to go to billing. The code does.
2. Treat Retry-After as a minimum. When the header is present, wait at least that many seconds and add a small random delay. When it is missing, use exponential backoff with jitter, and cap both the number of attempts and the total time.
3. Do not stack retry loops. The official SDKs already retry. If you add your own loop around them, turn the SDK's retries off or count them, otherwise one failure becomes many requests and each failed one counts towards the limit.
4. Set max_tokens close to what you expect. The limit is charged on the larger of max_tokens and the estimated request size, so a generous max_tokens spends TPM you never use.
5. Watch the x-ratelimit headers. Every response reports the limit, what remains and when it resets, for requests and for tokens (x-ratelimit-remaining-requests, x-ratelimit-remaining-tokens, x-ratelimit-reset-tokens and the project-scoped versions). Slow down before remaining reaches zero.
6. Ramp up, do not jump. A bulk job that goes from idle to full speed can get slow_down while it is still inside RPM and TPM. Start low and increase in steps.
7. Move work that can wait to the Batch API. Batch jobs have their own limit on queued input tokens and do not use your per-minute request limit.
Rate limits when you call GPT models through APIMODELS
On APIMODELS you do not have an OpenAI organization, so OpenAI's usage tiers, monthly usage limits and spend limits do not apply to you. You pay per token from a prepaid balance. When the balance cannot cover a request, you get our own 402 insufficient_credits error, which states how much the request needs and what your balance is; it is not a 429 and retrying does not help.
We have one limit of our own: 20 POST requests per second per API key, with a burst allowance of 400 requests. Above that you get a 429 from us. Status polling with GET is not counted.
Upstream rate limits still exist. GPT-6 (Sol, Astra, Luna), GPT-6.1 (Sol, Terra) and GPT-5.6 (Sol, Terra, Luna) are each served through at least two upstream routes: if the first route answers with a 429 or a 5xx, or fails to connect, before the response starts, the request goes to the next route automatically, and you only see an error when every route has failed. GPT-6.2 Sol and Astra were added on 18 November 2026 and do not both have a second route yet, so an upstream 429 on those can reach you directly. Failed requests are not charged. One thing we cannot do: once a response has started streaming, a failure in the middle cannot be moved to another route.
Início rápido
cURL
# -i prints the response headers, so you can see Retry-After and x-ratelimit-* on a 429
curl -i https://api.apimodels.app/v1/chat/completions \
-H "Authorization: Bearer $APIMODELS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-sol",
"max_tokens": 512,
"messages": [{"role": "user", "content": "Summarise this error log in three bullet points."}]
}'Python
import random, time
import openai
# Same OpenAI SDK, pointed at APIMODELS. max_retries=0: this loop is the only retry layer.
client = openai.OpenAI(
base_url="https://api.apimodels.app/v1",
api_key="sk_...your_apimodels_key...",
max_retries=0,
)
# 429s that need action, not a retry (OpenAI's codes; APIMODELS answers 402 when the balance is short)
NO_RETRY = {"credit_balance_exhausted", "organization_spend_limit_exceeded",
"project_spend_limit_exceeded", "organization_usage_limit_exceeded"}
def ask(prompt, attempts=5):
for i in range(attempts):
try:
return client.chat.completions.create(
model="gpt-6-sol",
max_tokens=512, # close to what you expect: the limit counts max_tokens
messages=[{"role": "user", "content": prompt}],
)
except openai.RateLimitError as e:
if e.code in NO_RETRY or i == attempts - 1:
raise
retry_after = e.response.headers.get("retry-after")
wait = float(retry_after) if retry_after else min(2 ** i, 30)
time.sleep(wait + random.uniform(0, 1)) # Retry-After is a minimum; add jitter
print(ask("Summarise this error log in three bullet points.").choices[0].message.content)Perguntas frequentes
What does "Rate limit reached" mean on the OpenAI API?
It means your organization or project sent more requests or tokens to that model in a short period than its limit allows. OpenAI counts requests per minute, requests per day, tokens per minute and tokens per day, and the 429 comes from whichever is reached first. It is temporary: wait the Retry-After seconds, or back off exponentially, and send requests more evenly.
How long does an OpenAI 429 error last?
It depends on which 429 it is. "Rate limit reached" and "Slow down" clear in seconds to minutes; the Retry-After header, when present, gives the minimum wait, and x-ratelimit-reset-requests and x-ratelimit-reset-tokens show when each limit refills. A spend-limit 429 lasts until the monthly limit resets or you raise it. "Credit balance exhausted" and "Organization usage limit reached" last until you add credits or OpenAI approves a higher limit.
Why do I get a 429 when I am under my RPM and TPM limits?
There are four common reasons. Your traffic rose too fast and you got slow_down, which can happen inside RPM and TPM. Your max_tokens is large, and the limit counts max_tokens rather than what the model actually writes. Other keys in the same organization or project are using the shared limit, or the model shares one pool with other models. Or the 429 is not a rate limit at all: check error.code for credit_balance_exhausted or a spend-limit code.
Can I bypass the OpenAI rate limit?
No, and creating extra API keys does not help because limits are per organization and project, not per key. What does work: buy credits to reach a higher tier (Build at $5, Launch at $100, Grow at $500 in total purchases), move work that can wait to the Batch API, lower max_tokens, and spread requests out. Enterprise customers can look at Scale Tier or Reserved Tier.
Do OpenAI usage tiers apply on APIMODELS?
No. You are not an OpenAI organization on APIMODELS, so its tiers, monthly usage limits and spend limits do not apply; you pay per token from your balance, and our own limit is 20 POST requests per second per API key with a burst of 400. Upstream rate limits still exist. GPT-6, GPT-6.1 and GPT-5.6 models run on at least two upstream routes, and a 429 before the answer starts is retried on the next route automatically; GPT-6.2 Sol and Astra do not both have a second route yet.
