2026-08-17 起,DeepSeek 官方 API 对 deepseek-v4-flashdeepseek-v4-pro 启用峰谷计价,基础单价同步上调。不过 B.AI 对 deepseek-v4-flash 限时免费使用,覆盖 Web Chat 与 OpenAI 兼容 API。

DeepSeek V4 官方价格策略

高峰时段:09:00–12:00、14:00–18:00,空闲时段为上述时段外,价格减半。

模型 缓存命中输入 缓存未命中输入 输出
V4-Flash 高峰 0.10 3.0 9.0
V4-Flash 空闲 0.05 1.5 4.5
V4-Pro 高峰 0.30 9.0 27.0
V4-Pro 空闲 0.15 4.5 13.5

对照 5 月的价格,高峰缓存命中输入涨幅 1100%,输出涨幅 350%,对于“勤俭持家”的你,估计接受不了,所以赶紧薅 B.AI 的羊毛吧。

B.AI 是什么

B.AI 是第三方聚合网关,不是 DeepSeek 官方渠道。其 2026-08-17 公告将 deepseek-v4-flash 调整为免费,不过你得需要点魔法才能访问。

限时免费
限时免费

技术规格对齐官方开源版:

  • 284B 总参 / 13B 激活 MoE,MIT License
  • 1M 上下文,384K 最大输出
  • 支持 tool_calls、JSON output、非思考/思考切换

免费为"限时",平台未给结束时间,反正可以薅羊毛就对了,Google 邮箱可直接登录,然后创建 key 即可。

B.AI OpenAI 兼容接入

  • Base URLhttps://api.b.ai/v1
  • AuthAuthorization: Bearer sk-xxx
  • 模型名deepseek-v4-flash

cURL

curl https://api.b.ai/v1/chat/completions \
-H "Authorization: Bearer $BAI_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"ping"}],"max_tokens":256}'

使用 curl 通了之后就可以直接到 cc-switch 配置好,codex 就可以正常访问了。

codex成功调用
codex成功调用

常见问题

使用 deepseek 在 codex 使用可能会遇到下面的错误:

{"error":{"message":"The `reasoning_content` in the thinking mode must be passed back to the
API.","type":"invalid_request_error","param":"","code":"invalid_request_error"}}

我们需要将 model_reasoning_effort 设置为 none 即可。

model_reasoning_effort = "none"