#5498 openai.APIStatusError: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param':

116.25* Posted at: 2 hours ago

Insufficient Balance:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 1017, in run
File "videotrans\translator\_base.py", line 97, in run
File "videotrans\translator\_base.py", line 161, in _run_srt
File "videotrans\translator\_deepseek.py", line 49, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1211, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.APIStatusError: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v3.99-428

1 Replies

Insufficient Balance 错误表明您使用的 DeepSeek API 账户余额不足,导致翻译请求被拒绝。

解决方案:

  1. 登录 DeepSeek 开放平台,检查当前账户余额。
  2. 如果余额不足,请先充值(DeepSeek 为预付费模式)。
  3. 充值后重新执行翻译任务即可。

如果使用的是其他 AI 翻译渠道(如 OpenAI ChatGPT、Gemini 等),请登录对应服务商平台检查余额并充值。

请查阅相关文档:

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: ko-fi.com/jianchang512

Related resource