本文档由 AiQiji 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
curl --location --request POST 'https://api.deepseek.com/v1/chat/completions' \
--header 'Authorization: Bearer {{DeepSeek_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "deepseek-chat",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
],
"stream": false
}'{
"error": {
"message": "string",
"type": "string",
"param": null,
"code": "string"
}
}