Why AI Responds Quickly but Generates Slowly
Learn the two numbers that describe how fast a chatbot feels, and why streaming changes everything.
Ask a chatbot something and two separate things happen: a short pause, then words that flow steadily onto the screen. Serving engineers measure these separately, because they have different causes and different fixes.
Time to first token (TTFT) is the pause: queueing, plus prefill of your whole prompt, plus the network. It’s what makes an app feel responsive or sluggish. It grows with long prompts, busy services and, for reasoning models, with all the thinking that happens before the visible answer.
Time per output token (TPOT, also called inter-token latency) is the rhythm after that: how long each decode step takes. Its inverse is the familiar “tokens per second”. It depends on the model’s size, the GPU’s memory bandwidth, and how many other users share each step.
Here’s the trick that makes chatbots feel fast: streaming. Instead of waiting for the full answer, the app shows each token the moment it exists. A 400-word answer at 50 tokens a second takes about ten seconds to finish, but you start reading after half a second, and you can’t read faster than about four or five words a second anyway. As long as the model writes faster than you read, it feels instant.
That gives serving teams a useful target. TTFT should be short, ideally well under a second. TPOT only needs to stay comfortably faster than reading speed. Any spare speed beyond that can be traded for something more valuable, such as serving more people per GPU, which is exactly the trade the next lesson explores.
Key takeaways
- Time to first token (TTFT): queueing + prefill + network. It decides how responsive an app feels.
- Time per output token (TPOT): the decode rhythm. Its inverse is tokens per second.
- Streaming shows tokens as they’re made, so you start reading long before the answer is finished.
- Writing only needs to beat reading speed (about 4–5 words a second); spare speed can serve more users.
Check your understanding
Go deeper (more technical)
Benchmarks usually report percentiles, not averages: “p99 TTFT under 2 seconds” means 99% of requests saw their first token within 2 seconds. The slowest 1% often sets how a service feels to its unluckiest users.
For agents and API calls that are read by programs rather than people, streaming matters less and the total time to the final token (“end-to-end latency”) is what counts. Reasoning models complicate TTFT: their hidden thinking tokens are generated before the first visible one.
Reading speed in the simulation: about 250 words per minute, a common adult average.