Skip to content
← All posts
Guides

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.

GuidesHow to Tell AI API Usage, Credits, Quota and Rate Limits ApartSidrune AI

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 ​

TypeWhat it meansTypical response
Credits or balanceMoney or token balance available to an account or organizationCheck balance, payment status and eligible models
QuotaA usage ceiling for a plan, project or time windowWait for reset, change plan or use an authorized project
Spend limitA billing ceiling for an organization or projectCheck the applicable monthly or hard limit
Rate limitRequests, tokens or concurrency allowed per time unitReduce 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, 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, 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).

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, 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 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.

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. If an account is restricted, read the account restriction and alternatives guide.

Allow Google Analytics to measure article views and product link clicks? You can keep reading if you decline.