Google Provider
Use Google’s Gemini models including Gemini 2.0 Flash and Gemini 1.5 Pro.Environment Variables
| Variable | Required | Description |
|---|---|---|
GOOGLE_GENERATIVE_AI_API_KEY | Yes | Google AI Studio API key |
GOOGLE_API_KEY | Alt | Alternative env var name |
Supported Modalities
| Modality | Supported |
|---|---|
| Text/Chat | ✅ |
| Embeddings | ✅ |
| Image | ✅ |
| Audio | ✅ |
| Speech | ✅ |
| Tools | ✅ |
Quick Start
Available Models
| Model | Description | Context |
|---|---|---|
gemini-2.0-flash | Latest fast model | 1M |
gemini-1.5-pro | Most capable | 2M |
gemini-1.5-flash | Fast, efficient | 1M |
gemini-1.5-flash-8b | Lightweight | 1M |
Advanced Configuration
With Tools
Vision (Image Input)
Streaming
Troubleshooting
Invalid API Key
Rate Limits
Related
Google CLI Usage
Google CLI Usage
Google Vertex AI
Google Vertex AI
Providers Overview
Providers Overview

