Time to First Token (TTFT)
Also known as: TTFT
Category: Generative AI / LLM
The latency between sending a request to a language model and receiving the first token of the response, a critical metric for user-perceived responsiveness.
Full Explanation
Time to First Token (TTFT) measures the delay from when a user request is submitted until the first token of the response begins streaming back. This metric is crucial for user experience because it determines how long users wait before seeing any response. TTFT depends on several factors: input length (longer prompts require more processing), model size, hardware, serving infrastructure, and queue wait times. TTFT is typically dominated by the prefill phase, where the model processes all input tokens in parallel before generating the first output token. Optimization techniques include prefix caching (reusing computation for common prompt beginnings), prompt compression, and faster hardware. For streaming applications, low TTFT is often more important than raw TPS because users perceive the response as fast when it begins quickly, even if the total generation takes longer. Typical TTFT ranges from 100ms to several seconds depending on the setup.
Related Terms
More in Generative AI / LLM
Explore More
- AI Tools Library — Discover AI tools related to Time to First Token (TTFT)
- AI Education — Courses to learn about Generative AI / LLM
- AI News — Latest news and updates