Learn AI Math

API Latency

What is API Latency?

In one sentence: API latency is the time between sending a request to an API and getting a response.

For AI APIs, it includes network time, queuing, prefill and generation. Streaming helps by showing the first tokens sooner.

What does API Latency look like?

An API call that takes 1.2 seconds to return a short answer has 1.2 seconds of latency.

Why does API Latency matter?

Low latency makes AI features feel fast.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.