Google Vertex AI Provider
The Google Vertex AI provider enables you to use Google’s Gemini models through Vertex AI with enterprise features like VPC, custom endpoints, and more.Installation
Setup
Set up Google Cloud authentication and configure your environment:Usage
Basic Text Generation
Streaming Responses
Structured Output
Configuration
Custom Provider Instance
Provider Options
- project: Google Cloud project ID
- location: Region for API calls (e.g., ‘us-central1’)
- googleAuthOptions: Authentication configuration
Available Models
Gemini Models
gemini-2.0-flash- Fast and efficientgemini-1.5-pro- Most capable modelgemini-1.5-flash- Balanced performance
Advanced Features
Vision
Code Execution
Google Search
PDF Support
Embeddings
text-embedding-005(768 dimensions)
Image Generation
imagen-3.0-generate-001- Enterprise image generation
Model Capabilities
| Model | Vision | Tools | Structured Output |
|---|---|---|---|
| gemini-2.0-flash | ✓ | ✓ | ✓ |
| gemini-1.5-pro | ✓ | ✓ | ✓ |
| gemini-1.5-flash | ✓ | ✓ | ✓ |