A collection of guides and examples for Generative AI on Vertex AI. Explore more in the
Generative AI Repository on GitHub.
Get started with Gemini 2.5 Flash in Vertex AI with the Gen AI Python SDK.
Function Calling
Gemini
Grounding
Multimodal
Prompting
Thinking
Get started with Gemini 2.5 Pro in Vertex AI with the Gen AI Python SDK.
Function Calling
Gemini
Grounding
Multimodal
Prompting
Thinking
Get started with Gemini 2.5 Flash-Lite in Vertex AI with the Gen AI Python SDK.
Function Calling
Gemini
Grounding
Multimodal
Prompting
Thinking
Get started with Gemini 2.0 Multimodal Live API in Vertex AI using the Gen AI Python SDK
Gemini
Live API
Multimodal
Get started with Gemini Image Generation in Vertex AI.
Gemini
Image Generation
Multimodal
Learn the essentials and best practices of prompt engineering.
Gemini
Prompting
Connect Gemini to external tools using function calling.
Function Calling
Gemini
Connect Gemini to real-world data from Google Search or Vertex AI Search to improve response quality.
Gemini
Grounding
RAG
Search
Use Batch Prediction to run inference on a large number of examples.
Batch Prediction
Gemini
Use the Long Context Window to process large amounts of multimodal data.
Gemini
Learn to control Gemini API output formats for easier data processing.
Gemini
Learn how to call Gemini using Chat Completions.
Gemini
Learn how to combine the multimodal capabilities of Gemini and Grounding with Google Search to create a marketing campaign brief and marketing assets.
Gemini
Grounding
Search
Learn about how to use Chirp 3 HD Voices, the latest generation of Google Text-to-Speech voices.
Chirp
Speech
Learn about how to use Chirp 2, the latest generation of Google's multilingual Automatic Speech Recognition models.
Chirp
Speech
Use Imagen 4 to create photorealistic images.
Imagen
Multimodal
Use Imagen 3 to edit photorealistic images using inpainting, outpainting, and Product Image Editing.
Imagen
Multimodal
Use AI's multitool, Embeddings, and Vertex AI Vector Search perform semantic matching.
Embeddings
Vector Search
Learn how to combine LangGraph's workflow capabilities with Gemini's language understanding and generation skills to streamline and automate complex financial analysis tasks.
Gemini
LangChain
LangGraph
Orchestration
Use Gemini, LangGraph, and Text-to-Speech to create custom podcast episodes.
Gemini
LangChain
LangGraph
Orchestration
Speech
Use Gemini and Text-to-Speech to create and read a story with multiple characters.
Gemini
Speech
Use Gemini to generate code, summarize a codebase, debug, improve code, and assess code.
Gemini
Multimodal
Learn about prompt injection attacks and how to mitigate them.
Gemini
Prompting
Security
Learn how to build and deploy an agent (model, tools, and reasoning) using Agent Engine.
Agent Engine
Agents
Gemini
Evaluate Gemini responses using metrics and custom datasets.
Evaluation
Gemini
Learn how to fine-tune Gemini for article summarization.
Gemini
Tuning
Build custom RAG workflows with Gemini and Vertex AI RAG Engine.
Gemini
RAG
Use Gemini to process documents for classification, extraction, and summarization.
Gemini
Multimodal
Use Gemini to process patent documents using classification, entity extraction, and object detection.
Gemini
Multimodal
This notebook showcases how to deploy DeepSeek R1 Distill Qwen 32B from Hugging Face Hub on Vertex AI.
Agents
This notebook demonstrates multimodal sentiment analysis with Gemini by comparing sentiment analysis performed directly on audio with analysis performed on its text transcript.
Gemini
Multimodal
This notebook demonstrates how to use Gemini as your personal productivity coach, by connecting it to Google Workspace APIs.
Function Calling
Gemini
Workspace
In this tutorial, you will learn how to use the Google Gen AI SDK for Python to interact with Veo 3 and generate new videos from text prompts.
Multimodal
Veo
Intro to Gemini 2.5 Flash Get started with Gemini 2.5 Flash in Vertex AI with the Gen AI Python SDK. Intro to Gemini 2.5 Pro Get started with Gemini 2.5 Pro in Vertex AI with the Gen AI Python SDK. Intro to Gemini 2.5 Flash-Lite Get started with Gemini 2.5 Flash-Lite in Vertex AI with the Gen AI Python SDK. Get Started with the Multimodal Live API Get started with Gemini 2.0 Multimodal Live API in Vertex AI using the Gen AI Python SDK Gemini 2.0 Flash Image Generation in Vertex AI Get started with Gemini Image Generation in Vertex AI. Intro to Prompt Engineering Learn the essentials and best practices of prompt engineering. Function Calling with Gemini Connect Gemini to external tools using function calling. Grounding with Gemini Connect Gemini to real-world data from Google Search or Vertex AI Search to improve response quality. Batch Prediction with Gemini Use Batch Prediction to run inference on a large number of examples. Long Context Window Use the Long Context Window to process large amounts of multimodal data. Intro to Context Caching Use context caching to store frequently used data. Intro to Structured Output with the Gemini API Learn to control Gemini API output formats for easier data processing. Call Gemini by using the OpenAI Library Learn how to call Gemini using Chat Completions. Creating Marketing Assets using Gemini 2.0 Flash Learn how to combine the multimodal capabilities of Gemini and Grounding with Google Search to create a marketing campaign brief and marketing assets. Get started with Chirp 3 HD Voices for Text-to-Speech Learn about how to use Chirp 3 HD Voices, the latest generation of Google Text-to-Speech voices. Get started with Chirp 2 for Speech-to-Text Learn about how to use Chirp 2, the latest generation of Google's multilingual Automatic Speech Recognition models. Intro to Imagen 4 Image Generation Use Imagen 4 to create photorealistic images. Imagen 3 Image Editing Use Imagen 3 to edit photorealistic images using inpainting, outpainting, and Product Image Editing. Get Started with Text Embeddings + Vertex AI Vector Search Use AI's multitool, Embeddings, and Vertex AI Vector Search perform semantic matching. Intro to LangGraph with Gemini Learn how to combine LangGraph's workflow capabilities with Gemini's language understanding and generation skills to streamline and automate complex financial analysis tasks. Create custom podcast episodes Use Gemini, LangGraph, and Text-to-Speech to create custom podcast episodes. Storytelling with Gemini and Text-to-Speech Use Gemini and Text-to-Speech to create and read a story with multiple characters. Analyze a codebase Use Gemini to generate code, summarize a codebase, debug, improve code, and assess code. LLM Security for developers Learn about prompt injection attacks and how to mitigate them. Intro to Agent Engine Learn how to build and deploy an agent (model, tools, and reasoning) using Agent Engine. Intro to Gen AI Evaluation Service Evaluate Gemini responses using metrics and custom datasets. Gemini Supervised Fine-tuning for Article Summarization Learn how to fine-tune Gemini for article summarization. Intro to Vertex AI RAG Engine Build custom RAG workflows with Gemini and Vertex AI RAG Engine. Document Processing with Gemini Use Gemini to process documents for classification, extraction, and summarization. Patents Document Understanding with Gemini Use Gemini to process patent documents using classification, entity extraction, and object detection. Build and deploy a Hugging Face smolagent using DeepSeek on Vertex AI This notebook showcases how to deploy DeepSeek R1 Distill Qwen 32B from Hugging Face Hub on Vertex AI. Multimodal Sentiment Analysis with Gemini This notebook demonstrates multimodal sentiment analysis with Gemini by comparing sentiment analysis performed directly on audio with analysis performed on its text transcript. Productivity Coaching with Gemini and Google Calendar This notebook demonstrates how to use Gemini as your personal productivity coach, by connecting it to Google Workspace APIs. Veo 3 Video Generation In this tutorial, you will learn how to use the Google Gen AI SDK for Python to interact with Veo 3 and generate new videos from text prompts. Intro to the Google Gen AI SDK Intro to the Google Gen AI SDK. Gemini: An Overview of Multimodal Use Cases How to prompt Gemini with multimodal data (text, documents, images, video, and audio). Introduction to Gemini with REST API/cURL Prompt Engineering, Evaluation, and Prompt Templating Use Gen AI Evaluation Service SDK for prompt engineering and evaluation. Intro to Multimodal Embeddings Learn about multimodal embeddings. Intro to Embeddings Tuning Learn how to tune embeddings models. Task Type Embeddings Learn how to get better embeddings for your specific task. Hybrid Search with Vertex AI Vector Search Learn how to use hybrid search with Vertex AI Vector Search combining semantic & keyword search. AI Agents for Engineers (Evolution of AI Agents) This notebook demonstrates 3 different approaches to generating essays using the Gemini API, Zero-Shot, Step-by-Step with LangChain, and Iterative with LangGraph. Hugging Face DLCs: Serving Gemma with Text Generation Inference (TGI) on Vertex AI Learn how to deploy Google Gemma from the Hugging Face Hub on Vertex AI using the Hugging Face Deep Learning Container (DLC) for Text Generation Inference (TGI). Running a Gemma 2-based agentic RAG with Ollama on Vertex AI and LangGraph This notebook showcases how to run a Gemma 2-based Agent with Ollama on Vertex AI and LangGraph. Hugging Face DLCs: Serving PaliGemma using Pytorch Inference on Vertex AI with Custom Handler Learn how to deploy Google PaliGemma from the Hugging Face Hub on Vertex AI using the Hugging Face Deep Learning Container (DLC) for Pytorch Inference in combination with a custom handler. Hugging Face DLCs: Fine-tuning Gemma with Transformer Reinforcement Learning (TRL) on Vertex AI Learn how to fine-tune Gemma with Transformer Reinforcement Learning (TRL) on Vertex AI. Guess who or what app using Hugging Face Deep Learning container model on Vertex AI Create a"Guess who or what" application using Vertex AI, Hugging Face Deep Learning container, an image generation open model, and Gemini to solve and visualize riddles. Visualizing embedding similarity from text documents using t-SNE plots Visualize embedding similarity from text documents using t-SNE plots. Vertex AI Vector Search Quickstart Learn how to use Vertex AI Vector Search to find similar text documents. Anomaly Detection of Infrastructure Logs using Gemini and BigQuery Vector Search Learn how to large volumes of infrastructure logs using Gemini, vector embeddings and BigQuery Vector Search to perform anomaly detection. Log Anomaly Detection & Investigation with Text Embeddings + BigQuery Vector Search Learn how to large volumes of audit logs using Gemini, vector embeddings and BigQuery Vector Search to perform anomaly detection. Working with Data Structures and Schemas in Gemini Function Calling Learn how to use Gemini Function Calling with data structures and schemas. Working with Parallel Function Calls and Multiple Function Responses in Gemini Learn how to use parallel function calls and multiple function responses in Gemini. Introduction to ReAct Agents with Gemini & Function Calling Learn how to use ReAct Agents with Gemini and Function Calling. Forced Function Calling with Tool Configurations in Gemini Learn how to use forced function calling with tool configurations in Gemini. Using Gemini Function Calling to Get Real-Time Company News and Insights Learn how to use Gemini Function Calling to get real-time company news and insights. Multimodal Function Calling with the Gemini API & Python SDK Learn how to use Gemini Multimodal Function Calling. Advanced RAG Techniques - Vertex RAG Engine Retrieval Quality Evaluation and Hyperparameters Tuning Learn about advanced RAG techniques with evaluation and hyperparameter tuning. Vertex AI RAG Engine with Pinecone Learn how to use Pinecone with Vertex AI RAG Engine. Vertex AI RAG Engine with Weaviate Learn how to use Weaviate with Vertex AI RAG Engine. Vertex AI RAG Engine with Vertex AI Feature Store Learn how to use Vertex AI Feature Store with Vertex AI RAG Engine. Vertex AI RAG Engine with Vertex AI Vector Search Learn how to use Vertex AI Vector Search with Vertex AI RAG Engine. Vertex AI RAG Engine with Vertex AI Search Learn how to use Vertex AI Search with Vertex AI RAG Engine. Debugging and Optimizing Agents: A Guide to Tracing in Agent Engine Learn how to use Tracing in Agent Engine. Deploying a RAG Application with AlloyDB to Agent Engine Building a Conversational Search Agent with Agent Engine and RAG on Vertex AI Search Building a Multi-Agent RAG Application with LangGraph and Agent Engine Deploying a RAG Application with Cloud SQL for PostgreSQL to Agent Engine Building and Deploying a Google Maps API Agent with Agent Engine Building and Deploying a LangGraph Application with Agent Engine in Vertex AI Video Analysis with Gemini YouTube Video Analysis with Gemini Building a Multimodal Chatbot for Warranty Claims using Gemini and Vector Search in Vertex AI Multimodal Retrieval Augmented Generation (RAG) using Gemini API in Vertex AI LlamaIndex with Vertex AI Vector Search to perform question answering RAG Multimodal Retrieval Augmented Generation (RAG) with Gemini, Vertex AI Vector Search, and LangChain Small-to-big Retrieval-Augmented Generation ReAct (Reasoning + Acting) + Custom tool for Healthcare NL API + Gemini + LangChain Using Gemini in Education AI Quick Build Experience Code Retrieval Augmented Generation (RAG) with Gemini API Product listing generation with Gemini Multimodal retail recommendation: using Gemini to recommend items based on images and image reasoning Sheet Music Analysis with Gemini Analyzing movie posters in BigQuery with Gemini Getting Started with LangChain 🦜️🔗 + Gemini API in Vertex AI Building a Weather Agent with AutoGen and Gemini Vertex AI Prompt Optimizer Notebook UI Vertex AI Prompt Optimizer - Tool usage Vertex AI Prompt Optimizer - Custom metric Intro to Vertex AI Prompt Optimizer Text Summarization with Generative Models on Vertex AI Ideation with Generative Models on Vertex AI Chain of Thought & ReAct Question Answering with Generative Models on Vertex AI Text Classification with Generative Models on Vertex AI Text Extraction with Generative Models on Vertex AI Supervised Fine Tuning with Gemini 2.0 Flash for Change Detection Supervised Fine-Tuning with Gemini 2.0 Flash for Q & A Supervised Fine Tuning with Gemini 2.0 Flash for Image Captioning Use Gen AI Evaluation SDK to Evaluate Models in Vertex AI Studio, Model Garden, and Model Registry Evaluate Generated Answers from RAG using Rapid Evaluation and Dataflow ML with Vertex AI Pipelines Enhancing Quality and Explainability with Vertex AI Evaluation Evaluate and Compare Gen AI Model Settings Bring-Your-Own-Autorater using Custom Metrics Evaluate a Translation Model Compare and Migrate from PaLM to Gemini Model Evaluating Multimodal Tasks Evaluate LangChain Compare Generative AI Models Evaluate Generated Answers from RAG for QA with Gen AI Evaluation Service SDK Customize Model-based Metrics to Evaluate a Gen AI Model Evaluate Generative Model Tool Use Gen AI and LLM Security - ReAct and RAG Attacks & Mitigations Responsible AI with Gemini API in Vertex AI: Safety Ratings and Thresholds Monitor Batch Prediction with Gemini API Imagen 3 Customized Images Create High Quality Visual Assets with Imagen and Gemini Create a Photoshop Document with Image Segmentation on Vertex AI Enhance Imagen Prompts with Gemini Image Segmentation on Vertex AI Vertex AI Search with Filters & Metadata Vertex AI Search - Querying Blended Data Apps and Summarization with Gemini Create a Vertex AI Search Datastore and Search Engine Building Search Applications with Vertex AI Search Question Answering Over Documents Bulk Question Answering with Vertex AI Search Custom Embeddings with Vertex AI Search Get Started with Chirp 2 - Advanced Features Multimodal Function Calling with Claude Models Vertex AI Search and Conversation Data Store Status Checker Building a Research Multi Agent System - a Design Pattern Overview with Gemini 2.0 Intro to Generating and Executing Python Code with Gemini 2.0 Evaluating Agents - Evaluate a CrewAI agent with Vertex AI Gen AI Evaluation Evaluating Agents - Evaluate a LangGraph agent with Vertex AI Gen AI Evaluation Interactive Loan Application Assistant (Financial Services) Vertex AI RAG Engine with Vertex AI Search Evaluate a CrewAI agent on Vertex AI Agent Engine (Customized template) Evaluating a LangChain Agent on Vertex AI Agent Engine (Prebuilt template) Evaluate a LangGraph agent on Vertex AI Agent Engine (Customized template) Q&A Chatbot with Vertex AI Search for summarized website results Getting started with Gemini using Vertex AI in Express ModeGemini Quickstarts
Intro to Gemini 2.5 Flash
Intro to Gemini 2.5 Pro
Intro to Gemini 2.5 Flash-Lite
Get Started with the Multimodal Live API
Gemini 2.0 Flash Image Generation in Vertex AI
Intro to Prompt Engineering
Function Calling with Gemini
Grounding with Gemini
Batch Prediction with Gemini
Long Context Window
Intro to Structured Output with the Gemini API
Call Gemini by using the OpenAI Library
Featured Tutorials
Creating Marketing Assets using Gemini 2.0 Flash
Get started with Chirp 3 HD Voices for Text-to-Speech
Get started with Chirp 2 for Speech-to-Text
Intro to Imagen 4 Image Generation
Imagen 3 Image Editing
Get Started with Text Embeddings + Vertex AI Vector Search
Intro to LangGraph with Gemini
Create custom podcast episodes
Storytelling with Gemini and Text-to-Speech
Analyze a codebase
LLM Security for developers
Intro to Agent Engine
Intro to Gen AI Evaluation Service
Gemini Supervised Fine-tuning for Article Summarization
Intro to Vertex AI RAG Engine
Document Processing with Gemini
Patents Document Understanding with Gemini
Build and deploy a Hugging Face smolagent using DeepSeek on Vertex AI
Multimodal Sentiment Analysis with Gemini
Productivity Coaching with Gemini and Google Calendar
Veo 3 Video Generation
All Tutorials
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
View on GitHub
What's next
Generative AI on Vertex AI Cookbook
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-15 UTC.