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.

Tokens per minute
150,000
100,000 in + 50,000 out
Tokens per request
1,500
Concurrent requests
10
10 at peak
Peak demand
100 RPM
150,000 TPM
RPM used at peak
20%
TPM used at peak
75%
limiting factor
Max requests/min
133.3
at this request size
Safe with 20% headroom
106.7 RPM

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

  1. Enter your average requests per minute and the typical input and output tokens per request. Pick a preset if you want a starting point.
  2. Add the average request time so the calculator can work out how many calls are in flight at once.
  3. Type in the RPM and TPM limits of your provider tier, and set a peak multiplier for your busiest minute.
  4. 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

Frequently Asked Questions (FAQ)

How do I calculate tokens per minute (TPM)?

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.

What is the difference between RPM and TPM?

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.

How many concurrent requests will I have?

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.

Why add headroom to my limits?

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.

Do output tokens count towards my TPM limit?

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.

What should I do when I exceed the limit?

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.

How does exponential backoff work?

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.

Where do I find my RPM and TPM limits?

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.

Does the calculator send my numbers anywhere?

No. Everything is calculated in your browser, and the numbers you enter never leave it.