#5735 The server [DeepSeek] returned an error message: Insufficient balance. Please log in to the platform to view your balanc

42.115* Posted at: 1 hour ago

The server [DeepSeek] returned an error message: Insufficient balance.
Please log in to the platform to view your balance information. Current 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\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 63, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 200, 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: The server [DeepSeek] returned an error message: Insufficient balance.
Please log in to the platform to view your balance information. Current API: https://api.deepseek.com/v1/


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

1 Replies

The error is caused by insufficient balance in your DeepSeek API account. The API server returned Insufficient Balance (error code 402), which stops all translation tasks using this channel.

Solution:

  1. Log in to the DeepSeek platform at https://platform.deepseek.com/
  2. Check your current balance under the billing or account section.
  3. Recharge your account with sufficient funds to cover your usage.
  4. Once balance is restored, restart the translation task in pyVideoTrans.

The software itself is working correctly — this is purely a service-side billing issue. No software configuration changes are needed.

Please refer to the relevant documentation:

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