LLM rate limit calculator
How it adds up
| Item | Requests a minute | Time for the job |
|---|---|---|
| max_tokens 200 | 143 | 2.3 hours |
| max_tokens 400 | 125 | 2.7 hours |
| max_tokens 800 | 100 | 3.3 hours |
| max_tokens 1,600 | 71 | 4.7 hours |
The token limit counts max_tokens, not the length of the answer you actually get, so a max_tokens far above the real answers wastes the limit. Leave headroom too: retries after errors count against the same limits, and running right at the limit produces rate-limit errors.
Worked out from the numbers you enter. Calculated in this browser; nothing you enter is sent anywhere or stored.
How to use it · free, no signup
How to use the LLM Rate Limit Calculator
Enter the number of requests, their tokens and your requests-per-minute and tokens-per-minute limits to see how long the job takes and which limit binds. Calculated in your browser.
01
Enter the job
How many requests, and the input tokens of a typical one.
02
Enter max_tokens
The limit you set on each answer; it counts towards the token limit.
03
Enter your limits
Requests and tokens per minute, and a daily request cap if you have one.
Two limits, one bottleneck
AI APIs limit how much you can send per minute in two ways: requests per minute (RPM) and tokens per minute (TPM). Whichever is reached first applies, as OpenAI’s rate limit guide explains. The same guide says the token count for a request is based on the larger of max_tokens and the estimated tokens, so each request counts as its input plus max_tokens. The example uses the starting values.
| Figure | Value |
|---|---|
| Tokens counted per request (1,200 + 400) | 1,600 |
| Requests a minute allowed by TPM (200,000 ÷ 1,600) | 125 |
| Requests a minute allowed by RPM | 500 |
| Effective rate | 125 a minute, set by TPM |
| Time for 20,000 requests | About 2.7 hours |
max_tokens is part of the budget
Because the token limit counts max_tokens rather than the answer you actually get, a generous max_tokens slows a batch even when the answers are short. In the example, halving max_tokens to 200 raises the rate from 125 to about 143 requests a minute. Set it just above the longest answer you expect, which the token counter can estimate from a typical answer.
Planning a large job
- Run below the limit. Retries after errors count too, and running at the edge produces rate-limit errors.
- Mind daily caps. A requests-per-day limit spreads a big job over several days, whatever the per-minute limits.
- Use batch services where your provider offers them, for work that can wait.
- Ask for more. Limits usually rise with usage tier or on request.
Time and cost together
The same token counts set the bill: price the job with the AI API cost calculator. To see how long a single answer takes to arrive, use the tokens per second calculator, and to build the prompts for a batch from a spreadsheet, the bulk prompt generator.
Published by Koit Academy. Who runs it, how it is paid and how its tools are checked.
Questions
What people ask about the LLM Rate Limit Calculator
What are RPM and TPM?
Why does max_tokens count towards the limit?
How long will 20,000 requests take?
How do I process a large job faster?
What happens if I exceed the limit?
Related tools
Token Counter
An estimate of the tokens in any text
Open itAI API Cost Calculator
What an AI workload costs per request and per month
Open itPassword Generator
Generate strong passwords in your browser and see what they are actually worth
Open itAI Prompt Generator
One clear prompt from its parts
Open itAI Image Prompt Generator
A detailed image prompt from its parts
Open itAI Text Cleaner
Plain text from an AI answer, without the Markdown
Open it