← Back to Blog

Fix: "You exceeded your current quota, please check your plan and billing details" — OpenAI 429 insufficient_quota

2026-09-09·4 min read·CodeRouter Team
you exceeded your current quotaopenai insufficient_quotaopenai 429 errorexceeded quota check plan and billing detailsopenai api quota error fixchatgpt plus api quota error

TL;DR — insufficient_quota is a billing error wearing a 429 costume. It does not mean you sent requests too fast; it means your API account has no usable credit: no payment method / prepaid credits on the API account, a hard usage limit already hit, or an expired free grant. The fix is in the billing dashboard, not in your code — add credits or raise the limit, then wait a few minutes for it to propagate. Retrying with backoff will never fix this one.

The error

HTTP 429
{
  "error": {
    "message": "You exceeded your current quota, please check your plan and billing details. ...",
    "type": "insufficient_quota",
    "code": "insufficient_quota"
  }
}

The status code is 429, which every retry library on earth interprets as "slow down and try again." That is exactly the wrong model here — and it is why agents wrapped in exponential backoff can burn half an hour retrying an error that cannot succeed.

Rate limit vs. quota: the distinction that matters

OpenAI uses 429 for two completely different conditions, distinguished by the error type:

| Error type | What it means | Does retrying help? | |------------|---------------|---------------------| | rate_limit_error (Rate limit reached...) | Too many requests/tokens per minute for your tier | Yes — back off and retry | | insufficient_quota (You exceeded your current quota...) | Your account has no billing headroom at all | No — fix billing first |

If your error text mentions "plan and billing details," stop retrying.

Why it hits people who are "already paying"

The most common confusion: a ChatGPT Plus/Pro subscription is not API credit. The consumer subscription and the API platform are separate billing systems. A brand-new API key on an account that has never added a payment method or prepaid credits gets insufficient_quota on its very first request.

Other realistic causes:

The fix

  1. Open the OpenAI platform billing page (platform.openai.com → Settings → Billing) for the org/project the failing key belongs to.
  2. Add a payment method or purchase prepaid credits; if a usage limit is set, confirm it is above current usage.
  3. Wait a few minutes — quota changes are not always instant.
  4. Retest with a minimal request before unleashing your agent again:
curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.2","messages":[{"role":"user","content":"ping"}],"max_tokens":5}'

In coding agents

In Codex CLI, Cursor with a personal key, or any OpenAI-compatible tool, this error usually surfaces mid-session as a wall of failed retries. Two agent-specific notes:

Prevention

Part of the LLM API Error Reference — errors indexed by their exact strings.

Ready to Reduce Your AI API Costs?

CodeRouter routes every API call to the optimal model — automatically. Start saving today.

Get Started Free →

Get weekly AI cost optimization tips

Join 2,000+ developers saving on LLM costs