Skip to content
Billfuse

OpenAI error 429 insufficient_quota: "You exceeded your current quota"

Last updated

If the OpenAI API answers with error 429 and the type insufficient_quota, it isn't a rate limit. Billing stopped the request: your organization ran out of prepaid credits, or it reached a spend limit or a usage limit. Retrying won't help. The error's code tells you which one it is, and each has its own fix.

What this page says about OpenAI was checked against OpenAI's docs and Help Center on November 14, 2026. The two error messages below are from developers' reports, with dates.

Google's Gemini API has sent the same “You exceeded your current quota” sentence, with "status": "RESOURCE_EXHAUSTED" in the response (forum post, November 5, 2026). If yours has that, see our Gemini spending limit guide instead.

The short version

  1. Stop retrying. OpenAI: “Retrying billing, spend, or quota errors won't restore API access.”
  2. Read error.code in the response.
  3. If it says credit_balance_exhausted, add credits on the Billing page of your API organization. For the other codes, see the next section.

A ChatGPT subscription is billed separately from the API. If you pay for ChatGPT and still get this error, see “You pay for ChatGPT” below.

Which error code do you have?

OpenAI's docs list four billing errors. All four come back as 429, and OpenAI says their type can still be insufficient_quota.

The usage limit comes from your usage tier. OpenAI moves an organization up a tier automatically when its total credit purchases reach $5, $100 and $500. The rate limits guide lists the monthly usage limit for each tier.

If the code is insufficient_quota itself, you most likely have the older error. See “You exceeded your current quota” below.

Sources: OpenAI, Error codes, OpenAI, Spend limits, OpenAI, Rate limits, OpenAI Help Center, Troubleshooting API usage and spend limits

“You have no credits remaining”

Error 429, as reported
Error code: 429 - {'error': {'message': 'You have no credits remaining. Add credits to continue using the API at https://platform.openai.com/settings/organization/billing/.', 'type': 'insufficient_quota', 'param': None, 'code': 'credit_balance_exhausted'}}

This is credit_balance_exhausted: your organization's prepaid credits are used up. Add credits, then give the new balance a few minutes to appear. OpenAI's docs give the code but not this message. The text above is from a GitHub issue dated November 12, 2026.

“You exceeded your current quota, please check your plan and billing details”

Error 429, as reported
{'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}

You pay for ChatGPT, and the API says no credits

OpenAI's Help Center: “ChatGPT and the API platform have separate billing systems.” API credits belong to an API organization, separate from your ChatGPT subscription. To start paid API usage, you add a payment method in your API account's billing settings.

One exception: an eligible ChatGPT Pro or Business subscription can claim free API credits by linking it to an API organization you own.

Sources: OpenAI Help Center, Managing billing for ChatGPT and the API platform, OpenAI, API credits for ChatGPT subscribers

If you never added credits

OpenAI's Help Center says new API accounts use prepaid billing: you buy credits first, and your usage comes out of that balance.

  1. Open the billing overview of the API organization you want to fund.
  2. Select Add payment details and enter your payment information.
  3. Choose how much to buy. The minimum is $5, and the default is $10.
  4. Review Use auto-reload before you confirm. It's on by default. Turn it off if you don't want automatic purchases.
  5. Confirm the purchase.

Source: OpenAI Help Center, Setting up and managing prepaid API billing

You added credits and it still fails

Sources: OpenAI Help Center, Setting up and managing prepaid API billing, Troubleshooting API usage and spend limits, Managing billing for ChatGPT and the API platform

Stop your code from retrying it

OpenAI's official Python and Node SDKs retry 429 errors 2 times by default. In our test, one call that hit any of these errors sent 3 requests before your code saw the error. Check for a billing stop before your own code retries:

Python
from openai import RateLimitError

# The four billing errors in OpenAI's error codes guide
BILLING_CODES = {
    "credit_balance_exhausted",
    "project_spend_limit_exceeded",
    "organization_spend_limit_exceeded",
    "organization_usage_limit_exceeded",
}


def billing_stop(error: Exception) -> bool:
    """A 429 that more requests won't fix: credits or a limit must change."""
    return isinstance(error, RateLimitError) and (
        error.code in BILLING_CODES or error.type == "insufficient_quota"
    )
TypeScript
import OpenAI from "openai";

// The four billing errors in OpenAI's error codes guide
const BILLING_CODES = new Set([
  "credit_balance_exhausted",
  "project_spend_limit_exceeded",
  "organization_spend_limit_exceeded",
  "organization_usage_limit_exceeded",
]);

// A 429 that more requests won't fix: credits or a limit must change.
function billingStop(error: unknown): boolean {
  return (
    error instanceof OpenAI.RateLimitError &&
    (BILLING_CODES.has(error.code ?? "") || error.type === "insufficient_quota")
  );
}

When the check says yes, stop the job and tell someone who can add credits or change the limit. To stop the SDK's own retries too, create the client with max_retries=0 in Python or maxRetries: 0 in TypeScript, and retry ordinary rate limits in your own code. Our OpenAI spending limit guide has a check for that.

We ran the check with the Python SDK (openai 3.50.0) and the TypeScript SDK (openai 7.56.0), against a local test server. It returned the two reported errors above, made-up errors with the other three codes, and an ordinary rate limit, with no retry headers. The log in the August GitHub issue shows the same 3 requests from api.openai.com for the older error.

Sources: OpenAI, Error codes, openai-python, Retries, openai-node, Retries

Where Billfuse fits

Billfuse is the tool we built to watch AI API spend. It can't add credits or raise OpenAI's usage limit, and it can't warn you before your credits run out: it reads what you spent, not your OpenAI credit balance.

One case is Billfuse's own doing. If you clicked Pause now in Billfuse, or turned on automatic pausing and your budget reached 100%, Billfuse set each active OpenAI project's spend limit to $0.01. Then the limit is the cause, not your credits. Resume in Billfuse puts back each project's earlier limit, unless you changed it while it was paused.

What Billfuse does: one monthly budget across OpenAI, Anthropic, Gemini and OpenRouter, with emails at 50%, 80% and 100% of it. It also alerts you when one provider's day reaches 3 times a normal day, and at least $10 more. It checks every hour. Against this error, use OpenAI's own tools: check the balance on the Billing page, and if you turn on auto-reload, give it a monthly limit. To cap what a project can spend, see our OpenAI spending limit guide.

More guides

It's free while Billfuse is in early access. You can try it with sample data first, no sign-up needed.