Submit a toolSubmit

OpenAI returned 429 with insufficient_quota. Fix billing before you retry

If the OpenAI API returns 429 and error.type is insufficient_quota (or error.code is credit_balance_exhausted, organization_spend_limit_exceeded, project_spend_limit_exceeded, or organization_usage_limit_exceeded), do not treat it like a rate limit: retrying will not restore access until you add credits or raise the matching limit. Short answer: 5 steps. 1) Read error.code, not only HTTP 429; 2) Stop retry loops on billing codes; 3) Fix the matching billing control; 4) Confirm org and project on the key; 5) Only then apply rate-limit retries.

Last updated: · This page is the decision checklist; the tools list for “Fix an OpenAI API billing or quota 429” is a separate URL.

The problem: If the OpenAI API returns 429 and error.type is insufficient_quota (or error.code is credit_balance_exhausted, organization_spend_limit_exceeded, project_spend_limit_exceeded, or organization_usage_limit_exceeded), do not treat it like a rate limit: retrying will not restore access until you add credits or raise the matching limit.

How do I fix this: OpenAI returned 429 with insufficient_quota?

  1. Read error.code, not only HTTP 429

    Open the response body. Billing failures often still use error.type insufficient_quota. Specific codes matter: credit_balance_exhausted means prepaid credits are gone; organization_spend_limit_exceeded or project_spend_limit_exceeded means a hard spend cap; organization_usage_limit_exceeded means OpenAI’s approved usage limit. Docs: https://developers.openai.com/api/docs/guides/error-codes

  2. Stop retry loops on billing codes

    Do not exponential-backoff these errors. OpenAI’s guidance is explicit: retrying billing, spend, or quota errors will not restore API access. Pause the job, alert on the code, and fix the balance or limit first. Help Center: https://help.openai.com/en/articles/5955604-troubleshooting-api-rate-limits-and-429-errors

  3. Fix the matching billing control

    For credit_balance_exhausted, buy credits in the API billing portal (balance can take a few minutes to show). For org or project spend limits, raise or remove the hard limit if you have permission—or wait for the monthly reset. For organization_usage_limit_exceeded, request a higher approved usage limit. Spend/usage guide: https://help.openai.com/en/articles/6614457-troubleshooting-api-usage-and-spend-limits

  4. Confirm org and project on the key

    If you belong to multiple organizations, check that the key’s default organization and project are the ones you funded. Different orgs have different balances, tiers, and spend caps, so a healthy personal org will not help a depleted work org.

  5. Only then apply rate-limit retries

    If error.code is a true rate limit (for example rate limit reached for requests/tokens or slow_down), honor Retry-After when present, or use exponential backoff with jitter. Official SDKs already retry eligible rate limits—account for that before stacking another loop. Rate limits: https://developers.openai.com/api/docs/guides/rate-limits

Which tools are best to fix an OpenAI API billing or quota 429?

OpenAI error codes

Maps credit_balance_exhausted, spend limits, and rate-limit 429s so you know when not to retry.

Troubleshoot usage and spend limits

Official steps for prepaid credits, org/project spend caps, and approved usage limits.

Troubleshoot rate limits and 429s

Separates temporary rate limits (retry with Retry-After) from billing/quota failures.

API rate limits guide

How to pace requests when error.code is a true rate limit.

All tools for “Fix an OpenAI API billing or quota 429” →

Related fixes

See also AI tools launched today on the daily board.