Inference, Serving & Production·Question 69 of 76Quick-fire

What is the difference between time-to-first-token and inter-token latency, and why care?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Time-to-first-token (TTFT) is how long before the first output token appears, dominated by the prefill phase over your input, so it grows with prompt length. Inter-token latency (or tokens per second during decode) is how fast tokens stream after that, dominated by the memory-bound decode phase and roughly independent of input size. They matter because they call for different fixes: a slow TTFT is helped by shortening or caching the prompt, while slow token throughput is helped by a smaller or faster model, and streaming hides TTFT for chat but not for a batch job that needs the whole output. Optimize the one your user experience is actually bound by rather than "latency" as a single number.

Full worked answer

Time-to-first-token (TTFT) is how long before the first output token appears, dominated by the prefill phase over your input, so it grows with prompt length. Inter-token latency (or tokens per second during decode) is how fast tokens stream after that, dominated by the memory-bound decode phase and roughly independent of input size. They matter because they call for different fixes: a slow TTFT is helped by shortening or caching the prompt, while slow token throughput is helped by a smaller or faster model, and streaming hides TTFT for chat but not for a batch job that needs the whole output. Optimize the one your user experience is actually bound by rather than "latency" as a single number.

Learn more: Production topic

What a good answer covers

  • Time-to-first-token (TTFT) is how long before the first output token appears, dominated by the prefill…
  • Inter-token latency (or tokens per second during decode) is how fast tokens stream after that, dominated…
  • They matter because they call for different fixes
  • Optimize the one your user experience is actually bound by rather than "latency" as a single number

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep