Your First API Call
PARAM | VALUE |
---|---|
base_url * | https://api.deepseek.com |
api_key | apply for an API key |
https://api.deepseek.com/v1
as the base_url
. But note that the v1
here has NO relationship with the model's version.deepseek-chat
model has been upgraded to DeepSeek-V3. The API remains unchanged. You can invoke DeepSeek-V3 by specifying model='deepseek-chat'
.deepseek-reasoner
is the latest reasoning model, DeepSeek-R1, released by DeepSeek. You can invoke DeepSeek-R1 by specifying model='deepseek-reasoner'
.Invoke The Chat API
stream
parameter to true
to get stream response.curl
Modified atΒ 2025-02-06 09:29:26