LLM API Rate Limits: How to Check Quotas and Govern Throttling
This guide explains why API calls can fail even when your account still has balance, and how to diagnose and manage rate limiting for large language model APIs. It covers the three common limit types (RPM, TPM, and RPD), how to verify a project's actual quotas in the console, how usage tiers relate to limits, how to estimate the capacity your workload needs, and practical governance techniques such as dual-dimension throttling, shared quota coordination, bounded queues, exponential backoff with jitter, token reduction, observability, and a recommended troubleshooting order.
1. Why Do Calls Fail Even When the Account Still Has Balance?
When working with large language model APIs, developers often run into a familiar pattern: the account still has balance, yet calls are suddenly rejected; a single tester works fine, but the service starts throttling heavily once it goes into production; the request count is low, but submitting a long text still triggers a limit.
These situations show that API access is not determined by account balance alone. The server usually also caps the number of requests within a given time window, the volume of tokens processed, and the cumulative number of calls over a longer period. As soon as any one of these dimensions hits its ceiling, requests may stop—even if the other dimensions still have room.
So the first step in handling throttling is not to top up the balance or retry repeatedly, but to answer three questions:
- Which project, model, and credentials are the current calls using?
- Which specific limit is actually being triggered?
- What are the statistics window, sharing scope, and recovery conditions for that limit?
Investigating around these three questions is what keeps you from confusing permission errors, insufficient balance, service overload, and quota exhaustion.
2. Understanding the Three Common Limit Types: RPM, TPM, and RPD
2.1 RPM: Requests Per Minute
RPM is the number of requests allowed per minute, and it mainly constrains request frequency.
For example, suppose a project’s allowance is 60 requests per minute. That does not necessarily mean you can send all 60 in the first second and then wait a minute. The server may use a fixed window, a sliding window, or a token bucket, and it may impose additional constraints on short bursts.
So “one request per second on average” is only a rough reference for capacity planning; it cannot replace confirming the actual window rules. For high volumes of short-text calls, the token cost per call is small, so RPM is often the first bottleneck.
2.2 TPM: Tokens Per Minute
TPM is the number of tokens allowed to be processed per minute, and it mainly constrains the scale of text or other input after conversion.
Note in particular that different services may count TPM differently: some mainly limit input tokens, some limit input and output separately, and some estimate resource usage in advance based on the output budget in the request. Do not assume every service calculates it as “actual input plus actual output.”
Tokens are also not equal to characters or word counts. Chinese, English, numbers, code, and special symbols all consume tokens differently. Long documents, lengthy conversation history, and retrieved supplementary material can all significantly increase the token count of a single call.
So a low request count does not guarantee you will avoid throttling. A few very long requests can consume the TPM allowance just as quickly.
2.3 RPD: Requests Per Day
RPD is the number of requests allowed per day, and it mainly limits the cumulative call volume within a single day.
When RPD is exhausted, waiting a short while usually will not help; you have to wait for the next statistics period to reset, or apply for a higher allowance under the service’s rules. The daily quota may reset on a natural day in a specified time zone, or by some other counting method, so always defer to the actual documentation.
Also, whether failed requests and retries count toward the allowance needs to be confirmed separately. Do not treat every failed call as “no quota consumed.”
2.4 All Three Limits Apply at Once
These three constraints are not alternatives; together they determine the available throughput:
- A large volume of short requests tends to hit RPM first;
- A small number of long requests tends to hit TPM first;
- Running continuously all day may eventually exhaust RPD.
A real service may also set limits on concurrent requests, single-request context length, batch job size, and more. So every constraint shown on the limits page should be checked item by item, not just the three common acronyms.
3. How to Check a Project’s Actual Limits
3.1 First Confirm the Caller Identity and Resource Ownership
Before checking quotas, verify the project identifier, credential ownership, and target model in the environment where the application runs.
A common mistake is that a developer checks the allowance of a test project in the console while production uses credentials from a different project; or the console has one model selected while the business actually calls another. In such cases, even a page showing ample allowance cannot explain the real throttling.
It helps to record the environment-to-resource relationship as a configuration inventory:
- Environment: development, test, or production;
- Project: the resource ownership that actually bears the calls and billing;
- Credentials: the corresponding calling identity;
- Model: the model the application actually requests;
- Region or API type: record these too if the service differentiates quotas by them.
3.2 Find the Quota and Usage Entry in the Console
In general, you can look along these lines:
Admin console → target project → model or API service → quota, limits, or usage page.
This is only a general path and does not mean a given service uses the same menu names. Some platforms show limits and usage on different pages, and you may need to check usage levels through project management or billing pages.
Focus on verifying the following:
| Item to check | Question to confirm |
|---|---|
| Usage tier | Which tier the current project is in, and whether it is active |
| Model limits | The RPM, TPM, and RPD for the current model |
| Statistics scope | Whether shared by project, account, model, or credential |
| Current usage | Used amount, remaining amount, and recent peak |
| Recovery rules | When the minute window and daily quota reset |
| Adjustment method | Whether an increase can be requested and whether review is required |
3.3 Cross-Check Error Messages Against Console Data
When the API returns HTTP 429, it usually means the request was limited in terms of frequency or quota, but the status code alone cannot pinpoint the cause. Look further at the error body, response headers, and request identifier.
If the response provides a Retry-After, use it as a reference for the next retry time; if not, apply a bounded backoff strategy based on the error type. Logs should retain the request time, target model, error category, and request identifier to make correlation easier.
Console charts may have refresh delays, so do not judge whether throttling is abnormal based on the “remaining allowance” at a single moment.
4. How Do Usage Tiers Relate to Limits?
Some services use a tiered allowance mechanism—for example, an initial tier, a tier after billing is enabled, and a higher tier after meeting certain usage or payment conditions. The goal is usually to gradually open up access while controlling resource risk.
But do not treat one service’s tier rules as an industry-wide standard. Any of the following may change:
- Whether a free tier exists;
- The model limits for each tier;
- Whether upgrades happen automatically;
- Whether cumulative payment, waiting time, or manual review is required;
- Whether higher tiers still keep a daily limit.
So it is unwise to hard-code a fixed amount, a fixed number of days, or a specific set of quota numbers into application logic. A more reliable approach is to treat limits as updatable configuration, verify the actual effective values after an upgrade, and then gradually adjust the client’s request rate.
Distinguish “budget” from “limits”: raising the budget does not necessarily raise the call frequency, and raising the call limit does not mean the business can consume cost without limit.
5. How to Estimate How Much Quota Your Business Needs
Capacity planning should be derived from the business load, not from whether the console allowance simply looks large enough.
Suppose, in a purely illustrative scenario, a project allows 120 requests per minute and 240,000 tokens per minute; and, per the TPM counting method confirmed for that service, each request consumes 3,000 tokens on average.
Then:
- The average rate supported by RPM is about 120 ÷ 60, i.e., 2 requests per second;
- The average rate supported by TPM is about 240,000 ÷ 3,000 ÷ 60, i.e., 1.33 requests per second.
In this example, token throughput becomes the bottleneck first, so you cannot configure 2 requests per second based on RPM alone. These numbers only demonstrate the calculation method and are not the actual allowance of any service.
The general estimation formula is:
Sustainable request rate ≈ min (RPM ÷ 60, TPM ÷ average metered tokens per request ÷ 60)
If the business runs all day, you also need to check whether the expected daily request volume exceeds RPD.
Real planning cannot rely on averages alone. Long-text requests create spikes, so you should also track the high percentiles of per-request token counts, the per-minute peak, the retry ratio, and the business growth trend. The client’s target rate should also keep some headroom to avoid running right against the ceiling.
6. Rate Limit Governance for Stable Calls
6.1 Dual-Dimension Control Before Sending a Request
The client should control both request count and token budget. A task should enter the execution stage only when both the request allowance and the token allowance permit it.
A schematic logic could be:
Receive taskEstimate the metered tokens for this requestIf remaining daily allowance is insufficient:Defer the task per business policy or reject itElse if request budget or token budget is insufficient:Enter a bounded wait queueElse:Reserve budgetMake the callCalibrate local records against the server's actual usage
Local estimation only assists scheduling; the server’s statistics remain the final authority. For inputs where token counting is uncertain, reserve a reasonable margin to avoid underestimating and causing continuous throttling.
6.2 Multiple Instances Must Coordinate Shared Quota
If the allowance is shared per project, adding service instances or creating multiple credentials usually does not automatically increase the project’s total allowance.
For example, if multiple instances each send requests up to the project ceiling, the combined traffic may far exceed what the server allows. Use a unified scheduler, shared counter state, or clearly divided per-instance budgets, and account for budget reclamation after scaling and abnormal exits.
The key principle: the scope of the client’s throttling statistics should match the scope of the server’s quota as closely as possible.
6.3 Use a Bounded Queue to Absorb Short-Term Peaks
A queue can smooth instantaneous traffic, but it cannot solve a long-term capacity shortfall. If tasks keep arriving faster than they are processed, the queue will only grow.
So a queue needs at least:
- A maximum length, to prevent unbounded backlog;
- A maximum wait time, to avoid executing tasks that have lost their value;
- Priorities, to separate online interactions from background tasks;
- An overload strategy, rejecting low-priority requests when necessary.
Online requests should prioritize response latency; tasks that can be delayed are better suited to batched scheduling.
6.4 Use Exponential Backoff with Jitter for Temporary Throttling
Retrying immediately tends to worsen congestion. A more reasonable approach is to lengthen the wait each time and add random jitter, so that multiple clients do not all fire again at the same moment.
A general schematic approach:
Wait time = random(0, min(max wait time, initial wait time × 2^retry count))
You must also set a maximum retry count and a total timeout budget. If the daily allowance is confirmed exhausted, stop short-cycle retries.
For unrecoverable problems such as permission errors or parameter errors, do not use the same retry strategy. If a request’s result is uncertain and a later step will trigger a write or other business action, add business-level deduplication to prevent duplicate execution.
6.5 Reduce Unnecessary Token Consumption
The focus of optimizing TPM usage is not mechanically truncating text, but increasing the information density of the input:
- Remove repeated prompt content;
- Summarize long-running conversations as needed;
- Pass in only material relevant to the current question;
- Set reasonable expectations for output length;
- Cache stable, repeated results where reuse is allowed.
These measures need to be validated through effectiveness evaluation. Over-compressing context may reduce answer quality, and caching must account for freshness, permission boundaries, and sensitive-data protection.
7. Build Observability to Spot Bottlenecks Early
Recording only “success” or “failure” is not enough to support quota governance. Monitor at least the following metrics:
- Requests and token consumption per minute;
- Cumulative daily requests and remaining allowance;
- Throttling error rate and error types;
- Retry count and retry success rate;
- Queue length and wait time;
- Median and high-percentile request latency;
- Quota usage by business module.
These metrics should be grouped by project, model, and business entry point wherever possible. Otherwise, when a background task concentrates quota consumption, it may slow down the entire online business while being hard to trace to its source.
Alerts should be set according to business tolerance, not triggered only after the allowance is fully exhausted. Watch trends such as continuously approaching the ceiling, abnormal daily-allowance consumption speed, and a steadily growing queue.
Logs should also follow the principle of least necessity, avoiding recording full credentials, sensitive inputs, or unnecessary personal information.
8. Recommended Troubleshooting Order for Throttling
When calls are restricted, handle them in this order:
- Verify the actual project, credentials, model, and runtime environment;
- Check the error body and response headers to confirm the limit type;
- Inspect RPM, TPM, RPD, and other relevant constraints;
- Look for combined traffic from multiple instances, batch jobs, and automatic retries;
- Enable backoff for temporary throttling, and stop futile retries when a periodic quota is exhausted;
- Adjust the queue, request pacing, and context size;
- If a steady business demand still exceeds the allowance, then evaluate applying for an increase.
Managing large-model API limits is essentially a matter of capacity planning and traffic governance. Checking the allowance is only the starting point; a truly stable application also needs to connect the quota counting method, business peaks, sharing scope, and failure-recovery strategy. Only when request rate, token consumption, and daily call volume are all kept within a controllable range can you establish a reliable operating boundary between cost and performance.
