Using Google Gen AI with Phoenix Evals#
Note
Need to install the extra dependency google-genai>=1.0.0
Use the LLM wrapper with provider="google" to access Google’s Gemini models through the Google GenAI SDK.
Authentication Options
Option 1: Using API Key (Developer API)
Set the GOOGLE_API_KEY or GEMINI_API_KEY environment variable:
Option 2: Using VertexAI
Basic Usage
Supported Models
The Google provider supports all Gemini models available through the Google GenAI SDK, including:
gemini-2.5-flash(default)gemini-2.5-flash-001gemini-2.0-flash-001gemini-1.5-progemini-1.5-flash
Note
We acknowledge Siddharth Sahu for this valuable contribution and support.

