Skip to main content

Overview

Google Vertex AI provides access to Gemini models, PaLM, and other Google AI models through Google Cloud Platform with enterprise features and SLAs.

Quick Start

1

Install LiteLLM

2

Set Google Cloud Credentials

3

Make Your First Call

Supported Models

Latest Gemini models with multimodal capabilities:

Authentication

Available Locations

Vertex AI is available in multiple regions:

Multimodal (Vision)

Gemini models support images, videos, and audio:

Function Calling

Gemini supports function calling:

Streaming

Context Caching

Cache large contexts to reduce costs:

JSON Mode

Force JSON output:
Ground responses in Google Search or Vertex AI Search:

Safety Settings

Configure content safety filters:

Embeddings

Generate embeddings:

Advanced Parameters

Temperature and Sampling

System Instructions

Stop Sequences

Batch Prediction

Process large batches asynchronously:

Error Handling

Cost Tracking

Model Garden

Use models from Vertex AI Model Garden:

Best Practices

Use Service Accounts

Use service accounts with minimal required permissions for production.

Enable Caching

Use context caching for large prompts to reduce costs.

Choose Right Model

Use Flash for speed, Pro for quality, Flash-8B for high throughput.

Set Safety Filters

Configure appropriate safety settings for your use case.

Vision

Work with images, videos, and PDFs

Function Calling

Implement tool use with Gemini

Embeddings

Generate embeddings on Vertex AI

Streaming

Stream responses in real-time