LLM API Rate Limit Calculator
Turn your traffic into tokens per minute and concurrency, then check whether your API tier’s RPM and TPM limits are enough, with headroom for spikes and a backoff plan.
Your traffic
How long one call takes from send to finished reply. Used for concurrency.
Prompt, system message, context and history.
The reply length you expect.
Busiest minute as a multiple of the average. 1 = steady traffic.
Share of each limit you want left unused.
Your tier’s limits
From your provider’s console. Leave blank if none.
Combined input + output. Leave blank if none.
Result
Enough: you are within your limits with headroom to spare.
What to do
- You have 20% or more headroom. Still handle 429 errors with backoff in case of retries or longer-than-average prompts.
How to use it
- Enter your average requests per minute and the typical input and output tokens per request. Pick a preset if you want a starting point.
- Add the average request time so the calculator can work out how many calls are in flight at once.
- Type in the RPM and TPM limits of your provider tier, and set a peak multiplier for your busiest minute.
- Read the verdict, the limiting factor and the suggested fixes. Adjust the numbers to test batching or shorter prompts.
How the numbers are worked out
- Tokens per minute = requests per minute × (input + output tokens per request)
- Concurrency = (requests per minute ÷ 60) × average request time in seconds
- Peak demand = average × peak multiplier. It is compared with each limit: usage above 100% is rejected, usage above (100% − headroom) is tight.
- Max requests per minute = the lower of the RPM limit and TPM limit ÷ tokens per request
Worked example
A support bot sends 100 requests per minute, each with 1,000 input and 500 output tokens, and a reply takes about 6 seconds. That is 100 × 1,500 = 150,000 TPM and (100 ÷ 60) × 6 = 10 requests in flight. On a tier with 500 RPM and 200,000 TPM, the TPM limit binds: 150,000 ÷ 200,000 = 75% used, which fits within 80% (20% headroom).
Now traffic doubles in the busiest minute (peak multiplier 2): 200 RPM and 300,000 TPM, which is 150% of the TPM limit. About one third of requests would be rejected, and you would need two limit-sized pools, or a bigger tier, to cover the peak with 20% headroom. Shorter prompts, caching repeated context, a queue with exponential backoff, or a batch endpoint for non-urgent work are the usual fixes.
Not sure how many tokens your prompt uses? Count them with the AI token counter. Limits and rules differ by provider, model and tier and change over time, so check your provider’s documentation. Nothing you enter leaves your browser.
See also
- Not sure how many tokens a request uses? Measure a real prompt with the AI token counter.
- To see what this traffic costs per month, use the LLM API cost calculator.
- Running the model yourself instead of using an API? Estimate generation speed with the LLM tokens per second calculator.
Frequently Asked Questions (FAQ)
Multiply requests per minute by the average tokens per request, input plus output. For example, 100 requests per minute at 1,000 input and 500 output tokens is 100 × 1,500 = 150,000 TPM. Use the AI token counter to measure your real prompts instead of guessing.
RPM caps how many requests you can send per minute, whatever their size. TPM caps the total tokens those requests carry. Whichever limit you reach first is the one that throttles you: many small requests hit RPM, a few huge ones hit TPM. The calculator shows which one binds for your numbers.
Concurrency = requests per second × average request time (Little’s law). At 100 requests per minute and 6 seconds per request that is 1.67 × 6 = 10 requests in flight. It matters for connection pools, worker counts and providers that cap concurrent requests.
Traffic is bursty, retries add extra requests, and prompts occasionally run longer than average. Staying around 20% under a limit means a small spike does not trigger 429 errors. Use the peak multiplier to model your busiest minute, not just the average.
It depends on the provider. Some count input and output together, others set separate input and output token limits, and some reserve your maximum output setting at request time and adjust afterwards. This calculator checks a combined TPM figure; also look at the separate input and output TPM shown in the results and compare them with your provider’s rate-limit page.
Smooth the load with a queue, retry 429 responses with exponential backoff and jitter, shorten prompts or cache repeated context, lower the max output setting, and move non-urgent work to a batch endpoint if your provider offers one. If demand is still higher, request a higher tier or spread load over additional projects or keys where the provider’s terms allow it.
After a 429 error, wait a short time, retry, and double the wait after each failure up to a cap, for example 1, 2, 4, 8, 16 then 30 seconds. Add random jitter so many clients do not retry at the same moment, and honour any retry-after header the provider sends.
In your provider’s console or account settings, usually under limits or usage tiers, and in the documentation of the model you use. Limits differ by model and by tier and change over time, so this calculator asks you to type them in rather than assuming figures.
No. Everything is calculated in your browser, and the numbers you enter never leave it.
Related Tools
- Vector Database Storage CalculatorEstimate vector database storage from vector count, dimensions and precision (float32, float16, int8, binary), HNSW index overhead, metadata and replicas. Runs in your browser.
- LLM API Cost CalculatorCompare GPT, Claude and Gemini API rates and estimate monthly token costs.
- Prompt Caching Savings CalculatorCalculate monthly LLM API savings from prompt caching using prefix size, cache hit rate and cache read/write prices, with the break-even hit rate.
- RAG Chunking and Embedding Cost CalculatorEstimate RAG chunk count, one-off embedding (indexing) cost and monthly query cost from document size, chunk size, overlap, embedding price and retrieval settings. Prices are dated and editable.
- AI Token CounterCount tokens, words and characters in your prompts for GPT, Claude, Gemini and Llama.
- Tokens to Words, Pages and Books ConverterHow many tokens in a word, page or 1,000 words? Convert words, pages and books to tokens and back for six languages.