short · 3 min
Time to first token
How long before the first token shows up. The delay users feel most.
updated 29 Sept 2026
Usability research from 1993 (updated in 2014) gives three rough limits for how long people will wait on a computer.
Now hold a model call up against those. A long answer can easily take more than 10 seconds to finish. Does that mean every chat app loses its users?
Not if it streams. With streaming, the waiting ends the moment the first token appears; after that, the user is reading. So the number to hold against those limits is the time from sending the request to that first token arriving. That's time to first token, or TTFT, and it's the part of LLM latency people feel most.
What's packed into it
Say a user asks our app a question and we forward it to a hosted model. Before the first token gets back to us, three things happen.
The request travels to the provider, and the token travels back. That's network, and it's longer the further our server is from the provider's region.
The request may wait in a queue. Hosted models are shared, so at a busy hour our request waits its turn. And even once it's running, other people's requests are being worked on by the same hardware. The same prompt can have a different TTFT at 3 a.m. and at noon.
Then prefill: the model reads the whole prompt and builds its KV cache before it can write anything. The first output token comes out at the end of this step (more in prefill and decode).
Benchmark tools also count the small steps around the model, like turning text into tokens and back. From our side we only see the total, so we can't tell whether a slow TTFT was a long queue or a long prompt without measuring under different conditions.
What it does and doesn't depend on
Prompt length matters a lot here. Prefill has to read every input token before any output comes out, so a big system prompt, a stack of retrieved documents or a long chat history all push TTFT up.
Wait, doesn't the usual advice say prompt length barely affects latency? It does, but that advice is about total response time, where the length of the answer dominates. For TTFT it's the other way round: the answer's length doesn't matter at all. A 10-token answer and a 1,000-token answer start at the same moment. Both pieces of advice are true; they're about different numbers.
So when TTFT is what matters, keep what goes in front of the question lean: a shorter system prompt, fewer retrieved chunks. Look at it at busy hours and at the slow end of the spread, not only the median (see tail latency). And if it still runs past a second, show something right away so the user knows the request landed. How to show a stream well is streaming UI.
When does the clock stop?
That sounds like an easy question. It isn't always.
A stream can open with events that carry no text. Benchmark tools skip empty first responses, and we should too: stop the clock on the first chunk with actual text in it.
Reasoning models make it harder. A reasoning model may think for a long time before it writes the first word of its answer. Its first token might arrive fast and still leave the user staring at nothing for a long while. For those, the wait that counts runs until the first token of the actual answer, after the thinking. That's the one to hold up against the three limits, and LLM latency has more on how it's measured.
Further reading
- Metrics — NVIDIA NIM LLMs Benchmarking, NVIDIA docs, updated 2026. Exactly what TTFT includes, if you need to compare your number with someone else's.
- Response Times: The 3 Important Limits, Jakob Nielsen (NN/g), 1993, updated 2014. A short classic; the three limits are still the best rule of thumb for any wait.