Text modelsText model overview
Text model overview
Available models
| Model ID | Model version | Context window (tokens) | Max output (tokens) | Streaming | Reasoning |
|---|---|---|---|---|---|
deepseek-v4.1-flash | 1017 | 1,000,000 | 393,216 | Supported | Supported |
- Send the model ID in the
modelfield of your request, without the version number. - Models that support reasoning return it in
message.reasoning_content; these tokens are billed at the output price. - The
max_tokensyou can set per request cannot exceed the max output and is also subject to a platform per-request limit. Exceeding it returns400, and the error message gives the maximum allowed value. - Input, cached input and output tokens are billed separately; see Billing and credits.
Endpoints
Text models are compatible with the OpenAI Chat Completions API. They return results directly or as a stream and do not create jobs.
| Endpoint | Purpose |
|---|---|
| POST /v1/chat/completions | Chat completions with streaming |
| GET /v1/models | Return the available models and current prices in the OpenAI model list format, for programmatic use |
- Requesting a model ID that does not exist returns
404 model_not_found. - If text models are not enabled, requests return
503 feature_disabled. - Text model endpoints accept API Keys only; call them from your server.
See the text model guide for SDK setup, streaming, supported parameters, billing and error handling.