Skip to main content

Google Provider

Use Google’s Gemini models including Gemini 2.0 Flash and Gemini 1.5 Pro.

Environment Variables

Supported Modalities

Quick Start

1

Simple Usage

2

With Configuration

Adjust provider credentials and model settings for production — see the sections above.

Available Models

Advanced Configuration

With Tools

Vision (Image Input)

Streaming

Troubleshooting

Invalid API Key

Solution: Set the correct environment variable:

Rate Limits

Solution: Implement retry logic or upgrade your Google AI plan.

Google CLI Usage

Google CLI Usage

Google Vertex AI

Google Vertex AI

Providers Overview

Providers Overview