#3953 TaskCfgSTS(is_cuda=False, uuid='72782cc35e', cache_folder=None, target_dir='D:/Download/win-pyvideotrans-v3.98-0401/outp

113.181* Posted at: 7 hours ago 👁8

Trans Error [DeepSeek] Insufficient Balance
Traceback (most recent call last):
File "videotrans\task\job.py", line 173, in run
File "videotrans\task\_translate_srt.py", line 44, in trans
File "videotrans\translator\__init__.py", line 982, 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 50, 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'}}
TaskCfgSTS(is_cuda=False, uuid='72782cc35e', cache_folder=None, target_dir='D:/Download/win-pyvideotrans-v3.98-0401/output/translate', source_language=None, source_language_code='Simplified Chinese', source_sub='D:/Download/win-pyvideotrans-v3.98-0401/output/recogn/0401.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='Vietnamese', target_sub='D:/Download/win-pyvideotrans-v3.98-0401/output/translate/0401.Vietnamese.srt', target_wav=None, target_wav_output=None, name='D:/Download/win-pyvideotrans-v3.98-0401/output/recogn/0401.srt', noextname='0401', basename='0401.srt', ext='srt', dirname='D:/Download/win-pyvideotrans-v3.98-0401/output/recogn', shound_del_name=None, translate_type=4)


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:en
root_dir:D:/Download/win-pyvideotrans-v3.98-0401

1 Replies

The error "Insufficient Balance" indicates that the API key for the DeepSeek translation service has insufficient funds or credits to complete the request.

To resolve this, you need to recharge your DeepSeek account.

  1. Log in to your DeepSeek platform account (e.g., platform.deepseek.com).
  2. Navigate to the billing or balance section.
  3. Add funds to your account to ensure you have a positive balance.
  4. Return to pyVideoTrans and ensure your DeepSeek API key in Menu -> Translation Settings -> DeepSeek Settings is correct and active.

If the issue persists after confirming your balance is sufficient, check if there are any usage limits or if the API key has expired. You may need to generate a new API key from the DeepSeek platform.

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.

Related resource