Limits
Context and output limits for each model, and what happens when you are rate limited.
1 min readEdit this page
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 lists them.
| Model id | Context | Max output |
|---|---|---|
deepseek-v4.1-flash | 1M tokens | 384K tokens |
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.
Request size and timeouts
How is this guide?