快速入门
模型映射
| API 模型名 | DeepSeek 模型类型 |
| deepseek-v4-flash | default(默认/免费) |
| deepseek-v4-pro | expert(深度思考/付费) |
| deepseek-v4-vision | vision(视觉/图片理解) |
OpenAI 格式 - 非流式请求
curl http://localhost:3000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "deepseek-v4-flash",
"messages": [{"role":"user","content":"你好"}]
}'
OpenAI 格式 - 流式请求(SSE)
curl http://localhost:3000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "deepseek-v4-pro",
"stream": true,
"messages": [{"role":"user","content":"解释量子计算"}]
}'
DeepSeek 原生格式
curl http://localhost:3000/api/v0/chat/completion \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model_type": "default",
"stream": true,
"chat_session_id": "SESSION_ID",
"prompt": "你好"
}'
查看可用模型
curl http://localhost:3000/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"