#6596 [DeepSeek] API service returned error: Insufficient balance.Please check account balance on provider platform. API: http

123.24.**0 Posted at: 1 hour ago

[DeepSeek] API service returned error: Insufficient balance.
Please check account balance on provider platform. API: https://api.deepseek.com/v1/

Traceback (most recent call last):
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 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 83, 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 71, in run
File "videotrans\translator\_base.py", line 204, in _run_srt
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 85, in _item_task
videotrans.configure.excepts.StopTask: [DeepSeek] API service returned error: Insufficient balance.
Please check account balance on provider platform. API: https://api.deepseek.com/v1/

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: C:/Users/lethi/Downloads/download.mp4,
输出结果保存到文件夹: C:/Users/lethi/Downloads/win-pyvideotrans-v4.08-0802/download-mp4,
临时文件夹: C:/Users/lethi/Downloads/win-pyvideotrans-v4.08-0802/tmp/25248/e45003c2e1
已选 清理已存在
未启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), model_name: large-v3-turbo, 发音语言: Simplified Chinese, 断句方式:默认断句
TranslateSrt:DeepSeek,原始语言:Simplified Chinese,目标语言:Vietnamese, 已选 SendSRT
TTS Service:Edge-TTS (Free), 角色:NamMinh(Male/VN), 配音语言:Vietnamese, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: Soft Subtitles
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.08
frozen:True
language:en
root_dir:C:/Users/lethi/Downloads/win-pyvideotrans-v4.08-0802

1 Replies

#1 DeepSeek reply at 1 hour ago

This is caused by insufficient funds in your DeepSeek API account. The DeepSeek platform rejected the request with HTTP 402 because your account balance is too low to pay for the translation call.

To resolve this:

  1. Log in to the DeepSeek platform at https://platform.deepseek.com/.
  2. Go to the "Billing" or "Usage" section and check your current balance.
  3. Top up/recharge your account with a small amount (you can start with a nominal amount).
  4. Restart the translation task.

If you do not want to pay for DeepSeek, switch to a free translation channel in the software:

  • Select "Google Translate" (requires a VPN in mainland China) or "Microsoft Translate" (may be unavailable after Microsoft closed the interface).
  • Or use a completely offline/local translation engine such as "M2M100 (Built-in)" or "Hy-MT2-1.8B" – both are free and require no API key.
  • Or use another AI provider you already have credits for (OpenAI, Gemini, etc.).

Note: The API keys are stored locally and all third-party costs are charged by the respective providers. The error message clearly indicates the request reached DeepSeek but was denied due to insufficient balance, not a configuration or software problem.

If you still see the same error after confirming your balance, double-check that the key stored in the translation settings belongs to an account with available credits.

Thinking...
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

Related resource