Our chat pauses before the first word appears. What decides how long that pause is, and what is a normal value? The question comes up when a feature feels slow although the stream itself reads fine.
What time to first token actually measures
NVIDIA's benchmarking guide defines time to first token as the time it takes to process the prompt and generate the first token. In other words, it is how long a user waits before seeing any output. The same guide says TTFT generally includes queuing time, prefill time and network latency, and grows with prompt length.
Written as a sum, the wait has four parts:
TTFT = network round trip + queue wait + prefill + first output token
network round trip your request travelling to the API and the first chunk travelling back
queue wait time your request waits for a free slot on the GPU
prefill the model reading every prompt token before it writes anything
first output token the first step of generation
end-to-end latency = TTFT + generation timePrefill is usually the largest part you control. During prefill the model builds its KV cache (key-value cache), the record it keeps of every prompt token it has read. The model has to read the whole input before it can write, so a longer prompt means a longer prefill.
TTFT is not the speed of the stream. Inter-token latency, the average gap between tokens after the first one, measures that. Some streams open with an empty message that carries no text. Benchmark tools ignore it, so the TTFT clock stops only at the first real token.
To show what each part costs, we made 20 test calls on our API on 20 October 2026. We tested four cases: a short prompt, the same prompt with reasoning on, a long prompt, and the long prompt again. Each case ran five times from one client, so the results show roughly how much each part adds, not a benchmark.
Typical TTFT values we measure on our API
Our status page runs completion checks across tracked models every 10 minutes. It charts each model's TTFT and throughput (output tokens per second). The table reads its 7-day series from 13 to 20 October 2026.
| Model | Model ID | Median TTFT | TTFT range (10th to 90th percentile) | Median output tokens/s |
|---|---|---|---|---|
| DeepSeek V4 Flash | deepseek/deepseek-v4-flash-0731 | 299 ms | 254 to 700 ms | 84 |
| DeepSeek V4.1 Flash | deepseek/deepseek-v4.1-flash | 302 ms | 214 to 947 ms | 87 |
| GLM-5.3 Flash | z-ai/glm-5.3-flash | 361 ms | 239 to 960 ms | 45 |
| Kimi K3 | moonshotai/kimi-k3 | 361 ms | 256 to 676 ms | 54 |
| GLM-5.3 | z-ai/glm-5.3 | 392 ms | 278 to 1,143 ms | 70 |
| GLM-5.2 | z-ai/glm-5.2 | 471 ms | 364 to 864 ms | 52 |
| GLM-5.2 Instant | z-ai/glm-5.2-instant | 478 ms | 376 to 792 ms | 50 |
| Qwen3.8 2.4T A95B | qwen/qwen3.8-2.4t-a95b | 617 ms | 294 to 3,761 ms | 95 |
| Kimi K2.7 Code | moonshotai/kimi-k2.7-code | 814 ms | 340 to 3,723 ms | 100 |
| Qwen3.8 27B | qwen/qwen3.8-27b | 854 ms | 354 to 3,257 ms | 40 |
| Qwen3.8 Flash Next | qwen/qwen3.8-flash-next | 950 ms | 477 to 3,286 ms | 67 |
| MiniMax M3 | minimax/minimax-m3 | 954 ms | 567 to 3,469 ms | 84 |
The probe sends a short instruction to list the integers from 1 to 200, with max_tokens 600 and temperature 0. It streams one request per model, with no concurrent load, against warm models. Its clock stops at the first token of any kind, including a thinking token from a reasoning model. The time includes the network round trip, as our benchmark method describes. These are floor values for a short prompt, not a promise under your load.
Seven of the twelve models start in under 500 ms at the median. Usability research puts 0.1 second as the limit for a reaction that feels instant. It puts 1.0 second as the limit for keeping a user's flow of thought.
The ranking does not follow streaming speed. Kimi K2.7 Code streams fastest at 100 tokens per second but needs 814 ms to start. DeepSeek V4 Flash starts in 299 ms. Sorting the table by start time and by streaming speed gives two different orders. Their rank correlation is -0.05, and a value near 0 means the two orders are unrelated.
Every model in the table runs on our serverless inference: open models through one OpenAI-compatible API, billed per token with no base fee. Lyceum is a sovereign European AI inference provider for open-source models, and our serverless models run in Paris and Finland. Our models page lists the current IDs and prices.
How prompt length and prefix caching change TTFT
A long prompt can make a fast model start slowly. In our test calls, a short question to GLM-5.2 Instant got its first token after 0.24 s at the median. That is faster than the status table, because our client and prompt differ from the probe's. Compare the steps between our cases, not the absolute values. The same question behind a 20,294-token prompt took 1.25 s. Reading about 20,000 extra tokens added 1.02 s.
Prefix caching removes most of that cost when requests share a start. A prefix is the opening part of a prompt, such as a system prompt or a shared document. With prefix caching, a new request that starts like an earlier one reuses its KV cache and skips the shared part. A cache hit means the server still holds that record. A cache miss means it reads the whole prompt again.
We sent the same 20,294-token prompt a second time. The response reported 20,224 tokens served from cache, and the median TTFT fell to 0.52 s, 58% lower. Caching shortens prefill only. It does not make generation faster.
On our API, prompt caching (our name for prefix caching) is automatic. A hit is not guaranteed, because it depends on recent traffic. Keep the stable part of your prompt at the front and vary only the end. The field usage.prompt_tokens_details.cached_tokens shows how much came from cache, as our serverless API documentation describes. Cached tokens are also cheaper: models that list a cached input price bill those tokens at it, as our inference page states.
For GLM-5.3 we send each conversation turn to the running copy of the model that holds its history. More turns then hit the cache. Our post on cache-aware routing explains how. For long prompts that rarely repeat, read about separating prefill and decode, where decode means generating the reply.
Why reasoning models delay the first answer word
A reasoning model writes thinking text before its answer, and that text counts toward output tokens. In our test, GLM-5.2 with reasoning on sent its first token after 0.26 s. That token was thinking. The first answer word came after 0.57 s, following 84 reasoning tokens. GLM-5.2 Instant answered the same question in 0.24 s.
In the status table, GLM-5.2 and GLM-5.2 Instant look alike, at 471 and 478 ms. The probe stops its clock at the first thinking token, so the reasoning delay never shows there. If your interface shows only the answer, time the first answer token yourself.
Our API gives you two switches. Setting reasoning_effort to "none" turns reasoning off on every model that supports switching. The -instant model IDs are the same model at the same pricing, answering without a reasoning phase. Some models always reason, and the serverless documentation lists which. If a reasoning model returns a blank reply, our guide on empty responses from reasoning models covers the usual cause.
Queueing and cold starts: TTFT under load
Queueing is the part of TTFT a single test call cannot show. A replica is one running copy of the model server. It works on a limited group of requests at once, called a batch. When more requests are in flight than all replicas can batch, some wait in a queue and TTFT rises.
A scheduler must start new requests quickly while keeping the token rate steady for running ones. Schedulers that always put running requests first give them GPU time in every step, so new requests wait longer for their prefill. A research scheduler called FairBatching shares GPU time more evenly. It cut the TTFT of the slowest requests by up to 2.29x and kept the stream speed on target.
Single calls vary even without a visible queue. One of our five cache-hit calls took 2.99 s against a median of 0.52 s. Judge TTFT on medians and high percentiles, never on one call. Under heavy load TTFT can spike. Some streaming frameworks abort a stream when no token arrives for a set time, so raise that timeout as well as the request timeout.
A cold start is the first request after a model has to be loaded into GPU memory. NVIDIA notes that loading delays like this hurt user experience and scalability. In NVIDIA's test, its open-source loader, Run:ai Model Streamer, loaded a 15 GB model in 7.53 seconds on fast SSD storage.
Our probe measures warm models only. A dedicated endpoint runs a model on GPUs reserved for you. With no requests for 1 hour, it shuts down all its replicas and pauses. The first request after a pause has higher latency while the replicas start, as our dedicated endpoint documentation states. Our article on serverless cold starts goes deeper.
How to measure and lower your TTFT
Measure TTFT in your own client with your own prompt, because that is where your users wait. Stream the request: on our API, stream set to true is the recommended mode for anything user-facing and lowers time to first token. The script below times the first chunk of any kind and the first answer text separately.
import os, time
from openai import OpenAI
client = OpenAI(base_url="https://api.lyceum.technology/openai/v1",
api_key=os.environ["LYCEUM_API_KEY"])
start = time.perf_counter()
first_any = first_answer = None
stream = client.chat.completions.create(
model="z-ai/glm-5.2",
messages=[{"role": "user", "content": "What is 17 times 23? Answer with the number only."}],
stream=True,
)
for chunk in stream:
if not chunk.choices:
continue
delta = chunk.choices[0].delta
thinking = getattr(delta, "reasoning_content", None) or getattr(delta, "reasoning", None)
now = time.perf_counter() - start
if first_any is None and (thinking or delta.content):
first_any = now
if first_answer is None and delta.content and delta.content.strip():
first_answer = now
print(f"TTFT {first_any:.2f} s, first answer word {first_answer:.2f} s")Run it a few dozen times and read the median. A self-hosted vLLM server lets you split the sum further. Its metrics include histograms of queue time, prefill time and time to first token, plus prefix cache hits counted in tokens.
Then pull the levers from largest to smallest:
- Put the stable part of the prompt first, so repeated requests hit the cache.
- Cut prompt tokens the model does not need, because every uncached token adds prefill.
- Switch reasoning off, or use an -instant model, where the reply needs no thinking.
- Stream every user-facing request.
- Only then compare models on measured TTFT for your prompt.
Agents call the model many times per task, so each saving repeats in latency in tool-calling loops. For changes on the serving side, see our guide to reducing inference latency on GPUs.
If your first answer word arrives within about a second on your real prompt, the pause is not your bottleneck. If it does not, time your prompt against our serverless API with the script above, once with a new prefix and once cached.