# How to Tell AI API Usage, Credits, Quota and Rate Limits Apart

An AI API failure is not always an invalid key. Use this cross-model checklist to separate balance, credits, quota, spend limits and rate limits.

Source: https://sidrune.ai/blog/ai-api-usage-credits-rate-limits

> **TL;DR:** When an API says that usage is exhausted, balance is insufficient or HTTP 429 appears, do not replace the key first. Identify **which product, project or organization, allowance and time window** is restricted. Credits, quota, spend limits and rate limits are different problems with different fixes.

## Separate the four common limits

| Type | What it means | Typical response |
| --- | --- | --- |
| Credits or balance | Money or token balance available to an account or organization | Check balance, payment status and eligible models |
| Quota | A usage ceiling for a plan, project or time window | Wait for reset, change plan or use an authorized project |
| Spend limit | A billing ceiling for an organization or project | Check the applicable monthly or hard limit |
| Rate limit | Requests, tokens or concurrency allowed per time unit | Reduce concurrency, use backoff or request a higher limit |

A successful top-up may increase credits or balance, but it does **not** necessarily change a rate limit, model permission or subscription allowance. OpenAI documents prepaid credits, spend limits and rate limits separately ([prepaid billing](https://help.openai.com/en/articles/8264644-setting-up-and-managing-prepaid-api-billing), [rate limits](https://developers.openai.com/api/docs/guides/rate-limits)).

## A four-step diagnosis

### 1. Confirm which product handled the request

A brand may offer a chat subscription, official API, coding tool and third-party service. Chat usage is not automatically the same as an API organization’s credits. Record the provider, base URL, project or organization and model ID. If a gateway is involved, separate its balance from the upstream account.

### 2. Read the complete error

- **401:** key, authentication headers and active environment variables.
- **402:** balance, payment or credits, confirmed by the response body.
- **403:** account, project, region or model permission.
- **404:** endpoint path or model ID before assuming a quota problem.
- **429:** rate limit, quota, spend limit or concurrency restriction.

DeepSeek also documents insufficient balance, 402 and other request restrictions separately ([error codes](https://api-docs.deepseek.com/quick_start/error_codes/), [pricing](https://api-docs.deepseek.com/quick_start/pricing/)). Do not recharge every time you see 429, and do not retry 402 continuously.

### 3. Check the subject and time window

Record the time zone, project or organization, model ID, request volume, tokens, payment status and reset information. A limit can apply at account, project, key, model or IP level. Gemini likewise separates project, billing and usage tiers, so an app subscription is not automatically API quota ([Gemini API pricing](https://ai.google.dev/gemini-api/docs/pricing)).

### 4. Validate with one small request

Use the same key and model for a short text request. Leave out images, tools, streaming and long context. Record the response, model, request ID and usage, then add features one at a time. Never put a real API key in source code or a support message.

## What to check after a top-up

Confirm that payment completed in the same account, organization or project used by the request. Check that the purchased product is the current API, that the model remains available to the key group, and that spend, quota or concurrency limits are not still active. Qwen also separates pricing, token calculation and rate limits across sites and plans ([pricing](https://docs.qwencloud.com/developer-guides/getting-started/pricing), [rate limits](https://docs.qwencloud.com/developer-guides/administration/rate-limits)).

## When should you use an API gateway?

An API gateway cannot unban an original subscription account or restore its Projects, memory or subscription rights. It is a separate workflow for managing multiple models, usage and routing through one API entry point. Check protocol, model ID, context and tools, balance ownership, usage records and failure responsibility before moving traffic.

Use the [Sidrune user guide](https://docs.global.sidrune.ai/user-guide/help-center) to check API formats, model groups and usage records. Start with one small request, then expand the workflow. If you need a global account, start with [Sidrune Global](https://global.sidrune.ai/register?aff=7T2JFVEH79XA).

## FAQ

### Is a top-up the same as a subscription upgrade?

No. A top-up usually adds spendable balance to an API or service account; a subscription upgrade may change chat or coding-plan allowances.

### How long should I wait after a 429?

Read the reset or retry-after information. Waiting does not fix a spend limit, quota or balance problem, and repeated retries can make rate limiting worse.

### Will changing models fix the error?

Only when the restriction is specific to that model or model group. Preserve the original error and configuration before making one small change.

If the first request has never worked, read [Base URL, API format and model ID troubleshooting](https://sidrune.ai/blog/api-key-connection-troubleshooting). If an account is restricted, read [the account restriction and alternatives guide](https://sidrune.ai/blog/ai-account-restricted-alternatives).
