Setup
Basic Usage
Parameters
Model identifier. Common values:
deepseek-chat, deepseek-reasoner.DeepSeek API key. Defaults to the
DEEPSEEK_API_KEY environment variable.DeepSeek API base URL.
Sampling temperature.
Maximum output tokens.
Reasoning Support
DeepSeek models can produce reasoning content alongside their response:Streaming
Async Usage
DeepSeek does not support native structured outputs (
supports_native_structured_outputs = False). Structured output requests are handled via prompt engineering with JSON Schema instructions.