Security basics
OpenAI "You exceeded your current quota" when you have not used it
OpenAI "You exceeded your current quota" means no credits are left or a spend limit was reached. Read the code, then check which key spent them.

In short
- OpenAI "You exceeded your current quota" means the organization your key bills has nothing it may spend: its prepaid credits are at zero, or a monthly limit has been reached. It is a 429, like a rate limit, and waiting does not clear it.
- The code field names the cause. credit_balance_exhausted is an empty balance, the two spend_limit_exceeded codes are caps somebody set, and organization_usage_limit_exceeded is a ceiling OpenAI set.
- A ChatGPT Plus subscription puts no credits in your API account, and a new key draws on the same empty balance as the old one.
- If the credits went and you did not spend them, group your usage by API key. A key in the code your app sends to the browser is spent by whoever copies it.
You added an AI feature to the app you built with Lovable, Bolt, Cursor or Claude Code, a chat box or a summary button that calls OpenAI with your own key. This morning it stopped answering. In a log, or in your browser's developer tools, there is this:
{
"error": {
"message": "You exceeded your current quota, please check your plan and billing details.",
"type": "insufficient_quota",
"param": null,
"code": "insufficient_quota"
}
}
OpenAI "You exceeded your current quota" means the account behind your key has nothing left that it is allowed to spend. Its prepaid credits are at zero, or a monthly spend limit has been reached. It arrives as HTTP 429, the same status code as a rate limit, and it stays until somebody changes a balance or a limit.
The quick answers treat it as one problem with one fix, such as "add a card" or "wait and try again". OpenAI now reports four different billing causes under this one status, each with its own fix. And if you are sure you never spent the credits, find out who did before you add more.
What does "You exceeded your current quota" mean?
It means the organization your key belongs to has run out of money it may spend on the API. OpenAI arranges API accounts in organizations: each one holds projects, every key belongs to a project, and the credits are held by the organization.
Think of a prepaid travel card account. The balance sits on the account, and every card linked to it draws on that balance. You can put a cap on one card or on the whole account, and the operator has a ceiling of its own. When the gate refuses you, it does not care that you have not travelled this month. It reads the balance and the caps, and one of them says no.
The code field tells you which one. OpenAI's
error codes guide
lists these under 429:
code in the error | What ran out | What clears it |
|---|---|---|
credit_balance_exhausted | The organization's prepaid credits are at zero | Adding credits in Billing |
project_spend_limit_exceeded | The project reached a monthly hard limit set on it | Raising or removing the limit, or the monthly reset |
organization_spend_limit_exceeded | The whole organization reached its monthly hard limit | Raising or removing the limit, or the monthly reset |
organization_usage_limit_exceeded | The organization reached the monthly limit OpenAI assigned it | Asking OpenAI for a higher approved limit |
insufficient_quota | The older, general form of the same answer | Your Billing and Limits pages show which of the four it is |
The guide also says that for billing errors you should "inspect error.code to
identify the specific cause", because "the broader error.type can still be
insufficient_quota."
The wording of the message has moved over time. The one at the top of this page
is what people have pasted into
OpenAI's own forum
since 2023. A
report from November 2026
shows the same failure as "You have no credits remaining", with the code
credit_balance_exhausted.
Is it a rate limit or a quota error?
Read the message. A rate limit says "Rate limit reached for" and clears after a short wait. A quota error says your quota was exceeded, or that no credits remain, and it clears only when a balance or a limit changes.
Both come back as 429, so code that looks only at the status treats them the
same. A rate limit is the turnstile asking you to wait while a crowd goes
through: it opens again in seconds, and the response may carry a Retry-After
header saying how long. A quota error is the gate reading your balance.
OpenAI's
deployment checklist
says it directly: "Billing, spend, and quota errors require action before
retrying; do not treat every 429 as a temporary rate limit." If your app retries
every 429 it meets, it will go on retrying a request that cannot succeed, and
your visitors will watch a spinner instead of an error they can understand.
Why does it happen when you have not used OpenAI?
Because the check is on the organization's balance and limits, and several things empty or block them without you making a single call yourself.
- You never bought credits. The API runs on prepaid credits, and
credit_balance_exhaustedis OpenAI's code for "no prepaid credits remaining". A new account starts with none. - Your ChatGPT subscription is a separate thing. Since 28 October 2026, OpenAI lets Pro and Business subscribers claim a monthly allowance of API credits, but only by linking an API organization they own, and unused credits expire at the end of the billing cycle. The same page names Plus, Go and Free as plans that are not eligible. A Plus subscription puts nothing in your API balance.
- The credits are in a different organization. If you belong to more than one, say a personal one and one from work, credits bought in one do nothing for a key from the other. OpenAI's production guide says usage "will count against the specified organization's quota".
- A limit somebody set. A hard spend limit on a project or on the whole organization returns this 429 the moment the month's spend reaches it, and stays until the limit is raised or the month resets. It may have been you, months ago, being careful.
- Your app used it. Every request a visitor makes through your AI feature is billed to your key. A busy week, or a page that calls the model each time it loads, spends credits while you are doing something else.
- Someone else used it. That is the one to rule out before you add money.
Did someone else spend your OpenAI credits?
Group your usage by API key and look for spend you cannot match to anything you run. OpenAI added grouping by key to the Usage and Costs dashboards, so each key's spend shows on its own.
Go through the keys one by one and give each a home: the server function your app calls, a script on your laptop, a tool you connected once. Then look at what is left. These are the signs of a key in somebody else's hands:
- spend on days and at hours your app had no visitors
- a model your app never calls
- spend that carried on after you removed the feature
- a key you cannot place at all
In the travel card account, this is the journey history per card. One card shows your commute. The other shows trips across a city you have never been to, and that card is the one you left on a café table.
The key you leave on the table is the one in your app's browser code. You can
check where yours is from the error itself. Press F12, open the Network tab, use
the AI feature, and click the request that failed. If it went to
api.openai.com from your browser, the key went with it, in a header that
anyone who opens the same tab can read. If it went to your own server or a
Supabase Edge Function, the key is on the server, and what a stranger can still
do is call that function as often as they like.
Moving the key to an Edge Function
covers both halves: where the key goes, and checking who is calling.
You can also check from outside. Our free scan opens your app in a real browser,
reads the JavaScript it loads, and reports an OpenAI project key (the kind that
starts sk-proj-) if one is in there. It takes about 20 seconds and needs no
account: scan your app.
If a key is in your browser code, the quota error is the smaller problem. The post on an OpenAI key in your frontend covers why no OpenAI setting can make it safe there, how to rotate it, and where the call should live instead.
How do you fix "You exceeded your current quota"?
Check the key first, then fix the cause the code names. Adding credits to a key a stranger holds pays for the stranger, and Auto Recharge, which OpenAI offers to keep a balance from running out, goes on buying the stranger more.
- If a key is in your app's browser code, rotate it before anything else: create a new key, put it on your server, and delete the old one in the OpenAI dashboard.
- For
credit_balance_exhausted, add credits in your organization's billing settings. Make sure it is the organization your key belongs to. - For
project_spend_limit_exceededororganization_spend_limit_exceeded, raise or remove the limit, or wait for the monthly reset. OpenAI's spend limits guide says traffic resumes once the change propagates. Look at why the limit was reached before you raise it: it may be the thing that capped a stranger's bill. - For
organization_usage_limit_exceeded, ask OpenAI for a higher approved usage limit on the Limits page. This one is OpenAI's ceiling, so raising your own spend limits does nothing for it. - For an app that keeps retrying, make it stop on a quota error and show your users a plain message, so a billing problem does not look like a broken app.
A new key on its own fixes nothing here. It belongs to the same project and the same organization, so it reads the same balance and meets the same limits.
Then set two controls so you hear about the next one early. The spend limits
guide separates them: a spend alert "sends a notification; API traffic
continues", and a hard spend limit makes requests "return a 429 error". An
alert set below a normal month tells you something changed. A hard limit set
above it caps what a leaked key can cost, and when it is reached you will see
this 429 again, this time from a limit you chose.
Keeping the key out of your app's code from now on
Check the code your site sends from outside, and keep checking after each change, because a builder that rewrites your AI feature can put the call back in the browser along with the key.
Reeve Monitor keeps checking from outside:
- the full security check every hour, including whether a paid-API key such as OpenAI's has turned up in your app's code
- whether your app answers, every 60 seconds, and up to 10 more pages you choose
- an alert by email, Telegram, Slack or webhook when the app goes down or a page breaks
- a monthly report on your app, written for you
The free scan shows what a visitor can read today: whether an OpenAI, Anthropic or Stripe secret key is in the code your site sends, along with eight other checks. About 20 seconds, and no account.
Scan your app free in 20 seconds
What to do now
What to do
- Read
error.codeas well as the message. It names which of the billing causes you hit. - Stop retrying it. A quota error clears when a balance or a limit changes, and waiting changes neither.
- Group your usage by API key before you add credits, and match every key to something you run.
- If a key is in your app's browser code, rotate it and move the call to your own server first.
- Then add credits, or raise the limit, in the organization the key belongs to.
- Set a spend alert below a normal month and a hard spend limit above it.
Start with the usage page grouped by key, because it tells you whether this is a billing problem or a key problem. If it is a key problem, the post on an OpenAI key in your frontend has the order to fix it in.
FAQ
Why does OpenAI say I exceeded my quota when I have never used the API?
Because the check is on the balance of the organization your key belongs to, and that balance can be empty without you making a call. The API runs on prepaid credits, so an account that has never bought any has nothing to spend. The same error appears when a monthly spend limit was reached, when the credits were bought in a different organization from the key's, and when someone else has been using the key.
I pay for ChatGPT Plus. Why does the API say I have no quota?
A ChatGPT Plus subscription does not put credits in your API account. Since October 2026, OpenAI lets Pro and Business subscribers claim a monthly allowance of API credits by linking an API organization they own, and it lists Plus, Go and Free as plans that are not eligible. Without that link or a credit purchase, the API balance is zero.
Will creating a new API key fix "You exceeded your current quota"?
Only if the old key was the problem. Credits and spend limits belong to the organization and the project, and a new key in the same project draws on the same empty balance and hits the same limit. Make a new key when the old one has leaked, and rotate it before you add any money.
Should my app retry when it gets this error?
No. OpenAI's deployment checklist says billing, spend and quota errors require action before retrying, and warns against treating every 429 as a temporary rate limit. Retry a 429 whose message says the rate limit was reached. For a quota error, show your users a clear message and fix the balance or the limit.
How do I find out if someone else used my OpenAI key?
Open the Usage page in your OpenAI organization settings and group it by API key. OpenAI added that option to the Usage and Costs dashboards. A key spending on days your app had no visitors, or on a model your app never calls, is being used by somebody else. Then check whether that key is in the code your site sends to the browser.