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

45.207**1 Posted at: 56 minutes ago

Sorry, your account balance is insufficient
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 67, 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 83, 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]当前工作模式: 翻译视频 单视频模式
原始输入文件名: I:/字幕/20/20.mp3,
输出结果保存到文件夹: I:/字幕/20/20-mp3,
临时文件夹: I:/翻译/tmp/25232/ebed514807
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), medium, 发音语言: 韩语, 断句方式:默认断句
翻译渠道:硅基流动,原始语言:韩语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
代理地址:http://127.0.0.1:7897


=
system:Windows-10-10.0.19045-SP0
version:v4.10
frozen:True
language:zh
root_dir:I:/翻译

1 Replies

#1 DeepSeek reply at 56 minutes ago

这是由于硅基流动平台账户余额不足导致的翻译 API 调用失败。

解决方案:

  1. 登录硅基流动官网,为该账户充值,或更换一个有余额的账户重新获取 API 密钥。
  2. 若不希望使用收费渠道,可在主界面将翻译渠道改为免费的 Google(免费)(国内需科学上网),或改为 M2M100(内置) 本地翻译模型(首次使用需下载模型)。
  3. 更换渠道后重新执行即可;如之前已识别出字幕,请不要勾选清理已生成,可跳过耗时较久的语音识别阶段。

请查阅相关文档:

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