DeepSeek / 深度求索
DeepSeek 系列模型 API
DeepSeek 系列模型支持推理模式和流式输出,可通过 OpenAI Chat Completions 和 Anthropic Messages 调用。百炼 Responses 端点当前不支持 DeepSeek,因此 NexusFlow 不宣告该协议。
POST
https://nexusflow.hk/v1/chat/completions这是默认示例端点。多协议调用方式见 多协议支持、 Anthropic Messages。
模型列表
请求示例
curl https://nexusflow.hk/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [
{"role": "user", "content": "用 Python 写一个快速排序"}
],
"stream": true
}'三协议 cURL 示例
DeepSeek 文本类模型共享同一套 NexusFlow 模型 ID、API Key、余额、用量和扣费记录。
推理模式说明
DeepSeek R1 是仅思考模型,传
enable_thinking=false 也仍会返回 reasoning_content。 DeepSeek V3.2 和 V4 Pro 属于线上已验证的混合思考模型,可用 enable_thinking 开关控制。// 推理模式响应中,delta 包含 reasoning_content 字段
{
"choices": [{
"delta": {
"reasoning_content": "让我一步步分析这个问题...",
"content": ""
}
}]
}
// 思考完成后,切换到正式回答
{
"choices": [{
"delta": {
"reasoning_content": "",
"content": "根据分析,答案是..."
}
}]
}Chat Completions
查看完整对话接口文档
错误码参考
查看错误处理和重试策略
完整定价
查看所有模型价格