OpenAI error 429 insufficient_quota: "You exceeded your current quota"
Last updated
If the OpenAI API answers with error 429 and the type insufficient_quota, it isn't a rate limit. Billing stopped the request: your organization ran out of prepaid credits, or it reached a spend limit or a usage limit. Retrying won't help. The error's code tells you which one it is, and each has its own fix.
What this page says about OpenAI was checked against OpenAI's docs and Help Center on November 14, 2026. The two error messages below are from developers' reports, with dates.
Google's Gemini API has sent the same “You exceeded your current quota” sentence, with "status": "RESOURCE_EXHAUSTED" in the response (forum post, November 5, 2026). If yours has that, see our Gemini spending limit guide instead.
The short version
- Stop retrying. OpenAI: “Retrying billing, spend, or quota errors won't restore API access.”
- Read
error.codein the response. - If it says
credit_balance_exhausted, add credits on the Billing page of your API organization. For the other codes, see the next section.
A ChatGPT subscription is billed separately from the API. If you pay for ChatGPT and still get this error, see “You pay for ChatGPT” below.
Which error code do you have?
OpenAI's docs list four billing errors. All four come back as 429, and OpenAI says their type can still be insufficient_quota.
credit_balance_exhausted: your organization has no prepaid credits left. Add credits in your billing settings.project_spend_limit_exceeded: the project reached the hard spend limit set on it. Raise or remove the limit in the project's settings, or wait for the monthly reset. Other projects can continue unless their own limit or the organization limit is also reached.organization_spend_limit_exceeded: the organization reached its hard spend limit, which covers every project. Raise or remove it under Organization limits, or wait for the monthly reset.organization_usage_limit_exceeded: the organization reached the monthly usage limit OpenAI assigned to it. It's separate from any limit you set. Request a higher approved usage limit on the Limits page, or contact OpenAI Support.
The usage limit comes from your usage tier. OpenAI moves an organization up a tier automatically when its total credit purchases reach $5, $100 and $500. The rate limits guide lists the monthly usage limit for each tier.
If the code is insufficient_quota itself, you most likely have the older error. See “You exceeded your current quota” below.
Sources: OpenAI, Error codes, OpenAI, Spend limits, OpenAI, Rate limits, OpenAI Help Center, Troubleshooting API usage and spend limits
“You have no credits remaining”
Error code: 429 - {'error': {'message': 'You have no credits remaining. Add credits to continue using the API at https://platform.openai.com/settings/organization/billing/.', 'type': 'insufficient_quota', 'param': None, 'code': 'credit_balance_exhausted'}}This is credit_balance_exhausted: your organization's prepaid credits are used up. Add credits, then give the new balance a few minutes to appear. OpenAI's docs give the code but not this message. The text above is from a GitHub issue dated November 12, 2026.
“You exceeded your current quota, please check your plan and billing details”
{'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}- The code doesn't say which limit. It's
insufficient_quota, not one of the four codes above. Check your credit balance, your organization and project spend limits, and your usage limit. - OpenAI's docs no longer show it. An archived copy of the error codes page from July 23, 2026 lists it as a 429 for an organization that used up its prepaid credits or reached a usage or spend limit. The text above is from a log in a GitHub issue opened on August 21, 2026. We don't know whether the API still sends it.
You pay for ChatGPT, and the API says no credits
OpenAI's Help Center: “ChatGPT and the API platform have separate billing systems.” API credits belong to an API organization, separate from your ChatGPT subscription. To start paid API usage, you add a payment method in your API account's billing settings.
One exception: an eligible ChatGPT Pro or Business subscription can claim free API credits by linking it to an API organization you own.
- How much: $100, $200 or $500 a month on the Pro tiers. On Business, $20 per paid Standard seat and $100 per paid Premium seat, up to $500 a month per workspace.
- Which plans: only Pro and Business. OpenAI calls Plus, Go and Free ineligible plans.
- Who can claim: the subscription must be paid and at least seven days old. Free trials and complimentary subscriptions don't qualify. You must own both the subscription and the API organization, and use the same email address for both accounts.
- How long: unused credits expire at the end of your billing cycle.
- Where: the credits apply only to the linked API organization. OpenAI says to select that organization and use one of its project API keys.
- When they run out: if you haven't bought credits too, requests fail with 429
credit_balance_exhausted.
Sources: OpenAI Help Center, Managing billing for ChatGPT and the API platform, OpenAI, API credits for ChatGPT subscribers
If you never added credits
OpenAI's Help Center says new API accounts use prepaid billing: you buy credits first, and your usage comes out of that balance.
- Open the billing overview of the API organization you want to fund.
- Select Add payment details and enter your payment information.
- Choose how much to buy. The minimum is $5, and the default is $10.
- Review Use auto-reload before you confirm. It's on by default. Turn it off if you don't want automatic purchases.
- Confirm the purchase.
- Auto-reload buys credits when your balance falls below a threshold you set. You can give it a monthly reload limit. That limit only caps automatic purchases. It isn't a limit on your API usage.
- Credits expire. OpenAI says purchased credits expire after one year, and after 180 days for credits bought in Japan after November 13, 2026.
- Credits are non-refundable, with exceptions OpenAI lists on its prepaid billing page.
Source: OpenAI Help Center, Setting up and managing prepaid API billing
You added credits and it still fails
- Wait a few minutes. OpenAI: “After a successful purchase, it may take a few minutes for your balance to update.”
- Check which organization you funded. Credits belong to one API organization. If you have more than one, make sure the key your app uses comes from a project in the organization you funded. OpenAI says to open the billing overview of that organization if the balance still looks wrong.
- A negative balance comes off first. OpenAI says API access may not stop the moment credits run out. Usage after that can show as a negative balance, and OpenAI deducts it from your next purchase.
- Credits don't lift the other limits. OpenAI: “A positive credit balance does not mean a request is below every API limit.” Read
error.codeagain: a spend limit or your usage limit can stop requests while credits remain. - If the purchase still doesn't match, OpenAI asks you to contact Support with the organization and the purchase reference before buying again. Have the error message and code, the time of the error with your time zone, and any request IDs ready.
Sources: OpenAI Help Center, Setting up and managing prepaid API billing, Troubleshooting API usage and spend limits, Managing billing for ChatGPT and the API platform
Stop your code from retrying it
OpenAI's official Python and Node SDKs retry 429 errors 2 times by default. In our test, one call that hit any of these errors sent 3 requests before your code saw the error. Check for a billing stop before your own code retries:
from openai import RateLimitError
# The four billing errors in OpenAI's error codes guide
BILLING_CODES = {
"credit_balance_exhausted",
"project_spend_limit_exceeded",
"organization_spend_limit_exceeded",
"organization_usage_limit_exceeded",
}
def billing_stop(error: Exception) -> bool:
"""A 429 that more requests won't fix: credits or a limit must change."""
return isinstance(error, RateLimitError) and (
error.code in BILLING_CODES or error.type == "insufficient_quota"
)import OpenAI from "openai";
// The four billing errors in OpenAI's error codes guide
const BILLING_CODES = new Set([
"credit_balance_exhausted",
"project_spend_limit_exceeded",
"organization_spend_limit_exceeded",
"organization_usage_limit_exceeded",
]);
// A 429 that more requests won't fix: credits or a limit must change.
function billingStop(error: unknown): boolean {
return (
error instanceof OpenAI.RateLimitError &&
(BILLING_CODES.has(error.code ?? "") || error.type === "insufficient_quota")
);
}When the check says yes, stop the job and tell someone who can add credits or change the limit. To stop the SDK's own retries too, create the client with max_retries=0 in Python or maxRetries: 0 in TypeScript, and retry ordinary rate limits in your own code. Our OpenAI spending limit guide has a check for that.
We ran the check with the Python SDK (openai 3.50.0) and the TypeScript SDK (openai 7.56.0), against a local test server. It returned the two reported errors above, made-up errors with the other three codes, and an ordinary rate limit, with no retry headers. The log in the August GitHub issue shows the same 3 requests from api.openai.com for the older error.
Sources: OpenAI, Error codes, openai-python, Retries, openai-node, Retries
Where Billfuse fits
Billfuse is the tool we built to watch AI API spend. It can't add credits or raise OpenAI's usage limit, and it can't warn you before your credits run out: it reads what you spent, not your OpenAI credit balance.
One case is Billfuse's own doing. If you clicked Pause now in Billfuse, or turned on automatic pausing and your budget reached 100%, Billfuse set each active OpenAI project's spend limit to $0.01. Then the limit is the cause, not your credits. Resume in Billfuse puts back each project's earlier limit, unless you changed it while it was paused.
What Billfuse does: one monthly budget across OpenAI, Anthropic, Gemini and OpenRouter, with emails at 50%, 80% and 100% of it. It also alerts you when one provider's day reaches 3 times a normal day, and at least $10 more. It checks every hour. Against this error, use OpenAI's own tools: check the balance on the Billing page, and if you turn on auto-reload, give it a monthly limit. To cap what a project can spend, see our OpenAI spending limit guide.
More guides
- How to put a hard spending cap on OpenAI, Anthropic, Gemini and OpenRouter
- How to set a hard spending limit on the OpenAI API
- How to set a spending limit on the Anthropic API
- How to set a spending limit on the Gemini API
- How to set a spending limit on the OpenRouter API
- Billing error or rate limit? AI API errors from OpenAI, Anthropic, Gemini and OpenRouter
- Leaked AI API key: what to do first
- Fix "Your credit balance is too low to access the Anthropic API"
- Gemini API error 402: "Your prepayment credits are depleted"
- OpenRouter 402: "This request requires more credits, or fewer max_tokens"
It's free while Billfuse is in early access. You can try it with sample data first, no sign-up needed.