#3859 TaskCfgSTS(is_cuda=False, uuid='216e3b5c03', cache_folder=None, target_dir='C:/Users/Lenovo/Downloads/win-pyvideotrans-v

112.197* Posted at: 3 days ago 👁25

Trans Error [OpenAI ChatGPT] 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.
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 966, in run
File "videotrans\translator\_base.py", line 101, in run
File "videotrans\translator\_base.py", line 164, 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\_chatgpt.py", line 136, 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.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'}}
TaskCfgSTS(is_cuda=False, uuid='216e3b5c03', cache_folder=None, target_dir='C:/Users/Lenovo/Downloads/win-pyvideotrans-v3.98-327/output/translate', source_language=None, source_language_code='Simplified Chinese', source_sub='D:/0329 (3)(1).srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='Vietnamese', target_sub='C:/Users/Lenovo/Downloads/win-pyvideotrans-v3.98-327/output/translate/0329 (3)(1).Vietnamese.srt', target_wav=None, target_wav_output=None, name='D:/0329 (3)(1).srt', noextname='0329 (3)(1)', basename='0329 (3)(1).srt', ext='srt', dirname='D:/', shound_del_name=None, translate_type=3)


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:en
root_dir:C:/Users/Lenovo/Downloads/win-pyvideotrans-v3.98-327

1 Replies

This error indicates that your OpenAI API account has insufficient quota or credit. The OpenAI API is rejecting the translation request because your account's billing limit has been reached or you have no remaining credits.

Solution:

  1. Check your OpenAI account billing: Log in to your OpenAI platform account (platform.openai.com) and verify your billing plan, usage, and available credits. You may need to add payment details or purchase more credits.
  2. Switch to a different translation channel: While you resolve the OpenAI billing issue, you can temporarily use another translation channel in pyVideoTrans.

    • Go to the main translation interface.
    • In the "Translation Channel" dropdown, select a free alternative like Google (free) or Microsoft (free), or configure another AI service you have access to (e.g., DeepSeek, Gemini).
  3. Configure the new channel: If you switch to a paid service like DeepSeek or Gemini, ensure you have entered the correct API URL and Key in Menu -> Translation Settings -> [Corresponding Channel Settings Panel].

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.

Related resource