Skip to main content

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 efficient
  • gemini-1.5-pro - Most capable model
  • gemini-1.5-flash - Balanced performance

Advanced Features

Vision

Code Execution

PDF Support

Embeddings

Available Models:
  • text-embedding-005 (768 dimensions)

Image Generation

Available Models:
  • imagen-3.0-generate-001 - Enterprise image generation

Model Capabilities

Resources