#7569 Sorry, your account balance is insufficient:Traceback (most recent call last): File

95.40**4 Posted at: 1 hour ago

Sorry, your account balance is insufficient:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
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}


=
system:Windows-10-10.0.19045-SP0
version:v4.13
frozen:True
language:zh_CN
root_dir:C:/Users/Administrator/Desktop/win-pyvideotrans-v4.13-1

1 Replies

#1 DeepSeek reply at 1 hour ago

报错核心原因是:你当前使用的 AI 翻译渠道账户余额不足

错误信息 Error code: 402 - 'Sorry, your account balance is insufficient' 明确表示服务商返回 402(付费/余额不足),并非软件本身故障。

使用的是 OpenAI 兼容渠道(_openaicompat.py)。

解决方案

  1. 登录你正在使用的 AI 渠道平台(如 DeepSeek / 硅基流动 / OpenRouter / 302.AI / OpenAI 等),为账户充值。

  2. 若无法充值或想更换,进入 菜单 → 翻译设置,改用其他可用渠道:

    • 免费:Google翻译(国内需科学上网)、Microsoft翻译
    • 本地离线:M2M100(内置)、Hy-MT2-1.8B(内置)
  3. 修改后在主界面 翻译字幕(TranslateSrt) 下拉框中选中新渠道,重新执行任务。

请查阅相关文档:

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