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

Aperta
#98 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
google-cloud, javascript

Direzione di ricerca

Inizia riproducendo il flusso attraverso GCP Console, Generative Language API, API quota page e l’SDK @google/genai usando il limite dichiarato di 20 richieste. Il lavoro sarebbe concluso dopo aver confermato se il collegamento della fatturazione modifica le quote Gemini oppure aver identificato l’avviso o le indicazioni mancanti; il payload non indica file del repository né test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
143
Fork
68
Merge medio
10h 30m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google-gemini/api-examples

Tutte le issue di google-gemini/api-examples

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.