问题现象
*
📷
接入 Agent 工具
DeepSeek API 已接入多种主流 AI Agent 与编程助手工具。如果你使用 Claude Code、GitHub Copilot、OpenCode 等工具,可以直接将 DeepSeek 作为后端模型,无需编写代码即可开始使用。
详见 Agent 工具接入指南。
调用对话 API
在创建 API key 之后,你可以使用以下样例脚本,通过 OpenAI API 格式来访问 DeepSeek 模型。样例为非流式输出,您可以将 stream 设置为 true 来使用流式输出。
Anthropic API 格式的访问样例,请参考Anthropic API。
curl
python
nodejs
curl https://api.deepseek.com/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \
-d '{
"model": "deepseek-v4-pro",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
"thinking": {"type": "enabled"},
"reasoning_effort": "high",
"stream": false
}'
下一页
模型 & 价格
接入 Agent 工具
调用对话 API
微信公众号
WeChat QRcode
社区
邮箱
Discord
Twitter
更多
GitHub
Copyright © 2025 DeepSeek, Inc.
复问题现步骤
*
接入 Agent 工具 DeepSeek API 已接入多种主流 AI Agent 与编程助手工具。如果你使用 Claude Code、GitHub Copilot、OpenCode 等工具,可以直接将 DeepSeek 作为后端模型,无需编写代码即可开始使用。 详见 Agent 工具接入指南。 调用对话 API 在创建 API key 之后,你可以使用以下样例脚本,通过 OpenAI API 格式来访问 DeepSeek 模型。样例为非流式输出,您可以将 stream 设置为 true 来使用流式输出。 Anthropic API 格式的访问样例,请参考Anthropic API。 curl python nodejs curl https://api.deepseek.com/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \ -d '{ "model": "deepseek-v4-pro", "messages": [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} ], "thinking": {"type": "enabled"}, "reasoning_effort": "high", "stream": false }' 下一页 模型 & 价格 接入 Agent 工具 调用对话 API 微信公众号 WeChat QRcode 社区 邮箱 Discord Twitter 更多 GitHub Copyright © 2025 DeepSeek, Inc.
处理思路
*
接入 Agent 工具
DeepSeek API 已接入多种主流 AI Agent 与编程助手工具。如果你使用 Claude Code、GitHub Copilot、OpenCode 等工具,可以直接将 DeepSeek 作为后端模型,无需编写代码即可开始使用。
详见 Agent 工具接入指南。
调用对话 API
在创建 API key 之后,你可以使用以下样例脚本,通过 OpenAI API 格式来访问 DeepSeek 模型。样例为非流式输出,您可以将 stream 设置为 true 来使用流式输出。
Anthropic API 格式的访问样例,请参考Anthropic API。
curl
python
nodejs
curl https://api.deepseek.com/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \
-d '{
"model": "deepseek-v4-pro",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
"thinking": {"type": "enabled"},
"reasoning_effort": "high",
"stream": false
}'
下一页
模型 & 价格
接入 Agent 工具
调用对话 API
微信公众号
WeChat QRcode
社区
邮箱
Discord
Twitter
更多
GitHub
Copyright © 2025 DeepSeek, Inc.
问题槽点
*
接入 Agent 工具
DeepSeek API 已接入多种主流 AI Agent 与编程助手工具。如果你使用 Claude Code、GitHub Copilot、OpenCode 等工具,可以直接将 DeepSeek 作为后端模型,无需编写代码即可开始使用。
详见 Agent 工具接入指南。
调用对话 API
在创建 API key 之后,你可以使用以下样例脚本,通过 OpenAI API 格式来访问 DeepSeek 模型。样例为非流式输出,您可以将 stream 设置为 true 来使用流式输出。
Anthropic API 格式的访问样例,请参考Anthropic API。
curl
python
nodejs
curl https://api.deepseek.com/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \
-d '{
"model": "deepseek-v4-pro",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
"thinking": {"type": "enabled"},
"reasoning_effort": "high",
"stream": false
}'
下一页
模型 & 价格
接入 Agent 工具
调用对话 API
微信公众号
WeChat QRcode
社区
邮箱
Discord
Twitter
更多
GitHub
Copyright © 2025 DeepSeek, Inc.
其他建议
*
接入 Agent 工具
DeepSeek API 已接入多种主流 AI Agent 与编程助手工具。如果你使用 Claude Code、GitHub Copilot、OpenCode 等工具,可以直接将 DeepSeek 作为后端模型,无需编写代码即可开始使用。
详见 Agent 工具接入指南。
调用对话 API
在创建 API key 之后,你可以使用以下样例脚本,通过 OpenAI API 格式来访问 DeepSeek 模型。样例为非流式输出,您可以将 stream 设置为 true 来使用流式输出。
Anthropic API 格式的访问样例,请参考Anthropic API。
curl
python
nodejs
curl https://api.deepseek.com/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \
-d '{
"model": "deepseek-v4-pro",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
"thinking": {"type": "enabled"},
"reasoning_effort": "high",
"stream": false
}'
下一页
模型 & 价格
接入 Agent 工具
调用对话 API
微信公众号
WeChat QRcode
社区
邮箱
Discord
Twitter
更多
GitHub
Copyright © 2025 DeepSeek, Inc.