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

2001:**:8d63 Posted at: 1 day 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/nguye/Downloads/22.mp4,
输出结果保存到文件夹: E:/pyVideoTrans/22-mp4,
临时文件夹: E:/pyVideoTrans/tmp/13384/92e283aaf0
已选 清理已存在
未启用CUDA加速
未选 降噪
STT Service:faster-whisper(Built-in), model_name: base, 发音语言: Simplified Chinese, 断句方式:默认断句
TranslateSrt:DeepSeek,原始语言:Simplified Chinese,目标语言:Vietnamese, 已选 SendSRT
TTS Service:Edge-TTS (Free), 角色:NamMinh(Male/VN), 配音语言:Vietnamese, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: Soft Subtitles
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.08
frozen:True
language:en
root_dir:E:/pyVideoTrans

1 Replies

This error is caused by insufficient balance in your DeepSeek account. The API returned HTTP 402 "Insufficient Balance," so the DeepSeek translation channel refused to process your video's subtitle translation.

Solutions:

  1. Go to https://platform.deepseek.com/ and log in to your account.
  2. Add funds/recharge (you can top up as little as 1 RMB).
  3. Make sure your API key is still active and the account has a positive balance.
  4. Restart the task in pyVideoTrans after the balance is confirmed.

If you don't want to pay for DeepSeek right now, you can switch to a free translator channel (e.g., Google Translate or Microsoft Translate), but note that from mainland China, Google requires a proxy. You can also use the local M2M100 model for offline translation, which will download the model on first use.

请查阅相关文档:

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

Dondate via PayPal

Related resource