# Time to First Token (TTFT)

- **Canonical URL:** https://getaimath.com/dictionary/time-to-first-token-ttft/
- **Topics:** [LLM Inference: Prefill & Decode](https://getaimath.com/dictionary/category/llm-inference-prefill-and-decode/), [AI Evaluation & Performance Metrics](https://getaimath.com/dictionary/category/ai-evaluation-and-performance-metrics/)
- **Also called:** TTFT
- **Last updated:** 2026-11-25

## What is Time to First Token (TTFT)?

**In one sentence:** Time to First Token is how long you wait between sending a request and seeing the first token of the answer.

It mostly depends on prefill time, network delay, and how busy the server is. Short TTFT makes an app feel responsive, even if the full answer takes longer.

![How an AI Replies: 1. Read Your Question → 2. Type the Answer — Simple two-step cartoon: Step 1 (Prefill) shows the AI scanning your entire question in one flash (causing the brief pause before it starts talking); Step 2 (Decode) shows it typing out the reply one word at a time.](https://getaimath.com/diagrams/llm-inference-prefill-and-decode.png)
*Napkin Diagram (LLM Inference: Prefill & Decode): Every AI reply has two halves: gulping down your whole prompt at once, then speaking the answer one word at a time.*

### Quick Math / Rule of Thumb

As a rough guide, under ~0.5 s feels instant in chat and over ~2 s feels slow. TTFT grows with prompt length—roughly linearly, and faster than linearly for very long prompts.

## What is an example of Time to First Token (TTFT)?

If a chatbot starts typing 0.4 seconds after you hit enter, its TTFT is 0.4 seconds.

## Why does Time to First Token (TTFT) matter?

TTFT is one of the most important numbers for how fast AI feels.

## Time to First Token (TTFT) vs. Time Per Output Token (TPOT)

TTFT is the pause before the first word appears on screen; TPOT is the pace between each streamed token after speaking begins.

| Dimension | Time to First Token (TTFT) | [Time Per Output Token (TPOT)](https://getaimath.com/dictionary/time-per-output-token-tpot/) |
| --- | --- | --- |
| What the user feels | Initial 'thinking' pause after hitting Enter | How smoothly and quickly text streams out |
| Driven mainly by | Prompt length, queueing, and prefill compute | Model weight size, batching, and VRAM bandwidth |
| Snappy target | < 300–500 ms for interactive chat | 15–35 ms/token (~30–65 tokens/sec) |

## Related Concepts

- [Decode](https://getaimath.com/dictionary/decode/): Decode is the second step of answering, where the model writes its reply one token at a time.
- [Time Per Output Token (TPOT)](https://getaimath.com/dictionary/time-per-output-token-tpot/): Time Per Output Token is the average time it takes to generate each new token after the first one.
- [Tokens Per Second (TPS)](https://getaimath.com/dictionary/tokens-per-second-tps/): Tokens per second is how many tokens a model produces, or processes, every second.
- [Prefill](https://getaimath.com/dictionary/prefill/): Prefill is the first step of answering, where the model reads your whole prompt at once and builds its memory of it.
- [Inter-Token Latency (ITL)](https://getaimath.com/dictionary/inter-token-latency-itl/): Inter-token latency is the time gap between one generated token and the next.
- [Throughput](https://getaimath.com/dictionary/throughput/): Throughput is the total amount of work a system completes over time, like the number of tokens or requests per second across all users.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/time-to-first-token-ttft/)
