# Limits (/docs/api/limits)

> For AI agents, the [documentation index](https://bitrouter.ai/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

## Model limits \[#model-limits]

Each model has a maximum context window and maximum output length. `GET /v1/models` returns the current
values, and each model's page in [Models](https://bitrouter.ai/models) lists them.

| Model id              | Context   | Max output  |
| --------------------- | --------- | ----------- |
| `deepseek-v4.1-flash` | 1M tokens | 384K tokens |

## Rate limits \[#rate-limits]

When a request is rate limited you get `429`. `error.code` is `rate_limit_exceeded` when the limit is ours,
and `upstream_rate_limited` when every provider that could serve the model was rate limited. `Retry-After`
is set when the wait is known. See [Errors](https://bitrouter.ai/docs/api/errors).

## Request size and timeouts \[#request-size-and-timeouts]

{/\* Draft: fill in the maximum request body size and request timeouts once confirmed. \*/}