API Reference
Complete technical reference for all DeepSeek API endpoints, parameters, and response formats.
Base URL
https://api.deepseek.com
Authentication
All API requests require an API key passed via the Authorization header as a Bearer token.
Authorization: Bearer <your-api-key>
Available Models
DeepSeek offers multiple models optimized for different use cases.
C
deepseek-chat
General-purpose conversational model with strong reasoning capabilities.
R
deepseek-reasoner
Advanced reasoning model with chain-of-thought capabilities for complex tasks.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/chat/completions | Chat Completions |
| POST | /v1/completions | FIM Completions |
| GET | /v1/models | List Models |
| GET | /v1/user/balance | Get Balance |
Rate Limits
⚠️ Default Rate Limits
- 60 requests per minute (RPM)
- 300,000 tokens per minute (TPM)
- Contact support for higher limits