Configure evalflow.yaml
Add agemini block under providers and set default_provider to gemini:
api_key_env is the name of the environment variable that holds your key — evalflow reads the variable at runtime and never stores the key itself.
Set your API key
Get a free key at aistudio.google.com, then export it:Verify the connection
Runevalflow doctor to confirm evalflow can see the key before running any evals:
Run evals
eval.default_provider is already set to gemini in your evalflow.yaml, you can omit the --provider flag:
Available models
Setdefault_model in your evalflow.yaml to any of these model names:
Provider notes
- Default model:
gemini-1.5-flash. This model is optimized for speed and is well-suited for high-volume CI runs. - Free tier: Google AI Studio provides a free tier with rate limits that cover most routine eval pipelines.
- Judge model: By default, evalflow uses Groq as the LLM judge. If you want Gemini to serve as both the model under test and the judge, update the
judgeblock inevalflow.yaml:
Best for
- Teams already using Google Cloud infrastructure
- High-volume eval runs on the free tier
- Experimenting with Google’s latest model generations