Quick Start
Get DeepSeek working in 3 steps:Tip: You can also set
provider="@deepseek" in Portkey() and use just model="deepseek-chat" in the request.Add Provider in Model Catalog
- Go to Model Catalog โ Add Provider
- Select DeepSeek
- Choose existing credentials or create new by entering your DeepSeek API key
- Name your provider (e.g.,
deepseek-prod)
Complete Setup Guide โ
See all setup options, code examples, and detailed instructions
Advanced Features
Multi-round Conversations
DeepSeek supports multi-turn conversations where context is maintained across messages:JSON Output
Force structured JSON responses from DeepSeek models:Tool Calling
DeepSeek supports tool calling (function calling) on thedeepseek-chat model. Pass tools and optionally tool_choice in your request:
Reasoning (deepseek-reasoner)
Thedeepseek-reasoner model supports chain-of-thought reasoning. Use the reasoning_effort parameter to control reasoning behavior:
reasoning_content is included in the delta for deepseek-reasoner responses.
Managing DeepSeek Prompts
Manage all prompt templates to DeepSeek in the Prompt Library. All current DeepSeek models are supported, and you can easily test different prompts. Use theportkey.prompts.completions.create interface to use the prompt in an application.
Supported Endpoints
- Chat Completions
- Streaming Chat Completions
Next Steps
Add Metadata
Add metadata to your DeepSeek requests
Gateway Configs
Add gateway configs to your DeepSeek requests
Tracing
Trace your DeepSeek requests
Fallbacks
Setup fallback from OpenAI to DeepSeek
SDK Reference
Complete Portkey SDK documentation

