Skip to main content
Factory function to create a DeepSeek model instance. DeepSeek provides powerful AI models through an OpenAI-compatible API.

Signature

Parameters

str
required
The DeepSeek model identifier (e.g., “deepseek-chat”, “deepseek-reasoner”).
str
DeepSeek API key. Falls back to DEEPSEEK_API_KEY environment variable.

Returns

A LanguageModel instance configured for DeepSeek.

Environment

Requires DEEPSEEK_API_KEY environment variable.

Available Models

Example

Provider Options