#5223 TaskCfgVTT(uuid='f8e43e38d8', name='E:/trans-video/test2.mp4', dirname='E:/trans-video', noextname='test2', basename='te

2405:4802* Posted at: 1 day ago

Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}[faster-whisper(LocalBuilt-in), DeepSeek, Edge-TTS(Free)]
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 68, in run
File "videotrans\task\trans_create.py", line 592, in trans
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 70, 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'}}
TaskCfgVTT(uuid='f8e43e38d8', name='E:/trans-video/test2.mp4', dirname='E:/trans-video', noextname='test2', basename='test2.mp4', ext='mp4', target_dir='E:/OUTPUT/test2-mp4', cache_folder='D:/win-pyvideotrans-v4.02-0612/tmp/6084/f8e43e38d8', is_cuda=True, source_language='Vietnamese', source_language_code='vi', source_sub='E:/OUTPUT/test2-mp4/vi.srt', source_wav='D:/win-pyvideotrans-v4.02-0612/tmp/6084/f8e43e38d8/vi.wav', source_wav_output='E:/OUTPUT/test2-mp4/vi.m4a', target_language='Korean', target_language_code='ko', target_sub='E:/OUTPUT/test2-mp4/ko.srt', target_wav='D:/win-pyvideotrans-v4.02-0612/tmp/6084/f8e43e38d8/target.wav', target_wav_output='E:/OUTPUT/test2-mp4/ko.m4a', translate_type=4, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=True, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='vi', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=0, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='E:/OUTPUT/test2-mp4/test2.mp4', novoice_mp4='D:/win-pyvideotrans-v4.02-0612/tmp/6084/f8e43e38d8/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='D:/win-pyvideotrans-v4.02-0612/tmp/6084/f8e43e38d8/vocal.wav', clear_cache=True, background_music='', subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.26200-SP0
version:v4.02
frozen:True
language:en
root_dir:D:/win-pyvideotrans-v4.02-0612

1 Replies

The DeepSeek API account used for translation is out of balance, resulting in a 402 error.

To resolve this:

  1. Log in to your DeepSeek account and add credits.
  2. Alternatively, switch to a free translation channel (e.g., Google Translate, Microsoft Translate) in Menu → Translation Settings → DeepSeek area.

Please review related 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

Similar issues already exist