# API Latency

- **Canonical URL:** https://getaimath.com/dictionary/api-latency/
- **Topics:** [AI APIs, Protocols & Integration](https://getaimath.com/dictionary/category/ai-apis-protocols-and-integration/)
- **Last updated:** 2026-11-25

## 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.

![APIs, JSON & MCP: The Drive-Thru Window & Universal Plug — Simple cartoon showing an App handing a neat checklist order slip (JSON) through a drive-thru window (API) to the AI, while a universal USB-C plug (MCP) connects the AI to Google Drive, Slack, and Email.](https://getaimath.com/diagrams/ai-apis-protocols-and-integration.png)
*Napkin Diagram (AI APIs, Protocols & Integration): An API is the drive-thru window apps use to talk to AI; JSON keeps replies neat; MCP is the universal plug for tools.*

## What is an example of API Latency?

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.

## Related Concepts

- [Authorization](https://getaimath.com/dictionary/authorization/): Authorization is deciding what an authenticated user or app is allowed to do.
- [API Throughput](https://getaimath.com/dictionary/api-throughput/): API throughput is how many requests or tokens an API can handle over time for your account or app.
- [Authentication](https://getaimath.com/dictionary/authentication/): Authentication is proving who you are to a system, like logging in.
- [Token Limits](https://getaimath.com/dictionary/token-limits/): Token limits are caps on how many tokens can be used, such as the maximum input size, maximum output length, or tokens per minute.
- [Response Payload](https://getaimath.com/dictionary/response-payload/): A response payload is the data an API sends back, like the model's answer and information about token usage.
- [Context Limits](https://getaimath.com/dictionary/context-limits/): Context limits are the maximum amount of text, in tokens, a model can take in for one request, including the conversation so far.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/api-latency/)
