Why AI answers take time: first-token delay and tokens per second
AI response time is the wait for the first token plus the time to write the rest. Here is what slows answers down and three ways to make AI feel fast.
Some AI answers start in a blink. Others make you stare at a spinner. The difference isn't random: it comes from tokens again. This is part 6 of the series, after tokens, pricing, the context window, rate limits and usage limits.
Two numbers decide AI response time
- Time to first token (TTFT): how long until the first piece of the answer appears. Anthropic defines it as the time between sending the prompt and receiving the first token of the response.
- Tokens per second: how fast the rest of the answer arrives once it starts.
Total time is roughly the first one plus the answer length divided by the second. The model writes one token at a time, so a 2,000-token answer takes much longer than a 200-token one on the same model.
Why output length matters most
Here's a simple illustration, not a measurement of any one model. If a model starts in 1 second and then writes 50 tokens per second:
- A 200-token answer takes about 1 + 4 = 5 seconds.
- A 2,000-token answer takes about 1 + 40 = 41 seconds.
Thinking adds to this. Thinking tokens are written before the visible answer (see part 2), so a model that thinks for 2,000 tokens can make you wait a long time before the first word you see. And as part 1 showed, the same message in Bangla can need several times more tokens than in English, which means more time as well.
What makes AI faster
Anthropic's guide to reducing latency names three main levers:
- Choose the right model. Smaller, faster models for time-sensitive work. The guide uses Claude Haiku 5.5 at low effort as its example for fast apps.
- Use fewer tokens. Shorter prompts and capped outputs process faster.
max_tokenssets a hard ceiling, though an answer that hits it can stop mid-sentence. - Stream the answer. Show text as it's written instead of waiting for the end.
The same guide gives advice I agree with: make the prompt work well first, then optimise for speed. Cutting too early can hide what the best answer looks like.
Streaming: the cheapest speed-up
Streaming doesn't make the model faster. It makes your app feel faster. With Claude, you set "stream": true and the response arrives piece by piece as server-sent events. The user starts reading after the first token instead of waiting for the last one. For any answer longer than a sentence or two, I stream.
When streaming isn't possible, for example when you need complete JSON before you can save it, show a clear "working" state or run the job in the background. The AI helper on this site asks for JSON, so it waits for the full answer and then shows it next to the original text.
How to measure response time yourself
You don't need special tools. With curl and a streaming request, two built-in timers give you a good picture:
curl -s -o /dev/null https://api.anthropic.com/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model":"claude-haiku-5-5","max_tokens":300,"stream":true,
"messages":[{"role":"user","content":"Explain tokens in 3 sentences."}]}' \
-w "first byte: %{time_starttransfer}s total: %{time_total}s\n"The first-byte time is close to time to first token, and the total shows the whole answer. Run it a few times with short and long answers, and in English and your users' language. The numbers will tell you where your time goes.
Quick summary
- Response time is the wait for the first token plus the time to write the rest.
- Answers are written one token at a time, so long answers and long thinking take longer.
- Faster model, fewer tokens and streaming are the three main levers.
- Streaming doesn't speed up the model, but it makes your app feel much faster.
- Measure with real prompts, in your users' language.
Last part next: how I put all of this together in a Laravel SaaS, with real code.
References
- Reducing latency, Claude Platform Docs, Anthropic, accessed 24 November 2026.
- Streaming messages, Claude Platform Docs, Anthropic, accessed 24 November 2026.
- curl man page (--write-out variables), curl project.
Questions people ask
What is time to first token?
The time between sending a prompt and receiving the first token of the answer.
Why do long AI answers take longer?
Models write one token at a time, so total time grows with answer length, and thinking tokens are written before the visible answer.
How can I make AI responses faster?
Use a faster model where you can, send and request fewer tokens, and stream the answer so users read while it is written.
Does streaming make the model faster?
No. It makes the app feel faster, because people start reading after the first token instead of waiting for the last.