Agent Provider Depot / Error Rescue Index (28 Traps) / openai-insufficient-quota
rate_limit_429trapId: trap-openai-insufficient-quota · asOf: 2026-10-28
OpenAI 429 insufficient_quota / billing_hard_limit_reached
OpenAI returns HTTP 429 with code insufficient_quota when prepaid credits expire or monthly spend cap is hit; retrying against api.openai.com will fail indefinitely until failover.
1. Immediate Code & SKU Fix
Replace With SKU:
openrouter (openai/gpt-5 or anthropic/claude-sonnet-4-5)Install Command:
npm install openai@latestRequired Env Vars:
OPENROUTER_API_KEYconst client = new OpenAI({ baseURL: "https://openrouter.ai/api/v1", apiKey: process.env.OPENROUTER_API_KEY });2. Verified Hot-Swap Fallback Route
JTBD: llm-router
Primary: openrouter → Fallback: anthropic
liveHealth: operational · autoActOk: true
Compliance blocks Anthropic
Matched Error String Signatures (4)
insufficient_quotabilling_hard_limit_reachedYou exceeded your current quota, please check your plan and billing detailsexceeded your current quotacurl -s "https://getagentdepot.com/api/rescue?q=insufficient_quota"
Browse All 28 Agent Runtime Rescue Cards
deprecated-claude-3-5-sonnetdeprecated-openai-gpt4deprecated-ada-002deprecated-google-generative-aiwrong-package-r2wrong-package-pinecone-clientwrong-package-mailgun-jsrate-limit-429provider-outage-529payment-required-402waf-bot-blocksmtp-port-25-timeoutlambda-15m-timeoutvercel-4-5mb-payloadsqlite-busyneon-cold-startsmithery-connect-shutdowngemini-preview-shutdown-2026-11-17openai-tts-1-shutdown-2027-01-06openai-insufficient-quotacontext-length-exceeded-413streaming-sse-econnresetcloudflare-1015-rate-limitvector-dimension-mismatchmcp-jsonrpc-method-not-foundsandbox-oom-exit-137postgres-too-many-connectionsheadless-browser-executable-missing