> ## Documentation Index
> Fetch the complete documentation index at: https://docs.antarah.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# context_length_exceeded

> Context length exceeded (HTTP 400)

| | |
| - | - |
| HTTP status | `400` |
| OpenAI `type` | `invalid_request_error` |
| Anthropic `type` | `invalid_request_error` |
| Retry | No. Error responses carry `x-should-retry: false`. |

## What it means

The estimated input plus `max_tokens` is larger than the model's context window.

## What to do

Shorten the input or lower `max_tokens`. Each model's `context_window` is in `GET /v1/models`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.