DeepSeek API
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ Japanese
  • πŸ‡°πŸ‡· Korea
  • πŸ‡΅πŸ‡Ή Portuguese
  1. Start quickly
DeepSeek API
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ Japanese
  • πŸ‡°πŸ‡· Korea
  • πŸ‡΅πŸ‡Ή Portuguese
  • Start quickly
    • Your First API Call
    • Models & Pricing
    • The Temperature Parameter
    • Token & Token Usage
    • Rate Limit
    • Error Codes
  • API Reference
    • Introduction
    • Create Chat Completion
      POST
    • Create FIM Completion (Beta)
      POST
    • Lists Models
      GET
    • Get User Balance
      GET
  • API Guides
    • Reasoning Model (deepseek-reasoner)
    • Multiple rounds of conversations
    • Chat Prefix Completion (Beta)
    • FIM Completion (Beta)
    • JSON Output
    • Function Calling
    • Context Caching
  • FAQ
    • FAQ
  1. Start quickly

Error Codes

When calling DeepSeek API, you may encounter errors. Here list the causes and solutions.
CODEDESCRIPTION
400 - Invalid FormatCause: Invalid request body format. Solution: Please modify your request body according to the hints in the error message. For more API format details, please refer to DeepSeek API Docs.
401 - Authentication FailsCause: Authentication fails due to the wrong API key. Solution: Please check your API key. If you don't have one, please create an API key first.
402 - Insufficient BalanceCause: You have run out of balance. Solution: Please check your account's balance, and go to the Top up page to add funds.
422 - Invalid ParametersCause: Your request contains invalid parameters. Solution: Please modify your request parameters according to the hints in the error message. For more API format details, please refer to DeepSeek API Docs.
429 - Rate Limit ReachedCause: You are sending requests too quickly. Solution: Please pace your requests reasonably. We also advise users to temporarily switch to the APIs of alternative LLM service providers, like OpenAI.
500 - Server ErrorCause: Our server encounters an issue. Solution: Please retry your request after a brief wait and contact us if the issue persists.
503 - Server OverloadedCause: The server is overloaded due to high traffic. Solution: Please retry your request after a brief wait.
Previous
Rate Limit
Next
Introduction
Built with