RPM vs TPM: AI API Rate Limits Explained, Plus a 4-Step Estimate
RPM is requests per minute, and TPM is tokens per minute. These two numbers are the traffic caps an AI API provider sets on your account. Whichever one hits its ceiling first, further requests are rejected, usually with a 429. For a beginner, the practical value of knowing what RPM and TPM mean is this: when you see a rate-limit error, you know whether to send fewer requests or to shrink what each request contains.
What are RPM, TPM, and RPD?
| Abbreviation | Full name | What it limits |
|---|---|---|
| RPM | Requests Per Minute | How many requests you send in one minute |
| TPM | Tokens Per Minute | How many tokens are processed in one minute (input plus output; check each provider's docs for exactly how it is counted) |
| RPD | Requests Per Day | Total requests in one day; only some providers or tiers have it |
Some providers split TPM into separate input and output limits, and the names vary, for example ITPM and OTPM. Follow the official documentation rather than assuming.
These limits apply at the same time. Here is a hypothetical example: an account has an RPM of 60 and a TPM of 100,000. You send 30 requests in a minute, each carrying 5,000 tokens. You are under the request limit, but the total is 150,000 tokens, so TPM hits its cap first and you are throttled anyway. Conversely, if each request is only a few dozen tokens but you fire several per second, RPM is exceeded first. (The numbers are illustrative only and do not reflect any provider's real quotas.)
If the concept of a token is still fuzzy, read What is a token in an LLM, and why are you billed per token first.
Is a rate limit the same as account balance or plan quota?
No. A rate limit controls how fast you can use the service in a given window. A balance or plan quota controls how much you can use in total. You can be throttled with plenty of balance left, and running out of balance is a different class of error.
OpenAI's 429 is the classic case: the same status code can mean you hit a rate limit or that you are out of quota, and the fixes are completely different. For how to tell them apart, see OpenAI 429 errors: telling insufficient_quota from rate_limit_exceeded and how to handle each.
Also note that web subscriptions (such as a chat app's paid membership) and API limits are two separate systems that do not share anything.
Where do I find my rate limit tier?
Most providers set limits by account "tier." The tier usually depends on factors such as cumulative spend and account age: the more you use the service and the cleaner your record, the higher your limits may go. Exact thresholds and numbers change, so rely on the official docs and your own console.
Look in this order:
- Sign in to the provider's developer console and find the page related to Limits, Rate limits, or "usage and limits" (menu names differ by provider; go by what you actually see).
- The page generally lists RPM and TPM per model, and sometimes RPD as well.
- Search the official docs for "rate limits" and compare against the description for your tier.
- Send a real request and inspect the response headers. Many providers return remaining quota or reset time in headers; field names are defined in the official docs.
How do I estimate the RPM and TPM I need?
You do not need precision, just the right order of magnitude. Follow these four steps:
- Estimate tokens per request. Input includes the system prompt, conversation history, and any file content you paste in. Output depends on your max tokens setting and the actual answer length. Take a few typical requests, look at the usage field in the response, and note the average and the larger values.
- Estimate how many requests run at once. When one person is coding, that is typically one request every few seconds to a few tens of seconds. For batch scripts or several agents running in parallel, calculate by concurrency.
- Convert to per-minute figures. RPM is roughly the number of requests per minute; TPM is roughly RPM times the average tokens per request.
- Leave headroom. Real usage fluctuates, so keep your estimate at around half of the limit or less, and factor in peak periods.
A hypothetical example: a script averages 3,000 tokens per request, runs 4 parallel workers, and each worker completes one request about every 20 seconds. That is roughly 12 requests per minute and a TPM of about 36,000. Compare those two numbers with your limits to see whether they fit.
Pay extra attention with long conversations and agent-style tools: every turn resends the earlier history, so tokens per request keep growing, and TPM often becomes a problem before RPM does.
What should I do when I get throttled?
First check the error message and response headers to confirm it is a rate limit, then act:
- Read the retry hint. A 429 response often says how long to wait (for example a Retry-After header; check the docs for specifics). Wait that long.
- Retry with exponential backoff. After a failure, wait 1 second, then 2, then 4, and add a little random jitter so a pile of requests do not all retry at the same moment.
- Cap concurrency. Give your script a concurrency limit or a queue instead of firing every request at once.
- Shrink each request. Trimming conversation history and sending only the file sections you need directly lowers TPM.
- Streaming does not bypass limits. Turning on stream only changes how the response is returned, not how usage is metered. See What does stream=true mean? Streaming output for beginners.
- Official upgrade path. Raise your account tier as described in the official docs, or contact the provider to request an adjustment; follow their official guidance.
If you cannot tell whether you exceeded your limit or the service itself is having problems, check cdnping's API status page for probe results on official endpoints. If you are in mainland China and see timeouts calling overseas APIs, network latency is the more likely cause; see How to read AI API latency from China.
How do limits work with an aggregation gateway?
When you call models through a third-party gateway, limits can come from two layers: the gateway's own rules and the rules of the upstream providers behind it. Whether the limit is counted in requests, tokens, or a custom unit depends on the gateway's own documentation.
One option worth mentioning: AGI Plan is a multi-provider LLM aggregation gateway. It is sold as a monthly subscription, billed in RMB, with no overseas credit card needed. Tools such as Claude Code and Codex only need a single endpoint change, and you can switch between capability groups using the same quota. It meters usage in CUs: 1 CU equals 1,000 output tokens of the baseline model. Some models are marked "overseas only"; see the AGI Plan models page for specifics. The service states clearly that it is not an officially authorized channel. AGI Plan is a commercial partner of cdnping. To learn how to connect, see its getting-started page.
What should I do next?
- Still unsure what an API is: read What is an AI API? A one-page explainer for beginners.
- Already have a key: read What is an API key? 5 things to know before your first AI API call, and be careful not to put the key in public code.
- Then open your provider's console, note the current RPM and TPM for the model you use, and run the four-step estimate above to see whether you have enough headroom.