insufficient_quota 🔌 API

LLM API: You exceeded your current quota, please check your plan and billing details (insufficient_quota / credit balance is too low)

The account has no remaining credits or reached its spending limit, so requests are rejected (often as 429).

Seen on: REST API

Meaning

This isn’t a rate limit — waiting won’t help. Add credits, raise the monthly limit, or switch to a key/project with budget.

Common causes

  • Prepaid credits used up
  • Monthly spend limit reached
  • Key belongs to a project/org without billing
  • New account without payment method

⚡ Quick fix

  1. Check billing/usage in the provider console
  2. Add credits or raise limits
  3. Use the correct project/key

Detailed fix by platform

Shell

  1. bash
    # verify which key/project you're using
    echo ${OPENAI_API_KEY:0:12}...   # or ANTHROPIC_API_KEY

How to diagnose

  1. Billing — Balance/limits
  2. Key — Project/org it belongs to

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.