#6239 Sorry, your account balance is insufficientTraceback (most recent call last):

111.29* Posted at: 10 hours ago

Sorry, your account balance is insufficient
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 82, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 63, in run
File "videotrans\translator\_base.py", line 74, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 77, in _item_task
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.APIStatusError: Error code: 402 - {'code': 30001, 'message': 'Sorry, your account balance is insufficient', 'data': None}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/360Downloads/abou.mp4,
输出结果保存到文件夹: D:/360Downloads/abou-mp4,
临时文件夹: D:/360Downloads/tmp/15196/256bc2fee6
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), model_name: large-v3-turbo, 发音语言: 日语, 断句方式:默认断句
翻译渠道:硅基流动,原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.08
frozen:True
language:zh
root_dir:D:/360Downloads

1 Replies

这是「硅基流动(SiliconFlow)」翻译渠道的 API 账户余额不足导致的。翻译请求被该平台拒绝并返回 HTTP 402(错误码 30001),与 pyVideoTrans 软件自身无关。

处理方法:

  1. 登录「硅基流动」开放平台,检查账户余额并充值,或切换为有余额/有免费额度的 API Key。
  2. 充值后回到软件,重新开始任务。如果还提示相同错误,请确认该 API Key 是否有效、是否已开通「文本翻译」相关模型权限。
  3. 若暂时不想充值,可更换翻译渠道:

    • 免费传统翻译:Google 翻译(需代理)或 Microsoft 翻译(无需代理)。
    • 其他 AI 翻译:DeepSeek、OpenAI ChatGPT、智谱AI 等,只需在「菜单-翻译设置」中填写对应渠道的 API Key。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Dondate via PayPal

Related resource