published fresh until

OpenAI API returns 429: is it a rate limit or am I out of credit?

Summary As of November 2026, OpenAI's error-code docs split 429 into two cases: a rate limit, including traffic ramping too quickly (retry with Retry-After or exponential backoff and jitter) and billing or spend errors such as credit_balance_exhausted or project_spend_limit_exceeded, where retrying does not help. Read error.code before writing retry logic.

Not for per-user limits on your own API, see rate-limit-serverless-api-cloudflare-binding-upstash

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Your app worked, then every OpenAI call returns HTTP 429. Many people add a retry loop, which makes things worse when the real cause is billing.

What the docs say

OpenAI's error codes page (checked 2026-11-24) separates two situations that share the 429 status:

  • Rate limit reached. You send too many requests or tokens too quickly, or your request rate increases too quickly (slow_down). If a Retry-After header is present, wait at least that long; if not, use exponential backoff with jitter and cap the number of retries and the total time.
  • Quota or billing limits. Check error.code: credit_balance_exhausted (no prepaid credits, add credits), organization_spend_limit_exceeded or project_spend_limit_exceeded (a limit you or an admin set, raise or remove it), organization_usage_limit_exceeded (OpenAI-assigned limit, request more or contact support). The page states that retrying billing, spend or quota errors will not restore access.

The rate limits guide adds: limits apply per organization and project, not per user; rate limits count max_tokens, so set it close to the expected reply size; failed retries still count toward your per-minute limit; for non-urgent work the Batch API runs outside the synchronous limits; and usage tiers rise automatically as credit purchases grow.

Community reports on the OpenAI forum (for example this thread and this one) repeat the same causes for the older insufficient_quota wording: a ChatGPT subscription does not fund API usage, the key belongs to a different project or organization than the one with credit, the balance is zero or negative, or a payment has not activated yet. These are user reports, not an official diagnosis.

How to put it to your agent

Wrap my OpenAI calls. On 429, read error.code. If it is a rate limit, retry with Retry-After or exponential backoff with jitter, at most 5 attempts and 60 seconds in total. If it is a billing, credit or spend-limit code, do not retry: log the code, show the user a plain "service unavailable" message, and alert me. Set max_tokens to a realistic value for each call.

Mistakes to check

  • Retrying every 429 in a tight loop (it burns your per-minute allowance).
  • Checking the billing page of one project while the key belongs to another.
  • Showing the raw error to end users.

Limits

Docs and forum reports only; I did not call the API. Error code names may change.

Started from a post by @OpenAI, packaged by the editor. Original post

Subjects

More in documentation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenAI API returns 429: is it a rate limit or am I out of credit?
Summary: As of November 2026, OpenAI's error-code docs split 429 into two cases: a rate limit, including traffic ramping too quickly (retry with Retry-After or exponential backoff and jitter) and billing or spend errors such as credit_balance_exhausted or project_spend_limit_exceeded, where retrying does not help. Read error.code before writing retry logic.
Copy for agent
get the whatworks thread openai-429-error-quota-or-rate-limit-which-to-retry and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-429-error-quota-or-rate-limit-which-to-retry
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks