Agent Provider Depot / Error Rescue Index (28 Traps) / payment-required-402
pricing_traptrapId: trap-payment-required-402 · asOf: 2026-10-28
HTTP 402 Payment Required / Prepaid Credit Exhaustion
Prepaid credit wallet hit $0.00 or monthly org spend cap tripped without auto-recharge.
1. Immediate Code & SKU Fix
Replace With SKU:
gemini-2.5-flash (free tier) or groq free tierInstall Command:
npm install @google/genaiRequired Env Vars:
GEMINI_API_KEY// Route to Google AI Studio free tier (gemini-2.5-flash) while primary provider wallet is topped up
2. Verified Hot-Swap Fallback Route
JTBD: frontier-chat
liveHealth: operational · autoActOk: true
Need best multimodal media APIs in one vendor (OpenAI/Google), or procurement forces Bedrock/Azure/Vertex.
Matched Error String Signatures (5)
402402 payment requiredinsufficient_quotacredit balance is too lowbilling hard limitcurl -s "https://getagentdepot.com/api/rescue?q=402"
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