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

MethodEndpointDescription
POST/v1/chat/completionsChat Completions
POST/v1/completionsFIM Completions
GET/v1/modelsList Models
GET/v1/user/balanceGet Balance

Rate Limits

⚠️ Default Rate Limits

  • 60 requests per minute (RPM)
  • 300,000 tokens per minute (TPM)
  • Contact support for higher limits