Linking GCP billing account does not upgrade Gemini API from free-tier quotas

未关闭
#98 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
google-cloud, javascript

调研方向

首先,使用所述的 20 个请求限制,复现经过 GCP Console、Generative Language API、API quota page 和 @google/genai SDK 的流程。完成的标准是确认账单关联是否会改变 Gemini 配额,或确定缺失的警告或指导;payload 未指出任何 repository 文件或测试。

由索引模型根据 Issue 内容生成。

描述

Problem

After linking a GCP billing account (with active credits) to a project, the Gemini API continues to enforce free-tier quotas (generate_content_free_tier_requests, limit: 20 req/day/model). There is no indication in any UI that billing linkage didn't actually upgrade the API tier.

Steps to Reproduce
  1. Create a GCP project
  2. Link a billing account with active credits
  3. Enable the Generative Language API
  4. Create an API key from the project credentials page
  5. Make API calls to gemini-3-flash-preview via @google/genai SDK
  6. After hitting 20 requests → still get free-tier quota error:
Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests
quotaId: GenerateRequestsPerDayPerProjectPerModel-FreeTier
Expected Behavior

Linking a billing account with active credits should upgrade the project from free-tier to pay-as-you-go quotas, or at minimum clearly indicate that additional steps are required to enable paid usage.

Actual Behavior
  • GCP Console shows billing is linked
  • API quota page still shows free tier quotas at 100% usage
  • No error, warning, or guidance anywhere that billing isn't effective for Gemini API keys
  • Significant time wasted debugging what appeared to be a correctly configured setup
Impact

Developers who follow the standard GCP flow (create project → link billing → create key) reasonably expect paid quotas to apply. The silent failure to upgrade tiers, combined with zero UI feedback, creates a frustrating developer experience.

主要语言
Go
星标
143
派生
68
平均合并
10 小时 30 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

google-gemini/api-examples 的其他 Issue

查看 google-gemini/api-examples 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。