# Token Limits

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

## What is Token Limits?

**In one sentence:** Token limits are caps on how many tokens can be used, such as the maximum input size, maximum output length, or tokens per minute.

If you exceed them, the request may fail or the output may be cut off. Developers set "max tokens" to control answer length and cost.

![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 Token Limits?

Setting max_tokens to 500 means the model stops after about 500 tokens.

## Why does Token Limits matter?

Understanding token limits prevents cut-off answers and unexpected errors.

## Related Concepts

- [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.
- [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.
- [API Latency](https://getaimath.com/dictionary/api-latency/): API latency is the time between sending a request to an API and getting a response.
- [Provider](https://getaimath.com/dictionary/provider/): A provider is a company or service that offers AI models for use, usually through an API.
- [Authorization](https://getaimath.com/dictionary/authorization/): Authorization is deciding what an authenticated user or app is allowed to do.
- [Model Endpoint](https://getaimath.com/dictionary/model-endpoint/): A model endpoint is the specific API address or deployment where a particular model can be called.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/token-limits/)
