错误信息: The selected model requires paid balance. Your paid balance is insufficien...
🚨 错误信息
错误名称: AI_APICallError
错误信息: The selected model requires paid balance. Your paid balance is insufficient. Please top up and try again.
堆栈信息: AI_APICallError
at file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/dist-gixTQuVo.js:5146:11
at async postToApi (file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/dist-gixTQuVo.js:5028:24)
at async OpenAICompatibleChatLanguageModel$1.doStream (file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Dy89cVhB.js:243247:48)
at async wrapStream (file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Dy89cVhB.js:38758:31)
at async fn (file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Dy89cVhB.js:36943:17)
at async file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Dy89cVhB.js:34321:19
at async _retryWithExponentialBackoff (file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Dy89cVhB.js:34423:10)
at async streamStep (file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Dy89cVhB.js:36911:108)
at async fn (file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Dy89cVhB.js:37190:5)
at async file:///C:/Program%20Files/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Dy89cVhB.js:34321:19
错误原因: "[undefined]"
状态码: 403
请求路径: https://api.siliconflow.cn/v1/chat/completions
请求体: {
"model": "Pro/moonshotai/Kimi-K2-Thinking",
"user": "[undefined]",
"max_tokens": "[undefined]",
"temperature": 1,
"top_p": "[undefined]",
"frequency_penalty": "[undefined]",
"presence_penalty": "[undefined]",
"response_format": "[undefined]",
"stop": "[undefined]",
"seed": "[undefined]",
"serviceTier": "[undefined]",
"reasoning_effort": "[undefined]",
"verbosity": "[undefined]",
"messages": [
{
"role": "user",
"content": "nh"
}
],
"tools": "[undefined]",
"tool_choice": "[undefined]",
"stream": true,
"stream_options": {
"include_usage": true
}
}
响应首部: {
"content-length": "144",
"content-type": "application/json; charset=utf-8",
"date": "Wed, 10 Dec 2025 06:15:10 GMT",
"document-policy": "include-js-call-stacks-in-crash-reports",
"x-siliconcloud-trace-id": "ti_yues7n5xbtjdgj4e6y"
}
响应内容: {
"code": 30011,
"message": "The selected model requires paid balance. Your paid balance is insufficient. Please top up and try again.",
"data": null
}
数据: "[undefined]"
🤖 AI解决方案
错误分析
1. 错误翻译
原文:The selected model requires paid balance. Your paid balance is insufficient. Please top up and try again.
译文:所选模型需要付费余额。您的付费余额不足,请充值后重试。
2. 原因分析
- 根本原因:账户余额不足,无法使用付费模型
Pro/moonshotai/Kimi-K2-Thinking - 错误位置:调用 SiliconFlow API 服务时,在支付验证环节被拒绝
- 状态码:403 Forbidden - 表示权限不足或资源访问受限
- 触发条件:尝试使用需要付费的高级AI模型但账户余额不足
3. 解决方案
方案一:充值账户
# 前往 SiliconFlow 平台进行充值
# 访问:https://siliconflow.cn 完成账户充值
方案二:切换免费模型
// 在代码中将模型替换为免费版本
const requestBody = {
"model": "moonshot-v1-8k", // 或其他免费模型
"messages": [
{
"role": "user",
"content": "nh"
}
],
"stream": true
};
4. ️ 预防措施
// 建议的错误处理代码
try {
// API调用代码
} catch (error) {
if (error.status === 403 && error.message.includes('insufficient balance')) {
console.log('账户余额不足,请充值或切换免费模型');
// 执行降级策略或通知用户
}
}
---
建议:立即检查 SiliconFlow 账户余额并完成充值,或暂时使用免费模型继续开发。