[BUG] 内置火山引擎(VolcEngine)供应商无法接入火山方舟 Coding Plan(编码套餐),报 AuthenticationError: The API key format is incorrect
Author: modusensusCreated Sep 27, 2026Updated Sep 29, 2026
Bug 描述
内置的火山引擎(VolcEngine)供应商无法接入火山方舟 Coding Plan(编码套餐):无论选什么模型,请求一律返回 401:
{"error":{"code":"AuthenticationError","message":"The API key format is incorrect. Request id: 02179050410612231531f02f4f0092e9c8b48ace140f1c7377542","param":"","type":"Unauthorized"}}同一个 Coding Plan API Key 在 Claude Code / Codex CLI 等工具中(指向 https://ark.cn-beijing.volces.com/api/coding / /api/coding/v3)完全正常。
根因分析
- 火山方舟 Coding Plan 使用专用端点 + 专属 API Key(官方文档:https://www.volcengine.com/docs/ark/coding-plan-personal-ai-claude-code ):
- OpenAI 兼容:
https://ark.cn-beijing.volces.com/api/coding/v3 - Anthropic 兼容:
https://ark.cn-beijing.volces.com/api/coding - 官方文档明确警告不要使用
/api/v3:不识别套餐 Key,也不会消耗 Coding Plan 额度。
- OpenAI 兼容:
- 而 Chatbox 内置 VolcEngine 供应商把请求地址硬编码为按量计费端点
/api/v3/chat/completions:src/shared/providers/definitions/models/volcengine.ts中Host/Path为模块常量,fetch 时拼${Host}${Path};- 供应商设置界面里的 API Host / API Path 对该模型类不生效(模型类未读取
formattedApiHost)。
因此 Coding Plan 的 Key 填入内置供应商后必然 401,且用户无法通过设置自救。智谱 GLM Coding Plan 已有专属供应商(zhipu-glm-coding-plan,#1127),希望为火山也增加一个专属供应商。我已按 zhipu-glm-coding-plan 的模式准备好 PR,随后跟上。
重现步骤
- 订阅火山方舟 Coding Plan,在方舟控制台 Coding Plan 模块创建专属 API Key
- Chatbox 设置 → 模型服务商 → 火山引擎,粘贴该 Key
- 新增/选择模型(如
ark-code-latest或doubao-seed-2.1-pro)发起对话 - 立即报 401
The API key format is incorrect;即使把设置里的 API Host 改成https://ark.cn-beijing.volces.com/api/coding/v3也无效(该设置项不生效)
期望结果
使用 Coding Plan 专属 API Key 可以正常对话(希望像 GLM Coding Plan 一样提供专属供应商;或至少让 VolcEngine 的 API Host 设置真正生效)。
实际结果
{"error":{"code":"AuthenticationError","message":"The API key format is incorrect. Request id: 02179050410612231531f02f4f0092e9c8b48ace140f1c7377542","param":"","type":"Unauthorized"}}用 curl 可稳定复现:同一把 Key 请求 /api/v3/chat/completions 报上述错误,请求 /api/coding/v3/chat/completions 正常返回。
桌面端
- 操作系统:Windows 11(10.0.26200)
- 应用程序版本:1.23.5
其他上下文
- 相关 issue:#3552(Z.ai Coding Plan 报错,同类「coding 套餐专用端点」问题)
- 关联 PR:#1127(内置 GLM Coding Plan 供应商的先例)
Source: chatboxai/chatbox