It is written TTFT, time to first token; next to it come TPOT or ITL, the time for each following token, and E2E, the time to the end of the answer. Latency is given in milliseconds or seconds and almost always as a percentile: p50 is a typical request, p99 is one of the hundred slowest.
Do not confuse
TTFT is not speed. A service can stay silent for half a second and then write 200 tokens a second, or answer instantly and then crawl along at 10. Nor is it TTFB: the first byte of a stream is often a service byte without a single word. For reasoning models the first visible token comes after the hidden ones.
Under the cast letters TTFT a stopwatch hand runs. On the right, five red lights come on one by one, as at the start of a race, and go out — green ones light up: the first token is away. In the answer window three “typing…” dots give way to a stream of tokens. Below, a marker moves along the request scale: network, queue, prefill, then the green line of the first token and a measuring row of the following ones — one every TPOT.
Unit passport · AI series · how long to wait for the first word
In 2009 Tanya Stivers and colleagues recorded conversations in ten languages, from Japanese to Tzeltal, the language of a people in Mexico, and measured the pauses between turns. Everywhere people answer after about two hundred milliseconds on average. A language model that afterwards writes a hundred tokens a second may stay silent for seconds on a long document, and in a chat its second turn often starts faster than its first, even though the history has grown longer. Why? The answer is in the calculator and the “Cache” experiment.
TTFT is the time from sending a request to the appearance of the first token of the answer. It adds up the trip across the network, the wait in the server queue, prefill — the model reading the whole request — and the first step of writing. TTFT decides whether an answer feels instant, and for voice assistants and code autocomplete, whether they can be used at all. This sheet has a TTFT calculator by model, GPU and request length; a live experiment where you can feel 0.2, 1 and 10 seconds; a queue in which the p99 tail grows faster than the mean; a prefix cache; separate servers for reading and writing; eight levers and ways to measure TTFT yourself.
What it is
time from sending a request to the first token of the answer, on the client side
Notation
TTFT, ms or s; in Chinese 首字延迟 or 首 token 时延
Dimension
time, SI second; given as percentiles p50 / p95 / p99
Grows with
request length · model size · server load · distance · hidden reasoning
Typical values
0.2–0.6 s — chat · ≤ 0.45 s p99 — MLPerf, interactive · seconds — long document · tens of seconds — reasoning
References
MLPerf Inference, MLCommons · Miller, 1968 · Stivers et al., PNAS, 2009 · Agrawal et al., 2023
Latency comes from the Latin for “to hide”: a delay is the time when a process is already under way but cannot be seen. The stream of tokens is named after the same ancient root as the Russian struya, “jet”. And the second is the “second small part” of an hour.
latencyLat. latēre
latēre · to hide→latens · hidden→latency
Latin latēre means “to be hidden”. Doctors spoke of the latent period of a disease, nineteenth-century psychologists of latent reaction time: the stimulus has come, but no answer is visible yet. In communications and computing, latency is the time while a signal is on its way. The Russian zaderzhka, “delay”, comes from derzhat', “to hold”.
stream · struya*srew- · to flow
*srew- · to flow→stream · struya · rheîn→streaming
The Proto-Indo-European root *srew-, “to flow”, gave English stream, Russian struya (“jet”) and Greek rheîn, whence “rheo-” and “rhythm”. Streaming output hands over the answer token by token as soon as it is ready: you wait only for TTFT, not for the whole answer.
secondLat. secunda
pars minuta prima→pars minuta secunda→s
Medieval scholars divided the hour in the Babylonian sexagesimal tradition: the “first small part” was the minute, the “second small part” the second. Since 1967 the second has been defined by the radiation frequency of the caesium-133 atom.
What it is called in other languages
首字延迟, 首 token 时延 — Chinese; 最初のトークンまでの時間 — Japanese; 첫 토큰까지의 시간 — Korean
tiempo hasta el primer token, tempo até o primeiro token, délai avant le premier jeton
الزمن حتى أول رمز — Arabic; पहले टोकन तक का समय — Hindi; эхний токен хүртэлх хугацаа — Mongolian
In many languages, engineers keep the English abbreviation TTFT in speech.
Abbreviations nearby
TPOT · ITLtime per output token, inter-token latency — the step between tokensprefillreading the request: all tokens pass through the model at onceRTTround-trip time: the way to the server and backp9999th percentile: only every hundredth request is slowerSSEserver-sent events: a way to deliver the answer as a stream
01 · Definition and feel
First the model reads, then it writes
Before writing the first word, the model has to read the whole request: the instruction, the chat history, the attached document. This is prefill — all tokens go through the network at once, the GPU is fully loaded with computation, and the time grows almost linearly with length, and on very long requests quadratically, because every token attends to all the previous ones. Then the model writes one token per step — this is TPOT, and it hardly depends on the request length.
To prefill are added the trip across the network and back and the wait in the queue if the server is busy with other people’s requests. Reasoning models also have hidden tokens: while the model thinks, there is no visible answer. Feel the difference on the right: in conversation a person answers after about 0.2 seconds, one second still does not break the train of thought, and after ten the attention wanders off.
N — request tokens · N_c — from the cache · P — parameters per token · F — FLOP/s of the GPUs · L — layers · a — attention width · ρ — load · S — service time
{name}{st}
{txt}
Interactive · feel the delay
TTFT
Writing speed and delivery
Why is the sky blue and the sunset red?
0.00 s
{k}{v}
Lab · three experiments with waiting
Queue, cache and separate servers
In “Queue” the server takes a stream of requests that now and then includes long documents: one of them can hold up dozens of short ones. In “Cache” a long chat shows how the repeated beginning of a request stops being read again. In “Mix” you can see how reading someone else’s document interrupts the writing of your answer — and how chunks or separate machines cure it. The model and GPUs come from the calculator.
Server load
Long documents in the stream
Beginning of each request
How to split reading and writing
Other people’s requests, tokens
{k}
{v}
{n}
Chart · request length
TTFT by number of tokens in the request
Model and format come from the calculator, on four GPUs, no queue. Both scales are logarithmic. While the request is short, TTFT is limited by the network and by reading the weights; then it grows linearly, and beyond a hundred thousand tokens noticeably faster because of attention. The dashed lines are 1 and 10 seconds.
Chart · queue tail
p50, p95 and p99 by load
The TTFT of the calculator’s request at different server loads under the simplest queue model (M/M/1). A typical request hardly notices the load up to 70–80 %, while the slowest one in a hundred notices it much earlier. The dot is the load from the calculator.
02 · Orders of magnitude · delay, seconds
s, logarithmic scale
{lb}
03 · Eight levers
What shortens the wait and what does not
Each lever is applied to the request from the calculator: the grey bar is the TTFT now, the coloured one after the change. Not everything that speeds up writing speeds up the start of the answer. Tap a row to read the explanation.
04 · Metrics and measurement
Eight numbers used to measure waiting
TTFT is rarely quoted alone: it is looked at together with the step between tokens, the total answer time and percentiles. It is best measured on the client side, so that the network and the queue are counted. Tap a row to read the details.
In 1968 the IBM engineer Robert Miller described how long a person is willing to wait for a machine’s answer: up to a tenth of a second feels instant, up to a second does not break the train of thought, and after ten seconds attention moves to something else. Twenty-five years later Jakob Nielsen retold these thresholds in a book on usability, and they are still used today.
Language models brought the old problem back. Streaming tokens hides a long answer: if the first word arrives within half a second, the rest can be read as it appears. Voice assistants need more: for a conversation to feel natural, the answer must begin in about the time of a human pause. That is why voice models of 2024–2025 measure delay in hundreds of milliseconds, and servers are split into machines for reading and for writing.
Miller, 1968
Series · AI
units of language models
How a neural network is measured
TTFT closes the series: the time to the first word grows with the number of tokens and the length of the context, and falls with computing power in FLOP and with the cache, which also makes a million tokens cheaper — and beyond that begins the territory of answer speed. On the left is information about one request, where each row leads to its own sheet; on the right are all twelve sheets of the series.