DeepSeek API Documentation: Getting Started with Your First API Call
By
impact_sy
A bagel you'd recommend to a friend without hedging.
Summary
This is a technical documentation page from DeepSeek explaining how to make a first API call. It details that the DeepSeek API is compatible with OpenAI/Anthropic formats, allowing users to leverage existing SDKs and software. It provides configuration parameters including base URLs for OpenAI and Anthropic compatibility, instructions for obtaining an API key, and lists available models (deepseek-v4-flash, deepseek-v4-pro, with deprecation notices for deepseek-chat and deepseek-reasoner models effective 2026/07/24).
Key quotes
· 3 pulledThe DeepSeek API uses an API format compatible with OpenAI/Anthropic.
By modifying the configuration, you can use the OpenAI/Anthropic SDK or softwares compatible with the OpenAI/Anthropic API to access the DeepSeek API.
The model names deepseek-chat and deepseek-reasoner will be deprecated on 2026/07/24.
You might also wanna read
DeepSeek-V3.1: Open-Source Language Model with Hybrid Inference for Advanced Reasoning and Coding
DeepSeek-V3.1 is an open-source large language model that introduces hybrid inference with both 'Think' and 'Non-Think' modes, optimized for

DeepSeek previews V4 AI model, claims competitiveness with US rivals and Huawei compatibility
Chinese AI company DeepSeek has released a preview of its next-generation AI model V4, claiming it can compete with leading closed-source sy
