Skip to content

Time to First Token

TTFT

Medium — good to knowAI & ML

ELI5 - The Vibe Check

Time to First Token is how long a user stares at a blank screen before the AI starts typing back. It doesn't matter how fast the model writes once it gets going if the user already gave up waiting for the first word. This is why chat products obsess over shaving milliseconds off the very start of a response, even more than the total response time.

Real Talk

Time to First Token measures the latency between a request being sent and the first output token being returned, dominated by the prefill phase where the entire prompt is processed before generation begins. It is tracked separately from total generation time and inter-token latency because prompt length, queuing, and cold starts affect it disproportionately, and it drives perceived responsiveness in streaming interfaces.

When You'll Hear This

"TTFT spikes whenever the context is over 50K tokens." / "We cache the system prompt to keep TTFT under 300ms."

Made with passive-aggressive love by manoga.digital. Powered by Claude.