开通并配置 DeepSeek API
最后核对:2026-09-20。 DeepSeek 的模型 ID、峰谷价格和旧模型映射变化较快,请以本文链接的官方页面为准。
DeepSeek 网页聊天和 DeepSeek API 余额不是一回事。Agent 需要使用 API 时,应在 DeepSeek 开放平台单独充值并创建 API Key。
1. 注册 DeepSeek 开放平台
Section titled “1. 注册 DeepSeek 开放平台”打开 DeepSeek Platform 注册页,根据页面提供的方式注册并完成验证。平台会按地区显示不同入口,可能包括中国大陆手机号或海外邮箱/第三方登录。
只从 platform.deepseek.com 进入,不要向代注册服务提供验证码或账号密码。
2. 充值 API 余额
Section titled “2. 充值 API 余额”登录后打开 充值页面,根据页面提示购买 API 余额。
充值和网页聊天服务分开。完成后可以在 用量页面 查看实际消耗。
3. 创建 API Key
Section titled “3. 创建 API Key”- 打开 API Keys。
- 选择创建新 Key。
- 使用便于识别的名称,例如
EasyAI-Windows。 - 立即保存完整 Key。
不要把 Key 发到群聊、截图或公开仓库。怀疑泄露时,删除旧 Key 并创建新 Key。
4. 在 EasyAI 中怎么填
Section titled “4. 在 EasyAI 中怎么填”打开对应 Agent 的 配置 API → 添加服务商:
| 字段 | 推荐值 |
|---|---|
| 服务商名称 | DeepSeek |
| API 类型 | OpenAI Responses |
| Base URL | https://api.deepseek.com |
| API Key | DeepSeek Platform 创建的 Key |
| 默认模型 | deepseek-flash 或 deepseek-v4-pro |
| 启用此服务商 | 开启 |
如果所选工具明确不支持 Responses,再改用 OpenAI Chat Completions。不要把 /responses 或 /chat/completions 填入 Base URL,这些是请求路径,不是基础地址。
保存并选择 配置生效,再点击 重新检测。看到“可访问”后启动新会话。
Claude 兼容方式
Section titled “Claude 兼容方式”如果目标工具明确要求 Anthropic Messages,可以单独新增一个配置:
| 字段 | 填写内容 |
|---|---|
| API 类型 | Anthropic Messages |
| Base URL | https://api.deepseek.com/anthropic |
| API Key | 同一个 DeepSeek API Key |
| 默认模型 | deepseek-flash 或 deepseek-v4-pro |
当前模型怎么选
Section titled “当前模型怎么选”deepseek-flash:实际版本为 DeepSeek-V4.1-Flash,适合日常使用和成本敏感任务。deepseek-v4-pro:实际版本为 DeepSeek-V4-Pro-0813,适合能力要求更高的任务。
两者当前都支持思考和非思考模式。上下文、输出限制和旧模型别名请查看 官方 API 文档 与 价格页,不要长期沿用旧模型名。
当前价格参考
Section titled “当前价格参考”以下为 2026-09-20 官方页面的每百万 Token 美元价格,只用于理解计费结构:
| 模型 | 缓存命中 | 缓存未命中 | 输出 |
|---|---|---|---|
| Flash 非高峰 / 高峰 | 0.003 / 0.006 | 0.15 / 0.30 | 0.60 / 1.20 |
| V4 Pro 非高峰 / 高峰 | 0.022 / 0.044 | 0.66 / 1.32 | 1.98 / 3.96 |
峰谷时间和法定节假日规则可能变化,实际扣费以 DeepSeek 官方价格页 为准。
401:Key 错误、复制不完整或已失效。重新创建并替换 Key。
402:API 余额不足。打开充值与用量页面核对余额。
400 / 422:API 类型、Base URL、模型名或请求格式不匹配。先恢复本文的推荐字段。
429:请求或 Token 频率达到限制。降低频率后重试。
500 / 503:服务暂时故障或繁忙。稍后重试,并查看官方状态信息。
完整说明见 DeepSeek 错误码。