Tokens per Second
What is tokens per second?
Tokens per second is the rate at which an AI model generates or processes tokens, used to measure the speed of a model for one user and the throughput of AI infrastructure across many.
Updated November 2026 · 2 min read
Tokens per second is the rate at which an AI model generates or processes tokens, the standard measure of how fast a model works. For a person using a chat assistant, it is how quickly the answer appears on screen. For an engineering team running AI infrastructure, it is how much work the hardware can do across all users at once. The two are related but different, and confusing them is a common source of poor capacity planning.
Key speed measures
- Time to first token (TTFT): the delay between sending a request and receiving the first token of the response. Driven mainly by input length, queueing and the time needed to process the prompt.
- Output tokens per second: how fast the response streams once it starts, for a single request.
- Total response time: TTFT plus the time to generate all output tokens. For example, a hypothetical 500-token answer at 50 output tokens per second with a 0.5-second TTFT takes about 10.5 seconds in total.
- Throughput: total tokens processed per second across all requests on a system. Used for capacity planning and cost per token on self-hosted models.
Why speed matters
- User experience: people read at a few words per second, so streaming output at even modest speeds feels responsive. Long waits before the first token feel slow even if generation is fast.
- Agents and pipelines: when one task involves many model calls, each in sequence, total time adds up quickly.
- Cost: on self-hosted infrastructure, more throughput per GPU means lower cost per token. See GPU utilization.
The speed-cost trade-off
On shared hardware, serving more users at once increases total throughput but can slow each individual response. Operators tune this balance. Providers also offer different speed tiers. Smaller models are faster and cheaper. Batch processing is slower but cheaper. Some providers charge more for priority or faster processing.
An example
Consider a hypothetical company building a voice assistant for phone support. Callers notice pauses longer than about a second, so the team focuses on time to first token rather than total throughput. Its first design, with a large model and a 6,000-token prompt, has a TTFT of about 1.8 seconds. The team shortens the prompt, caches the fixed instructions and moves to a smaller, faster model for most turns, bringing TTFT under 500 milliseconds. Complex questions still go to the larger model, with a short spoken acknowledgment to cover the extra wait.
How to measure tokens per second
- Record TTFT, output tokens per second and total time for every request.
- Track the median and slower percentiles, since averages hide the slow responses users notice.
- Test under realistic load, not just with a single request.
Techniques for improving speed and throughput are covered in inference optimization and model serving.
Frequently asked questions
What is the difference between time to first token and tokens per second?
Time to first token is the delay before a response begins, driven mainly by input length, queueing and prompt processing. Output tokens per second measures how fast the response streams once it starts. Total response time combines them: a 500-token answer at 50 tokens per second with a 0.5-second time to first token takes about 10.5 seconds.
What should you track when benchmarking model speed in tokens per second?
Record time to first token, output tokens per second and total response time for every request. Track the median and slower percentiles, because averages hide the slow responses users notice. Test under realistic load rather than with a single request, and keep per-request speed separate from system throughput, which measures tokens per second across all requests.
Why can higher throughput in tokens per second make individual responses slower?
On shared hardware, serving more requests at once raises total throughput in tokens per second, but each individual response can stream more slowly. Operators tune this balance between cost and speed. Providers reflect it in their pricing tiers: batch processing is slower but cheaper, while some providers charge more for priority or faster processing.
Related terms
GPU Utilization
How much of a GPU's capacity is doing useful work, and what that costs.
Batch Inference
Processing many requests together, without waiting, at a much lower price.
Inference Optimization
Making models faster and cheaper to run without losing too much quality.
Model Serving
The infrastructure that answers requests to a trained model at scale.