GrepBoard/Manuals
605 manuals ·

Fix OpenAI API 429 "You exceeded your current quota"

·Tested on OpenAI API official docs · 2026-10·Test scope ↓·6 steps

The OpenAI API 429 "You exceeded your current quota" is a credit or spend-limit problem, not a rate limit. Read error.code to find the cause and fix billing.

output
You exceeded your current quota, please check your plan and billing details.

The status code is 429, but this is not a rate limit. As the wording says, it is a quota problem: your credits or spend limit ran out. Waiting does not clear it, so look at billing before touching retry code. The 429 caused by sending requests too fast is a different error, covered in OpenAI API 429 "Rate limit reached" (TPM).

[1] Read the whole error object in the response. A forum post with this error shows a body shaped like this (only the start of the message and the type/code fields are copied).

output
"message": "You exceeded your current quota, please check your plan and billing details. ...","type": "insufficient_quota","param": null,"code": "insufficient_quota"

If type and code say insufficient_quota, you are in this article's case. Rate limits are the rate_limit_error family, which the docs list separately as Rate limit reached for requests and Slow down.

[2] Look up error.code in the current table. The official error codes page now splits this problem by cause. It says that for billing errors error.code names the specific cause, while error.type can still be insufficient_quota.

error.codeDocs headingMeaningWhere to fix
credit_balance_exhaustedCredit balance exhaustedThe organization's prepaid credit is used upAdd credits in billing settings
organization_spend_limit_exceededOrganization spend limit reachedThe organization hit its monthly spend limitRaise or remove it in organization limit settings, or wait for the monthly reset
project_spend_limit_exceededProject spend limit reachedThe project hit its monthly spend limitRaise or remove it in project settings
organization_usage_limit_exceededOrganization usage limit reachedThe organization hit the monthly usage limit OpenAI assigned (separate from spend limits you set)Request a higher limit or contact support

The table is the docs' current wording; the old message in step 1 comes from forum posts. The docs do not say which new code corresponds to the old message, so decide from the code value in your body. Whether every call already returns the new codes is also unconfirmed.

[3] Check which project the key belongs to. The most common forum report is "I paid, but it still fails". Cases that were resolved:

  • The balance was negative. Topping up credit by hand fixed it.
  • The limit showed 0.00. A reply suggested the increase-limit button, and a later post reported the API working.
  • The key belonged to a default project with a usage limit of zero. A new project and key fixed it.
  • After adding credit, creating a new key and swapping it in fixed it.

[4] Adjust credits or limits. Add credits in billing settings; if a monthly spend limit is set, raise it in the organization or project limit settings. The organization monthly usage limit (organization_usage_limit_exceeded) cannot be changed by you; you request a raise.

[5] Do not retry. The official docs state that retrying billing, spend or quota errors will not restore access. Fix the credits or limits first, then call again. In code, when a 429 carries one of the four codes above or insufficient_quota, skip backoff and go straight to stop-and-alert. Put responses whose code or type is insufficient_quota, like the body in step 1, in the same stop group; filtering only the four codes lets that format fall into backoff retries.

[6] Call again to confirm. To rule out an authentication problem, see OpenAI API 401 "Incorrect API key provided". An input that is too long for the model is unrelated to quota; that is the maximum context length error.

Check it with the HTTP status codes tool ↗ — calculated in your browser.

#openai-api#429#quota#billing