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 aRetry-Afterheader 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_exceededorproject_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