#773 Gemini是没有免费额度了吗,为什么API当日流量还没有使用就一直频繁报429,重新获取API KEY也是一样的错误(最近才出现的问题,以前没有)

*150.203* Posted at: 4 hours ago 👁8

请求频繁触发429,请调大暂停时间: Error code: 429 - [{'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.', 'status': 'RESOURCE_EXHAUSTED'}}]:Traceback (most recent call last):

File "videotrans\util\TestSrtTrans.py", line 17, in run

File "videotrans\translator\__init__.py", line 865, in run

File "videotrans\translator\_base.py", line 81, in run

File "tenacity\__init__.py", line 480, in __call__

File "videotrans\translator\_gemini.py", line 60, in _item_task

File "openai\_utils\_utils.py", line 287, in wrapper

File "openai\resources\chat\completions\completions.py", line 1150, 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': {'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.', 'status': 'RESOURCE_EXHAUSTED'}}]

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

2 Replies

本条内容由 DeepSeek 回复
这是使用 Gemini 翻译渠道时遇到了 API 配额限制问题。错误代码 429 明确表示 "You exceeded your current quota",说明您的 Gemini API 使用量已超出当前计划的配额限制。

问题分析:

  • 您使用的是 Gemini 翻译渠道,该渠道有严格的频率和配额限制
  • 当翻译大量字幕时,频繁请求触发了 Google 的 API 限流机制
  • 这与 pyVideoTrans 软件本身无关,而是第三方 API 服务的限制

解决方案:

1. 检查 Gemini API 配额和账单

  • 登录 Google AI Studio (https://aistudio.google.com/)
  • 检查您的使用量、剩余配额和账单状态
  • 确保您的账户有足够的配额或已设置正确的付费计划

2. 调整软件设置降低请求频率

  • 进入 菜单 → 工具 → 高级选项
  • 在翻译调整部分,将 同时翻译的字幕数 从默认值调小(建议设为 1-3)
  • 增加 翻译后暂停时间/秒(建议设为 3-5 秒)
  • 这样可以降低请求频率,避免触发限流

3. 考虑切换翻译渠道

  • 如果 Gemini 配额确实已用尽,可以暂时切换到其他翻译渠道
  • 如 Google 翻译(需科学上网)、百度翻译、腾讯翻译等
  • 或者使用其他 AI 翻译渠道如 DeepSeek、OpenAI 等

4. 分批处理大文件

  • 如果翻译的字幕文件很大,可以分成多个小文件分批处理
  • 这样可以避免单次处理触发配额限制

请注意,Gemini API 的配额限制是 Google 设定的,pyVideoTrans 只是调用方。建议合理规划使用量,或考虑升级 API 套餐。

Admin

1. 可能代理节点问题,多试试其他不同国家节点。同个节点网页可以使用,但API可能无法使用

2. 使用 flash 模型,这个免费额度较高

3. 使用自己账户下的 api key,不要和其他人共享

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