#3172 TaskCfg(cache_folder=None, target_dir='D:/Thư mục mới (2)/output/translate', remove_noise=False, is_separate=False, de

2001:ee0* Posted at: 8 days ago 👁37

Trans Error [Gemini AI] You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit.

  • Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-3-flash
    Please retry in 30.385000172s.
    Traceback (most recent call last):
    File "videotrans\translator\_gemini.py", line 112, in _item_task
    File "google\genai\models.py", line 5407, in generate_content_stream
    File "google\genai\models.py", line 4101, in _generate_content_stream
    File "google\genai\_api_client.py", line 1405, in request_streamed
    File "google\genai\_api_client.py", line 1224, in _request
    File "tenacity\__init__.py", line 477, in call
    File "tenacity\__init__.py", line 378, in iter
    File "tenacity\__init__.py", line 420, in exc_check
    File "tenacity\__init__.py
    ......
    futures\_base.py", line 391, in __get_result
    File "tenacity\__init__.py", line 480, in call
    File "google\genai\_api_client.py", line 1189, in _request_once
    File "google\genai\errors.py", line 121, in raise_for_response
    File "google\genai\errors.py", line 146, in raise_error
    google.genai.errors.ClientError: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit. * Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-3-flash Please retry in 30.385000172s.', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}, {'@type': 'type.googleapis.com/google.rpc.QuotaFailure', 'violations': [{'quotaMetric': 'generativelanguage.googleapis.com/generate_content_free_tier_requests', 'quotaId': 'GenerateRequestsPerDayPerProjectPerModel-FreeTier', 'quotaDimensions': {'location': 'global', 'model': 'gemini-3-flash'}, 'quotaValue': '20'}]}, {'@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '30s'}]}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 174, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 981, in run
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 165, 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 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 132, in _item_task
videotrans.configure._except.StopRetry: You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit.

  • Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-3-flash
    Please retry in 30.385000172s.
    TaskCfg(cache_folder=None, target_dir='D:/Thư mục mới (2)/output/translate', 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='E:/0209 (1).srt', target_sub='D:/Thư mục mới (2)/output/translate/0209 (1).Vietnamese.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles='', novoice_mp4=None, noextname='0209 (1)', 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=5, tts_type=None, recogn_type=None, model_name=None, voice_autorate=False, video_autorate=False, cuda=False, name='E:/0209 (1).srt', basename='0209 (1).srt', ext='srt', dirname='E:/', shound_del_name=None, uuid='ff111da97f', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=2, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.96
frozen:True
language:en
root_dir:D:/Thư mục mới (2)

1 Replies

This error is caused by exceeding the free tier quota limit of the Gemini AI API.

The error message clearly states: "Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-3-flash". The free tier of the Gemini API has a daily request limit (e.g., 20 requests for the gemini-3-flash model), and you have reached that limit.

Solutions:

  1. Wait for the quota to reset. The free tier quota typically resets daily. The error suggests waiting for about 30 seconds, but the daily limit will reset at a specific time (often based on UTC). You can try again later (e.g., after 24 hours).
  2. Upgrade your Google AI Studio/Gemini API plan. To continue using Gemini AI for translation without interruption, you need to add billing to your Google Cloud account and upgrade from the free tier to a paid plan. This will provide you with a higher request quota.
  3. Switch to a different translation channel in pyVideoTrans. This is the most immediate solution. You can use another free or paid translation service integrated into the software.

    • Go to the Translation Settings in pyVideoTrans.
    • Change the Translation Channel from "Gemini AI" to another option, such as:

      • DeepSeek (Powerful and cost-effective, requires an API key).
      • Google Translate (Free but may require a proxy/VPN).
      • Local LLM (Ollama) (Free, but requires local setup and a capable model like qwen:7b).
      • Microsoft Translator or Baidu Translate (Requires API key).

Recommendation: For consistent and uninterrupted translation work, it is advisable to set up a paid API key for a service like DeepSeek or switch to a locally hosted model if you have the hardware.

Please consult 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

Similar issues already exist