Skip to main content
This page covers all LangChain integrations with Google Gemini, Google Cloud, and other Google products (such as Google Maps, YouTube, and more). Not sure which to use?
Access Google Gemini models directly via the Gemini Developer API. This is often the best starting point for individual developers.See integrations.
Access Gemini models, Vertex AI Model Garden and a wide range of cloud services (databases, storage, document AI, etc.) via the Google Cloud Platform. Use the langchain-google-vertexai package for Vertex AI models and specific packages (e.g., langchain-google-community, langchain-google-cloud-sql-pg) for other cloud services. This is ideal for developers already using Google Cloud or needing enterprise features like MLOps, specific model tuning or enterprise support.See integrations.
See Google’s guide on migrating from the Gemini API to Vertex AI for more details on the differences.
Integration packages for Gemini models and the Vertex AI platform are maintained in the langchain-google repository.You can find a host of LangChain integrations with other Google APIs and services in the langchain-google-community package (listed on this page) and the googleapis Github organization.

Google Generative AI

Access Google Gemini models directly using the Gemini Developer API, best suited for rapid development and experimentation.

Chat models

ChatGoogleGenerativeAI

Google Gemini chat models via the Gemini Developer API.

LLMs

GoogleGenerativeAI

Access the same Gemini models using the (legacy) LLM text completion interface.

Embedding models

GoogleGenerativeAIEmbeddings

Gemini embedding models.

Google Cloud

Access Gemini models, Vertex AI Model Garden and other Google Cloud services via Vertex AI and specific cloud integrations.

Chat models

Vertex AI

Access chat models like Gemini via the Vertex AI platform.

Anthropic on Vertex AI Model Garden

from langchain_google_vertexai.model_garden_maas.llama import VertexModelGardenLlama
from langchain_google_vertexai.model_garden_maas.mistral import VertexModelGardenMistral
Local Gemma model loaded from HuggingFace.
from langchain_google_vertexai.gemma import GemmaChatLocalHF
Local Gemma model loaded from Kaggle.
from langchain_google_vertexai.gemma import GemmaChatLocalKaggle
from langchain_google_vertexai.gemma import GemmaChatVertexAIModelGarden
Implementation of the Image Captioning model as a chat.
from langchain_google_vertexai.vision_models import VertexAIImageCaptioningChat
Given an image and a prompt, edit the image. Currently only supports mask-free editing.
from langchain_google_vertexai.vision_models import VertexAIImageEditorChat
Generates an image from a prompt.
from langchain_google_vertexai.vision_models import VertexAIImageGeneratorChat
Chat implementation of a visual QnA model.
from langchain_google_vertexai.vision_models import VertexAIVisualQnAChat

LLMs

(legacy) string-in, string-out LLM interface.

Vertex AI Model Garden

Access Gemini, and hundreds of OSS models via Vertex AI Model Garden service.
Gemma:
Local Gemma model loaded from HuggingFace.
from langchain_google_vertexai.gemma import GemmaLocalHF
Local Gemma model loaded from Kaggle.
from langchain_google_vertexai.gemma import GemmaLocalKaggle
from langchain_google_vertexai.gemma import GemmaVertexAIModelGarden
Implementation of the Image Captioning model as an LLM.
from langchain_google_vertexai.vision_models import VertexAIImageCaptioning

Embedding models

Vertex AI

Generate embeddings using models deployed on Vertex AI.

Document loaders

Load documents from various Google Cloud sources.

AlloyDB for PostgreSQL

Google Cloud AlloyDB is a fully managed PostgreSQL-compatible database service.

BigQuery

Google Cloud BigQuery is a serverless data warehouse.

Bigtable

Google Cloud Bigtable is a fully managed NoSQL Big Data database service.

Cloud SQL for MySQL

Google Cloud SQL for MySQL is a fully-managed MySQL database service.

Cloud SQL for SQL Server

Google Cloud SQL for SQL Server is a fully-managed SQL Server database service.

Cloud SQL for PostgreSQL

Google Cloud SQL for PostgreSQL is a fully-managed PostgreSQL database service.

Cloud Storage (directory)

Google Cloud Storage is a managed service for storing unstructured data.

Cloud Storage (file)

Google Cloud Storage is a managed service for storing unstructured data.

El Carro for Oracle Workloads

Google El Carro Oracle Operator runs Oracle databases in Kubernetes.

