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

Open
#98 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
google-cloud, javascript

Research direction

Start by reproducing the flow through the GCP Console, Generative Language API, API quota page, and @google/genai SDK using the stated 20-request limit. Done would require confirming whether billing linkage changes Gemini quotas or identifying the missing warning or guidance; the payload names no repository files or tests.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Go
Stars
143
Forks
68
Avg merge
10h 30m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google-gemini/api-examples

All issues in google-gemini/api-examples

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.