Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Time to first token

Also: TTFT

In plain words

How long you wait before the first word of the answer appears. It grows with the length of what you gave the model to read.

The fuller definition

Time to first token is the delay between sending a request and seeing the first word of the answer. It is dominated by the prefill phase, so it grows with the length of the prompt and documents.

How it fits together
  1. Request

    Sent

  2. Prefill

    Documents read

  3. First word

    Answer starts

A simplified relationship, not a screenshot or a complete design.

A concrete example

A short question answers almost instantly; the same question with a long transcript attached may pause before the first word.

The distinction that matters

A system can have a long wait to start and still write quickly once it does.

Related terms

Where it is taught

Understand the hardware a local model needs

Source and further reading

Hugging Face · Model inference and quantization

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC