Providers and models
Gemini
Google AI Studio keys and daily limits.
Gemini is reached through Google's OpenAI compatible endpoint, generativelanguage.googleapis.com/v1beta/openai, with a key from AI Studio.
Get a key
Create one at aistudio.google.com/apikey, then run frontier setup and pick Gemini, or put it in ~/.frontier/.env:
GEMINI_API_KEY=your-key-hereModels
The preset declares gemini-2.5-pro as a standard tier model and gemini-2.5-flash as an economy tier model, with prices of 1.25 and 10 dollars per million input and output tokens for Pro, and 0.15 and 0.6 for Flash. Both accept images. Model names change over time, so if Google retires one, declare the current ids in your own provider entry. See Any OpenAI compatible API.
The daily limit and what Relief does
Gemini's free tier counts requests per model per day. When a model answers HTTP 429 because its daily quota is used up, Relief marks that one model as used up and goes on to the next, instead of retrying a model that cannot answer. The other models on the same key stay available.
The daily count resets at midnight Pacific time, so Relief uses that clock, not your local midnight. Using local midnight could hide a working key for most of a day. If the reset guess is early, the next 429 simply marks the model again at the cost of one request.
In the free lane, Relief considers the Flash family from Gemini's live model list and skips text to speech, image, live, audio, native and robotics variants.
When everything has failed, the message lists each model that was tried and why, and the earliest reset time, so you know when to come back.
Slow models
Gemini's models differ a lot in speed on the same key. Measured on 2026-11-19 with a one word prompt: gemini-3.5-flash-lite answered in 1.4 seconds, gemini-3.1-flash-lite in 7 seconds, and gemini-3.6-flash took 37 seconds without streaming, with no response headers at all within 60 seconds when streaming. frontier doctor tries a provider's first model, so a slow first model shows up as "No response headers within 60000ms" even though the key is fine. That is one key on one day, so measure your own.
If it happens, put a fast model first in that provider's list for the tier, so the slow one is tried later. See Any OpenAI compatible API.
Notes
The preset turns on the extraContent option, which marks a provider that returns Gemini's extra content fields. If you front Gemini with a gateway of your own, set it in that provider entry. Gemini is a standard data policy provider in region us.