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

115.76* Posted at: 3 hours 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:E:/win-pyvideotrans-v4.05-0711

1 Replies

This error occurs because your DeepSeek API account has run out of credits (balance insufficient). The API key you entered in 'Menu → Translation Settings → DeepSeek' is valid but has no remaining balance.

To resolve:

  1. Log in to your DeepSeek API platform (https://platform.deepseek.com) and check your account balance.
  2. Top up your account or switch to a different API key with sufficient credits.
  3. If you have multiple keys, update the key in the settings and try again.

Note: The error is not a software bug. The API itself rejected the request due to payment issues.

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