TPM and RPM each throttle a different axis, which one caps which?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
TPM caps total tokens per 60s window; RPM caps API calls per 60s window. Many small calls hit RPM first; few long-context calls hit TPM first.
Imagine a bakery with two limits: one says 'no more than 200 customers per hour' and another says 'no more than 1000 loaves served per hour'. A coffee shop with hundreds of tiny one-loaf orders hits the customer cap first. A wedding planner ordering 50 huge multi-loaf platters at once hits the loaf cap first. Hosted LLM providers do the same thing: RPM is the customer count, TPM is the loaf count, and which one blocks you first depends entirely on your workload shape.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: TPM as token volume cap + RPM as request count cap + workload patterns that hit each + retry and backoff per limit type + self-hosted analogues + tier scaling.
| Property | TPM | RPM |
|---|---|---|
| What it caps | Total tokens per 60s window | API calls per 60s window |
| Counts toward limit | prompt_tokens + completion_tokens | Each API call equals 1 unit |
| Workload that hits first | Long-context, RAG, document analysis | Chat turns, tool-call dispatch, classifier |
| Self-hosted analogue (vLLM) | max_num_batched_tokens | max_num_seqs |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating TPM and RPM as redundant. They throttle completely different axes; your workload pattern decides which one bites first.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.