# What does OpenAI 'You exceeded your current quota' mean?

**Short answer:** It's a billing error, not a rate limit. Your organization or project is out of prepaid credits or hit a spend or usage limit (error type `insufficient_quota`, 429), so retrying won't help. Add credits or raise the limit. If usage spiked unexpectedly, check for a leaked key first.

*Last updated 2026-11-25 · Reviewed by ProofForge*

## The exact error

```text
{"error":{"message":"You exceeded your current quota, please check your plan and billing details.","type":"insufficient_quota","param":null,"code":"insufficient_quota"}}
```

## Why it happens

- Prepaid credit balance is zero (newer responses use code `credit_balance_exhausted`).
- An organization or project spend limit was reached (`organization_spend_limit_exceeded`, `project_spend_limit_exceeded`).
- Someone else is using your key: a key in frontend code or a public repo gets found and drained.

## How to fix it

1. Open the Usage page and look at which key or project consumed the spend.
2. If usage doesn't match your traffic, rotate the key now and see /leaked-keys/openai.
3. Add credits or adjust limits, and keep a hard project spend limit so a leak can't run up an unlimited bill.
4. Read `error.code`, not just the status, so your app shows a billing message instead of retrying.

```ts
try { await openai.responses.create({...}) }
catch (err) {
  if (err.status === 429 && err.code !== 'rate_limit_exceeded') {
    // billing / quota: alert yourself, do not retry in a loop
  }
}
```

## Check it's fixed

After adding credits or raising the limit, one request succeeds. Usage per key matches your own traffic.

> **Scan box (use the site's ScanBox component):** Check whether your live app has this problem. Paste your URL for a free outside-in scan covering exposed keys, open database rules, CORS and security headers. [Scan my app free →](https://proofforge.live/#scan)

## FAQ

### Is this the same as 'Rate limit reached'?
No. Rate limits clear after waiting. Quota and spend errors persist until credits or limits change.

### I have a paid ChatGPT plan. Why no API credits?
ChatGPT subscriptions and API billing are separate.

### How do I know if my key leaked?
Unexplained usage, requests at odd hours, or models you don't use. Run a ProofForge scan to check whether your live app's JavaScript exposes the key.

## Sources

- [OpenAI: Error codes](https://platform.openai.com/docs/guides/error-codes)
- [OpenAI: Best practices for API key safety](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety)

## Related

- [OpenAI key leaked: first 10 minutes](/leaked-keys/openai)
- [Fix: OpenAI key exposed](/fix/openai-key-exposed)
- [Exposed API key checker](/tools/exposed-api-key-checker)
- [OpenAI 'your API key was leaked and disabled': what to do](/errors/openai-key-disabled-leaked)
- [All errors](/errors)
