Quota, Billing & Plan Errors
Insufficient quota, payment required, plan upgrade needed — the fix for each.
16 documented errorsErrors in this category
Your OpenAI usage limit has been reached for the billing period.
You've hit the hard billing limit set on your account.
Your billing account is inactive due to failed payment or account issue.
Payment method needs updating; 402 status code.
You've exceeded rate limits for your usage tier (upgrade required).
Prepaid credit balance depleted; add credits to continue.
Monthly spending cap reached; raise limit in console or wait for reset.
No valid payment method on file.
This request requires a higher usage tier (typical for Opus 5 or specialized features).
Organization access suspended due to billing or compliance issue.
Related pillar guides
G10. How Much Does Building an AI Chatbot Cost 2026
The pillar guide covering LLM API cost breakdowns, optimization techniques that cut bills 60-90%, and unit economics for chatbot businesses.
G1. Handling Rate Limits Across AI APIs
Tier upgrades are a rate-limit and quota problem simultaneously. The rate-limits guide covers proactive quota management.
Related blog posts
Frequently asked questions
Why did I hit my quota mid-month with no warning?
Almost always: a code path shipped that dramatically increased tokens per request (long history without compression, added context retrieval, verbose system prompts). Set up per-workload usage dashboards and alert at 60/80/95% of monthly quota. Providers won't alert you until you're at 100%.
What's the difference between rate limits and quotas?
Rate limits are short-term (requests per minute); quotas are long-term (spend or tokens per month). Both throttle you but at different timescales. Rate limits are self-healing (wait a minute); quotas require billing action (add credits, raise limit, wait for reset).
Can I estimate cost before making a request?
Yes — count input tokens with the provider's tokenizer, plus your max_tokens budget for output. Multiply by pricing (see G10 Chapter 2 for 2026 rates). This is exactly what the load balancer's 'cost' strategy uses to route to the cheapest provider.
What happens when my card is declined?
OpenAI: API continues serving requests until the failed payment cycle completes (usually 3-7 days), then blocks. Anthropic: depends on credit vs. postpaid model — prepaid stops immediately when balance hits zero. Gemini: GCP suspends the project. Update your billing before the cycle completes.
How do I set a hard limit that stops usage automatically?
OpenAI: Set 'Usage limits' in the console dashboard. Anthropic: Set monthly spending limits in console. Gemini: Use GCP budget alerts + Cloud Functions to disable API keys. All three require the manual setup step; none are automatic by default.
Should I use pay-as-you-go or committed spend contracts?
For under $10K/month spend: pay-as-you-go. For $10K-100K/month: pay-as-you-go with negotiated discount. Over $100K/month: committed spend contracts with reserved capacity typically save 15-30%. Contact provider sales at $50K+/month to negotiate.
What's the fastest way to reduce spend without changing product behavior?
Prompt caching (Anthropic and OpenAI) — 90% off cached input tokens. Model routing (route simpler turns to Haiku/Flash) — 40-70% savings. Context compression — 25-50% savings on multi-turn conversations. See G10 Chapter 8 for the full optimization stack.