Subject: Question about multiple projects and fallback keys in a Gemini-powered app

Hi Gemini API team,

I’m an independent developer building an Android storytelling and roleplay app that uses the Gemini API as its main story model. Users bring their own API keys, and I want to make sure the way I’m designing key handling is within your terms before I release it.

Here’s the design. Users can add several keys to an ordered fallback list. When one key hits its quota or returns a temporary error like a 503, the app moves to the next key. I recommend that the last key in the list be a paid-tier key, so users get as much free usage as they can each day and then roll over to paid usage instead of being stuck. Some users would have keys from separate Google Cloud projects.

My reasoning is that this works in Google’s favor. Free-tier quota is small, and failed requests like 503s count against it, so even with two or three keys a user gets only a modest number of turns. Giving people a bit more room means they get far enough into a story to care about it, and then they run out at exactly the moment they’re most engaged. From what I’ve read from other developers, that’s the point where people choose to move to a paid key. The lighter models also tend to be less consistent over a long story, which gives users a further reason to move to stronger paid models. I expect the fallback chain to push users toward paid usage, not away from it.

My questions:

1. Is it acceptable for one person to hold several free-tier projects and rotate between them this way, or does that count as circumventing rate limits?

2. If it isn’t, is a fallback chain that mixes one free-tier key with one paid-tier key fine?

3. Is there anything in how my app should describe or recommend this to users that I should avoid or include?

My intent is to keep this aligned with your terms. The app is designed to move users toward paid usage, and I’d rather ask first than build on a pattern you don’t support. If I’ve misunderstood how this should work, I’d appreciate being told before I ship.

Thank you,

John Fool

App: Worlds

O…@gmail.com

Good call to ask before shipping. Google’s [API Terms, Section 2(d)](Google APIs Terms of Service  |  Google for Developers) say users must not attempt to circumvent documented API limits. Gemini rate limits normally apply **per Cloud project, not per key**. Two keys in the same project therefore do not double quota; deliberately rotating among multiple free-tier projects to combine allowances is different and should **not be assumed compliant** without an explicit answer from Google.

I would handle these cases separately:

1. **429 RESOURCE_EXHAUSTED:** respect the stated quota and retry/reset time. Queue or pause requests; don’t silently switch across free projects to avoid a limit.

2. **503 UNAVAILABLE:** use bounded exponential backoff with jitter and a clear failure message. This is a service-availability error, not proof that changing keys is necessary or approved.

3. **Free-to-paid:** offer an explicit user-controlled switch to a properly authorized paid project/key, displaying potential costs and the selected project first. This may be a sensible design, but Google should confirm the exact permitted usage pattern; don’t present it as officially approved.

For your BYOK Android app, disclose where keys are stored, who sends requests, which project incurs charges and how keys can be revoked. Avoid putting keys into logs, analytics or shared backend storage without the user’s informed consent. Provide spending controls and avoid automatic paid fallback without opt-in.

I’d ask Gemini API staff to answer **two separate yes/no questions**: is automated rotation across several free projects belonging to one user allowed to extend free quota, and is a disclosed, opt-in switch from a free project to a paid project permitted after 429? The fact that some users eventually subscribe doesn’t answer either policy question.

Hello @The_King_of_Fools,

We can’t provide specific legal guidance on this forum. Please refer to the documents below: