Python
Points to the OpenAI SDKNot a DeepSeek SDK. For Python, DeepSeek's docs point you to the OpenAI SDK. Base URL and limits.
- Package
openai- Install
- Install
pip3 install openai - Repo
- github.com/openai/openai-python
- Docs
- api-docs.deepseek.com
From the docs
The 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. ... # Please install OpenAI SDK first: `pip3 install openai`