API Rate Limit Calculator
Compare RPM, TPM, concurrency, latency, and user request frequency to design practical rate limits.
API Rate Limit Calculator
Check RPM, TPM, concurrency, and queue needs before users hit provider limits.
| Item | Basis | Value |
|---|---|---|
| RPM utilization | Demand divided by reserved RPM | 5.6% |
| TPM utilization | Demand divided by reserved TPM | 15% |
| Recommended queue size | Only for overflow beyond reserved RPM | 0 |
| Max user frequency | Per active user at reserved capacity | 3.33 requests/min |
| Recommended rule | Apply per-user and workspace caps | Safe with current reserve |
Frequently asked questions
Practical answers for applying this calculator to a production API billing or usage plan.
What is the difference between RPM and TPM?
RPM limits how many requests can start in one minute, while TPM limits the token volume processed in that minute. An AI API can remain under RPM and still exceed TPM when requests contain large prompts or outputs.
How does concurrency affect an API rate limit?
Concurrency measures requests in flight at the same time. Higher latency keeps requests open longer, so a workload can hit a concurrency ceiling even when its requests-per-minute rate appears acceptable.
What queue size should I use for API requests?
Size the queue for short, expected bursts rather than sustained overload. The queue should have a maximum wait time and reject excess work with a clear retry response before latency becomes unacceptable.
How much rate-limit capacity should remain in reserve?
Keeping 15% to 30% of upstream capacity in reserve is a common starting point. The reserve covers retries, monitoring calls, traffic spikes, and measurement error without immediately throttling customers.
How do API rate limits affect paid API pricing?
API rate limits affect pricing because they define how much capacity a customer can consume in a short window, not just across a month. A plan with 1,000,000 included requests can still be expensive to operate if customers send all traffic during peak minutes. Price and limit together: monthly quota controls total cost, RPM and TPM control burst cost, and concurrency controls in-flight load. For example, a Growth plan might include more monthly usage plus a higher RPM limit, while overage handles sustained consumption. This keeps paid API pricing aligned with both volume and infrastructure pressure.
Related API billing guides
Read the concepts behind the calculator and adapt the examples to your own API pricing model.
API Billing Models: Usage-Based, Subscription, Credits and BYOK
Compare API billing models for developer products, including usage-based billing, subscriptions, credits, prepaid wallets, and bring-your-own-key.
Read guidePaid API Pricing Guide: How to Charge for API Access
A paid API pricing guide for choosing a billable unit, free tier, plan structure, usage overage, margin, and customer-facing examples.
Read guideWhat Is API Key Billing?
A practical guide to API key billing models, usage tracking, pricing units, invoices, limits, and developer-friendly policies.
Read guide