Canonical: https://weaveos.com/glossary/time-to-first-token

[Home](https://weaveos.com/)/[Glossary](https://weaveos.com/glossary)/[Inference performance](https://weaveos.com/glossary/category/inference-performance)/Time to first token

[Inference performance](https://weaveos.com/glossary/category/inference-performance)

# Time to first token

Also known as TTFT, First-token latency

By WeavePublished September 10, 20261 min read

## Definition

Time to first token, or TTFT, is the elapsed time from an inference request being accepted until the first output token is delivered. It captures startup and queue delay before generation becomes visible to a user.

On this page

1. [Definition](https://weaveos.com/glossary/time-to-first-token#definition)
2. [What TTFT includes](https://weaveos.com/glossary/time-to-first-token#article-what-ttft-includes)
3. [Why users notice it](https://weaveos.com/glossary/time-to-first-token#article-why-users-notice-it)
4. [Improve and interpret it](https://weaveos.com/glossary/time-to-first-token#article-improve-and-interpret-it)
5. [How this relates to Weave](https://weaveos.com/glossary/time-to-first-token#weave)
6. [Sources](https://weaveos.com/glossary/time-to-first-token#sources)
7. [Related terms](https://weaveos.com/glossary/time-to-first-token#related)

## What TTFT includes

TTFT includes request admission, queueing, input processing, and the time needed to begin decoding. It does not describe how quickly the remaining response streams. A response can have a fast first token and a slow completion, or the reverse.

## Why users notice it

Streaming interfaces feel responsive when useful output begins quickly. TTFT is especially visible in chat, coding assistants, and agent steps where one delayed call delays the next tool action. Set targets by use case rather than applying one number to every request.

## Improve and interpret it

Reduce unnecessary context, use prompt caching where appropriate, route urgent requests to providers with available capacity, and monitor queue time separately. Weave connects TTFT to tokens, model routes, and outcomes so teams can optimize perceived speed without ignoring quality or cost.

## How this relates to Weave

Weave helps teams compare TTFT by model, provider, route, prompt size, and cache state. That context can show whether a slow first token comes from queueing, a long input, a provider, or a routing rule.

[Explore Token intelligence](https://weaveos.com/products/token-intelligence)

## Sources and further reading

1. [Text generation inference, Hugging Face](https://huggingface.co/docs/text-generation-inference/index)

## Related terms

### [LLM latency](https://weaveos.com/glossary/latency)

[Understand LLM latency, separate time to first token from completion time, and evaluate response speed across realistic AI workflows.](https://weaveos.com/glossary/latency)

### [LLM inference](https://weaveos.com/glossary/llm-inference)

[Understand LLM inference, how a trained model generates a response, and why input length and output length affect serving costs.](https://weaveos.com/glossary/llm-inference)

### [Model routing](https://weaveos.com/glossary/model-routing)

[How model routing selects an AI model for each request, the tradeoffs between cost and quality, and where Weave Router fits into agent workflows.](https://weaveos.com/glossary/model-routing)

### [Token budget](https://weaveos.com/glossary/token-budget)

[What a token budget limits in an AI request, how budgets affect quality and cost, and why a larger allowance is not always better.](https://weaveos.com/glossary/token-budget)