Firestore (Native Mode)

Google Cloud Firestore is a NoSQL document database.

Firestore (Datastore Mode)

Google Cloud Firestore in Datastore mode

Memorystore for Redis

Google Cloud Memorystore for Redis is a fully managed Redis service.

Spanner

Google Cloud Spanner is a fully managed, globally distributed relational database service.

Speech-to-Text

Google Cloud Speech-to-Text transcribes audio files.

Cloud Vision loader

Load data using Google Cloud Vision API.
from langchain_google_community.vision import CloudVisionLoader

Document transformers

Transform documents using Google Cloud services.

Document AI

Transform unstructured data from documents into structured data, making it easier to understand, analyze, and consume.

Google Translate

Translate text and HTML with the Google Cloud Translation API.

Vector stores

Store and search vectors using Google Cloud databases and Vertex AI Vector Search.

AlloyDB for PostgreSQL

Google Cloud AlloyDB is a fully managed relational database service that offers high performance, seamless integration, and impressive scalability on Google Cloud. AlloyDB is 100% compatible with PostgreSQL.

BigQuery Vector Search

BigQuery vector search lets you use GoogleSQL to do semantic search, using vector indexes for fast but approximate results, or using brute force for exact results.

Memorystore for Redis

Vector store using Memorystore for Redis

Spanner

Vector store using Cloud Spanner

Firestore (Native Mode)

Vector store using Firestore

Cloud SQL for MySQL

Vector store using Cloud SQL for MySQL

Cloud SQL for PostgreSQL

Vector store using Cloud SQL for PostgreSQL.

Vertex AI Vector Search

Formerly known as Vertex AI Matching Engine, provides a low latency vector database. These vector databases are commonly referred to as vector similarity-matching or an approximate nearest neighbor (ANN) service.

With DataStore Backend

Vector search using Datastore for document storage.

Retrievers

Retrieve information using Google Cloud services.

Vertex AI Search

Build generative AI powered search engines using Vertex AI Search

Document AI Warehouse

Search, store, and manage documents using Document AI Warehouse.
Other retrievers
from langchain_google_community import VertexAIMultiTurnSearchRetriever
from langchain_google_community import VertexAISearchRetriever
from langchain_google_community import VertexAISearchSummaryTool

Tools

Integrate agents with various Google Cloud services.

Text-to-Speech

Google Cloud Text-to-Speech synthesizes natural-sounding speech with 100+ voices in multiple languages.

Callbacks

Track LLM/Chat model usage.
Callback Handler that tracks VertexAI usage info.
from langchain_google_vertexai.callbacks import VertexAICallbackHandler

Evaluators

Evaluate model outputs using Vertex AI.
Pair-wise evaluation using Vertex AI models.
from langchain_google_vertexai.evaluators.evaluation import VertexPairWiseStringEvaluator
Evaluate a single prediction string using Vertex AI models.
from langchain_google_vertexai.evaluators.evaluation import VertexStringEvaluator

Other Google products

Integrations with various Google services beyond the core Cloud Platform.

Document loaders

Google Drive

Google Drive file storage. Currently supports Google Docs.

Vector stores

ScaNN (Local Index)

ScaNN is a method for efficient vector similarity search at scale.

Retrievers

Google Drive

Retrieve documents from Google Drive.

Tools

Google Search

Perform web searches using Google Custom Search Engine (CSE).

Google Drive

Tools for interacting with Google Drive.

Google Finance

Query financial data.

Google Jobs

Query job listings.

Google Lens

Perform visual searches.

Google Places

Search for places information.

Google Scholar

Search academic papers.

Google Trends

Query Google Trends data.

MCP

MCP Toolbox

Simple and efficient way to connect to your databases, including those on Google Cloud like Cloud SQL and AlloyDB

Toolkits

Collections of tools for specific Google services.

Gmail

Toolkit to create, get, search, and send emails using the Gmail API.

Chat loaders

Gmail

Load chat history from Gmail threads.

3rd party integrations

Access Google services via unofficial third-party APIs.

SearchApi

searchapi.io provides API access to Google search results, YouTube, and more.

SerpApi

SerpApi provides API access to Google search results.

Serper.dev

serper.dev provides API access to Google search results.

YouTube

Search tool

Search YouTube videos without the official API.

Audio loader

Download audio from YouTube videos.

Transcripts loader

Load video transcripts.

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.