Text model overview

Available models

Model IDModel versionContext window (tokens)Max output (tokens)StreamingReasoning
deepseek-v4.1-flash10171,000,000393,216SupportedSupported
  • Send the model ID in the model field 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_tokens you can set per request cannot exceed the max output and is also subject to a platform per-request limit. Exceeding it returns 400, 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.

EndpointPurpose
POST /v1/chat/completionsChat completions with streaming
GET /v1/modelsReturn 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.

On this page