#2067 TaskCfg(cache_folder=None, target_dir='C:/Users/Acer/Desktop/video YT', remove_noise=False, is_separate=False, detect_la

2405:4802* Posted at: 16 hours ago 👁15

Trans Error:[OpenAI ChatGPT] Too many requests, please try again later or adjust settings Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}:
Traceback (most recent call last):
File "videotrans\task\job.py", line 184, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 917, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 96, in _run_text
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 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_chatgpt.py", line 134, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1156, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

TaskCfg(cache_folder=None, target_dir='C:/Users/Acer/Desktop/video YT', remove_noise=False, is_separate=False, detect_language=None, subtitle_language=None, source_language=None, target_language=None, source_language_code='Simplified Chinese', target_language_code='Vietnamese', source_sub='C:/Users/Acer/Desktop/video YT/srt.srt', target_sub='C:/Users/Acer/Desktop/video YT/srt.Vietnamese.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles=None, novoice_mp4=None, noextname='srt', shibie_audio=None, targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=3, tts_type=None, recogn_type=None, model_name=None, split_type=0, voice_autorate=False, video_autorate=False, cuda=False, name='C:/Users/Acer/Desktop/video YT/srt.srt', basename='srt.srt', ext='srt', dirname='C:/Users/Acer/Desktop/video YT', shound_del_name=None, uuid='f71aae71cb', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.90
frozen:True
language:en
root_dir:C:/Users/Acer/Downloads/win-pyvideotrans-3.90

1 Replies

The error indicates your OpenAI API key has insufficient quota or no remaining credits. The error code insufficient_quota means your account's billing plan is exhausted or not set up.

Immediate Solution:

  1. Check your OpenAI account billing: Go to OpenAI Billing Overview. Ensure you have a valid payment method added and positive credit balance.
  2. Use a different translation service: While resolving your OpenAI billing, switch to a free or alternative translation service within pyVideoTrans.

    • In the main interface, Line 3 (Translation Settings), change the translation channel from "OpenAI ChatGPT" to another option like:

      • Google Translate (requires a working network proxy if you are in China).
      • Microsoft Translator.
      • DeepLX (local, free).
      • Another AI service you have an active API key for (e.g., DeepSeek, Gemini).

To prevent similar issues in the future (Rate Limiting):
If you successfully add funds to OpenAI and continue using it, configure pyVideoTrans to avoid hitting rate limits:

  1. Go to Menu -> Tools -> Advanced Options.
  2. In the "Subtitle Translation Adjustment" section:

    • Set "Number of subtitle lines per batch" to a lower value (e.g., 5 or 10).
    • Increase "Pause seconds after translation" (e.g., to 3 or 5).
    • Ensure "Send complete subtitles" is checked for better AI context.

Once you have verified your OpenAI account has credits, you can retry the translation.

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions