# Context Limits

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

## What is Context Limits?

**In one sentence:** Context limits are the maximum amount of text, in tokens, a model can take in for one request, including the conversation so far.

They come from the model's context window. Long chats and large documents may need trimming or summarizing to fit.

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

Trying to send a 300,000-token book to a model with a 200,000-token limit will fail.

## Why does Context Limits matter?

Context limits shape how you design prompts and long conversations.

## Related Concepts

- [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.
- [Provider](https://getaimath.com/dictionary/provider/): A provider is a company or service that offers AI models for use, usually through an API.
- [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.
- [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.
- [API Latency](https://getaimath.com/dictionary/api-latency/): API latency is the time between sending a request to an API and getting a response.
- [OpenAI-Compatible API](https://getaimath.com/dictionary/openai-compatible-api/): An OpenAI-compatible API is an API that copies the request and response format of OpenAI's API, so the same code works with different providers.

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