For AI agents, the documentation index lists all pages. Append .md to a documentation URL for Markdown, or request text/markdown.

Skip to Content
spare inference

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 idContextMax output
deepseek-v4.1-flash1M tokens384K 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?