#2049 videotrans.configure._except.StopRetry: You exceeded your current quota, please check your plan and billing details. For

198.176* Posted at: 7 hours ago 👁9

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/usage?tab=rate-limit. :Traceback (most recent call last):
File "videotrans\translator\_gemini.py", line 132, in _item_task
File "google\genai\models.py", line 5783, in generate_content_stream
File "google\genai\models.py", line 4666, in _generate_content_stream
File "google\genai\_api_client.py", line 774, in request_streamed
File "google\genai\_api_client.py", line 672, in _request
File "google\genai\errors.py", line 101, in raise_for_response
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/usage?tab=rate-limit. ', 'status': 'RESOURCE_EXHAUSTED'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 931, in run
File "videotrans\translator\_base.py", line 77, in run
File "videotrans\translator\_base.py", line 135, 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 152, 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/usage?tab=rate-limit.


=
system:Windows-10-10.0.26100-SP0
version:v3.86
frozen:True
language:zh
root_dir:E:/软件/win-pyvideotrans-v3.86 (2)

1 Replies

您遇到的错误是 Gemini API 的配额已用尽或请求频率超限(429 RESOURCE_EXHAUSTED)。请按以下步骤解决:

  1. 检查配额与账单:访问 Google AI Studio 用量页面 确认您的免费配额是否已用完,或付费账户是否有欠费。Gemini API 有每分钟/每天的请求次数和Token数量限制。
  2. 在软件内调整请求频率

    • 在 pyVideoTrans 主界面,点击 “设置更多参数”
    • 找到 “翻译后暂停秒” 选项,将其数值调大(例如从默认的1秒改为3-5秒),以降低请求频率。
    • “字幕翻译调整” 区域,将 “每批字幕行数” 调小(例如从5改为1或2),减少单次请求的负载。
  3. 等待配额重置:如果免费配额已用完,需要等待到下个计费周期(通常是太平洋时间每天零点)自动重置,或者升级到付费计划。
  4. 备用方案:如果急需处理,可以暂时切换到其他翻译渠道,如 DeepSeek、Google(需代理)或微软翻译。

如果调整后问题依旧,并且确认账户配额充足,请提供 E:/软件/win-pyvideotrans-v3.86 (2)/videotrans/logs/ 目录下的最新日志文件以便进一步分析。

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