#7627 翻译字幕阶段出错 [硅基流动] Sorry, your account balance is insufficientTraceback (most recent call last):

240e**4efa Posted at: 2 hours ago

翻译字幕阶段出错 [硅基流动] Sorry, your account balance is insufficient
Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 137, in process_task

File "videotrans\task\_stage_translate.py", line 31, in trans

File "videotrans\translator\_runner.py", line 75, in run

File "videotrans\translator\_base.py", line 75, in run

File "tenacity\__init__.py", line 480, in call

File "videotrans\translator\_openaicompat.py", line 98, in _item_task

File "videotrans\translator\_openaicompat.py", line 48, in _create_completion

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}

self.cfg=[TaskCfgVTT]当前工作模式: 转录并翻译字幕
原始输入文件名: E:/Houdini Tutorials/新建文件夹/Gumroad - Lightning Strike Destruction - Houdini & Nuke VFX Course with Project Files/Houdini & Nuke VFX Course with Project Files/Videos/26 DEMO Lightning.mp4,
输出结果保存到文件夹: E:/Houdini Tutorials/新建文件夹/Gumroad - Lightning Strike Destruction - Houdini & Nuke VFX Course with Project Files/Houdini & Nuke VFX Course with Project Files/Videos/_video_out/26 DEMO Lightning-mp4,
临时文件夹: F:/pyVideoTrans/win-pyvideotrans-v4.13/tmp/7728/acd6f4836d
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:硅基流动,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
已选 将生成的字幕复制到视频目录下
输出字幕格式: 目标语言在下双字幕


=
system:Windows-10-10.0.26200-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:F:/pyVideoTrans/win-pyvideotrans-v4.13

1 Replies

#1 DeepSeek reply at 2 hours ago

核心原因:硅基流动账户余额不足,服务端返回 HTTP 402 错误,翻译请求被拒绝。

解决方案(任选其一):

  1. 前往硅基流动官网为你的账户充值,然后重试任务(务必勾选清理已生成,避免使用之前失败的缓存)。

  2. 更换为其他翻译渠道:菜单 -> 翻译设置,配置其他渠道密钥(如 DeepSeek),并在主界面翻译渠道下拉中切换。

补充提醒:

  • 若使用 AI 渠道翻译仍报其他解析类错误,可将 菜单 -> 工具 -> 高级选项 -> 字幕翻译 -> AI翻译渠道每批字幕行数 调小(如 20)。

  • 重新翻译同一视频前,请勾选清理已生成,否则可能复用上次生成的中间文件。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource