Latency is how long you wait. In AI, it is the time between sending a prompt and receiving what the model produces. Low latency feels instant. High latency feels like staring at a spinner.
Two numbers that matter
Most AI products report latency in two parts:
- Time to first token. How long before the first piece of the answer appears. This is what makes a chat feel responsive.
- Total time. How long until the answer is finished. This depends on the length of the reply and on tokens per second, the speed at which the model writes.
A model can start fast and finish slowly, or the reverse. Which one matters depends on the job. A chat window cares about the first token. A background task that processes a thousand documents cares about total time and cost.
What drives it
Several things add delay:
- Model size. Bigger models do more work per token.
- Input length. A long prompt must be processed before the first word appears, in the stage called prefill.
- Reasoning. Reasoning models spend extra tokens thinking, which adds seconds or minutes.
- Load and distance. A busy service or a far-away data center is slower.
- Tool calls. Each step an agent takes adds a round trip.
How people cut it
Teams shorten prompts, reuse repeated context with prompt caching, pick a smaller model for easy tasks, stream the reply so words appear as they are generated, and use techniques such as speculative decoding. Lowering reasoning effort also trades some depth for speed.
Latency, throughput and cost
Latency is about one request. Throughput is how many requests a system handles at once. Optimizing for one can hurt the other, and faster service often costs more. For a voice assistant, latency decides whether the product works at all, because a pause of a couple of seconds breaks a conversation. See voice agents for an example.
Measure it yourself
Published speeds are averages under ideal conditions. Test with your real prompts, at your usual times of day, and record both time to first token and total time. Then choose the model and settings that meet the speed you need at a price you accept.