← Back to API Guides
Anthropic API
DeepSeek provides an Anthropic-compatible API endpoint for seamless migration from Claude.
Base URL
Use the Anthropic-compatible endpoint:
https://api.deepseek.com/anthropic
This endpoint supports the Anthropic Messages API format, making it easy to switch from Claude to DeepSeek with minimal code changes.
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic export ANTHROPIC_AUTH_TOKEN=<your DeepSeek API Key>
Supported Features
• Messages API format
• System prompts
• Multi-turn conversations
• Streaming responses
• Tool use / function calling
• Thinking mode with extended thinking