API Guides
Comprehensive guides for integrating the DeepSeek API into your applications.
🧠💬✏️📝📋🔧⚡🔄
Thinking Mode
Enable step-by-step reasoning for complex tasks
Multi-round Conversation
Build multi-turn conversations with context
Chat Prefix Completion (Beta)
Continue from a partial assistant response prefix
FIM Completion (Beta)
Fill-in-the-middle for code generation
JSON Output
Constrain output to valid JSON format
Tool Calls
Enable the model to call external tools and APIs
Context Caching
Cache long contexts to dramatically reduce costs
Anthropic API
Anthropic-compatible endpoint for seamless migration