> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google integrations

> Integrate with Google using LangChain Python.

This page covers all LangChain integrations with [Google Gemini](https://ai.google.dev/gemini-api/docs), [Google Cloud](https://cloud.google.com/), and other Google products (such as Google Maps, YouTube, and [more](#other-google-products)).

<Note>
  **Unified SDK & package consolidation**

  As of `langchain-google-genai` 4.0.0, this package uses the consolidated [`google-genai`](https://googleapis.github.io/python-genai/) SDK and now supports **both the Gemini Developer API and Vertex AI** backends.

  The `langchain-google-vertexai` package remains supported for Vertex AI platform-specific features (Model Garden, Vector Search, evaluation services, etc.).

  Read the [full announcement and migration guide](https://github.com/langchain-ai/langchain-google/discussions/1422).
</Note>

Not sure which package to use?

<AccordionGroup>
  <Accordion title="Google Generative AI (Gemini API & Vertex AI)">
    Access Google Gemini models via the **[Gemini Developer API](https://ai.google.dev/)** or **[Vertex AI](https://cloud.google.com/vertex-ai)**. The backend is selected automatically based on your configuration.

    * **Gemini Developer API**: Quick setup with API key, ideal for individual developers and rapid prototyping
    * **Vertex AI**: Enterprise features with Google Cloud integration (requires GCP project)

    Use the `langchain-google-genai` package for chat models, LLMs, and embeddings.

    [See integrations.](#google-generative-ai)
  </Accordion>

  <Accordion title="Google Cloud (Vertex AI Platform Services)">
    Access Vertex AI platform-specific services beyond Gemini models: Model Garden (Llama, Mistral, Anthropic), evaluation services, and specialized vision models.

    Use the `langchain-google-vertexai` package for platform services and specific packages (e.g., `langchain-google-community`, `langchain-google-cloud-sql-pg`) for other cloud services like databases and storage.

    [See integrations.](#google-cloud)
  </Accordion>
</AccordionGroup>

See Google's guide on [migrating from the Gemini API to Vertex AI](https://ai.google.dev/gemini-api/docs/migrate-to-cloud) for more details on the differences.

***

## Google Generative AI

Access Google Gemini models via the [Gemini Developer API](https://ai.google.dev/gemini-api/docs) or [Vertex AI](https://cloud.google.com/vertex-ai) using the unified `langchain-google-genai` package.

### Chat models

<Columns cols={1}>
  <Card title="ChatGoogleGenerativeAI" href="/oss/python/integrations/chat/google_generative_ai" cta="Get started" icon="message" arrow>
    Google Gemini chat models via **Gemini Developer API** or **Vertex AI**.
  </Card>
</Columns>

### LLMs

<Columns cols={1}>
  <Card title="GoogleGenerativeAI" href="/oss/python/integrations/llms/google_generative_ai" cta="Get started" icon="cursor-text" arrow>
    Gemini models using the (legacy) LLM text completion interface.
  </Card>
</Columns>

### Embedding models

<Columns cols={1}>
  <Card title="GoogleGenerativeAIEmbeddings" href="/oss/python/integrations/embeddings/google_generative_ai" cta="Get started" icon="stack-2" arrow>
    Gemini embedding models via **Gemini Developer API** or **Vertex AI**.
  </Card>
</Columns>

***

## Google Cloud

Access Vertex AI platform-specific services including Model Garden (Llama, Mistral, Anthropic), Vector Search, evaluation services, and specialized vision models.

<Note>
  **For Gemini models**, use [`ChatGoogleGenerativeAI`](/oss/python/integrations/chat/google_generative_ai) from `langchain-google-genai`. The classes below focus on **Vertex AI platform services** not available in the consolidated SDK.
</Note>

### Chat models

<Columns cols={2}>
  <Card title="ChatAnthropicVertex" icon="messages" href="/oss/python/integrations/chat/google_anthropic_vertex" cta="Get started" arrow>
    Anthropic on Vertex AI Model Garden
  </Card>
</Columns>

<AccordionGroup>
  <Accordion title="ChatVertexAI (deprecated)">
    **Deprecated**—Use [`ChatGoogleGenerativeAI`](/oss/python/integrations/chat/google_generative_ai) for Gemini models instead.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai import ChatVertexAI
    ```
  </Accordion>

  <Accordion title="VertexModelGardenLlama">
    Llama on Vertex AI Model Garden

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.model_garden_maas.llama import VertexModelGardenLlama
    ```
  </Accordion>

  <Accordion title="VertexModelGardenMistral">
    Mistral on Vertex AI Model Garden

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.model_garden_maas.mistral import VertexModelGardenMistral
    ```
  </Accordion>

  <Accordion title="GemmaChatLocalHF">
    Local Gemma model loaded from HuggingFace.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.gemma import GemmaChatLocalHF
    ```
  </Accordion>

  <Accordion title="GemmaChatLocalKaggle">
    Local Gemma model loaded from Kaggle.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.gemma import GemmaChatLocalKaggle
    ```
  </Accordion>

  <Accordion title="GemmaChatVertexAIModelGarden">
    Gemma on Vertex AI Model Garden

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.gemma import GemmaChatVertexAIModelGarden
    ```
  </Accordion>

  <Accordion title="VertexAIImageCaptioningChat">
    Image captioning model as a chat interface.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.vision_models import VertexAIImageCaptioningChat
    ```
  </Accordion>

  <Accordion title="VertexAIImageEditorChat">
    Edit images given a prompt. Currently supports mask-free editing only.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.vision_models import VertexAIImageEditorChat
    ```
  </Accordion>

  <Accordion title="VertexAIImageGeneratorChat">
    Generate images from a prompt.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.vision_models import VertexAIImageGeneratorChat
    ```
  </Accordion>

  <Accordion title="VertexAIVisualQnAChat">
    Visual question answering model as a chat interface.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.vision_models import VertexAIVisualQnAChat
    ```
  </Accordion>
</AccordionGroup>

### LLMs

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

<Columns cols={1}>
  <Card title="VertexAIModelGarden" icon="cursor-text" href="/oss/python/integrations/llms/google_vertex_ai#vertex-model-garden" cta="Get started" arrow>
    Hundreds of OSS models via Vertex AI Model Garden.
  </Card>
</Columns>

<AccordionGroup>
  <Accordion title="VertexAI (deprecated)">
    **Deprecated**—Use [`GoogleGenerativeAI`](/oss/python/integrations/llms/google_generative_ai) for Gemini models instead.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai import VertexAI
    ```
  </Accordion>

  <Accordion title="Gemma local from Hugging Face">
    Local Gemma model loaded from HuggingFace.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.gemma import GemmaLocalHF
    ```
  </Accordion>

  <Accordion title="Gemma local from Kaggle">
    Local Gemma model loaded from Kaggle.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.gemma import GemmaLocalKaggle
    ```
  </Accordion>

  <Accordion title="Gemma on Vertex AI Model Garden">
    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.gemma import GemmaVertexAIModelGarden
    ```
  </Accordion>

  <Accordion title="Vertex AI image captioning">
    Image captioning model as an LLM interface.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.vision_models import VertexAIImageCaptioning
    ```
  </Accordion>
</AccordionGroup>

### Embedding models

<AccordionGroup>
  <Accordion title="VertexAIEmbeddings (deprecated)">
    **Deprecated**—Use [`GoogleGenerativeAIEmbeddings`](/oss/python/integrations/embeddings/google_generative_ai) instead.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai import VertexAIEmbeddings
    ```
  </Accordion>
</AccordionGroup>

### Document loaders

<Columns cols={2}>
  <Card title="AlloyDB for PostgreSQL" href="/oss/python/integrations/document_loaders/google_alloydb" cta="Get started" arrow>
    PostgreSQL-compatible database on Google Cloud.
  </Card>

  <Card title="BigQuery" href="/oss/python/integrations/document_loaders/google_bigquery" cta="Get started" arrow>
    Serverless data warehouse.
  </Card>

  <Card title="Bigtable" href="/oss/python/integrations/document_loaders/google_bigtable" cta="Get started" arrow>
    Key-value and wide-column store for structured and semi-structured data.
  </Card>

  <Card title="Cloud SQL for MySQL" href="/oss/python/integrations/document_loaders/google_cloud_sql_mysql" cta="Get started" arrow>
    Managed MySQL database.
  </Card>

  <Card title="Cloud SQL for SQL Server" href="/oss/python/integrations/document_loaders/google_cloud_sql_mssql" cta="Get started" arrow>
    Managed SQL Server database.
  </Card>

  <Card title="Cloud SQL for PostgreSQL" href="/oss/python/integrations/document_loaders/google_cloud_sql_pg" cta="Get started" arrow>
    Managed PostgreSQL database.
  </Card>

  <Card title="Cloud Storage (directory)" href="/oss/python/integrations/document_loaders/google_cloud_storage_directory" cta="Get started" arrow>
    Load documents from a GCS bucket directory.
  </Card>

  <Card title="Cloud Storage (file)" href="/oss/python/integrations/document_loaders/google_cloud_storage_file" cta="Get started" arrow>
    Load a single document from GCS.
  </Card>

  <Card title="El Carro for Oracle Workloads" href="/oss/python/integrations/document_loaders/google_el_carro" cta="Get started" arrow>
    Oracle databases on Kubernetes via El Carro.
  </Card>

  <Card title="Firestore (Native Mode)" href="/oss/python/integrations/document_loaders/google_firestore" cta="Get started" arrow>
    NoSQL document database.
  </Card>

  <Card title="Firestore (Datastore Mode)" href="/oss/python/integrations/document_loaders/google_datastore" cta="Get started" arrow>
    Firestore in Datastore mode.
  </Card>

  <Card title="Memorystore for Redis" href="/oss/python/integrations/document_loaders/google_memorystore_redis" cta="Get started" arrow>
    Managed Redis service.
  </Card>

  <Card title="Spanner" href="/oss/python/integrations/document_loaders/google_spanner" cta="Get started" arrow>
    Globally distributed relational database.
  </Card>

  <Card title="Speech-to-Text" href="/oss/python/integrations/document_loaders/google_speech_to_text" cta="Get started" arrow>
    Transcribe audio files.
  </Card>
</Columns>

<Accordion title="Cloud Vision loader">
  Load data using Google Cloud Vision API.

  ```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
  from langchain_google_community.vision import CloudVisionLoader
  ```
</Accordion>

### Document transformers

<Columns cols={2}>
  <Card title="Document AI" href="/oss/python/integrations/document_transformers/google_docai" cta="Get started" arrow>
    Extract structured data from unstructured documents.
  </Card>

  <Card title="Google Translate" href="/oss/python/integrations/document_transformers/google_translate" cta="Get started" arrow>
    Translate text and HTML via Cloud Translation API.
  </Card>
</Columns>

### Vector stores

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

<Columns cols={2}>
  <Card title="AlloyDB for PostgreSQL" href="/oss/python/integrations/vectorstores/google_alloydb" cta="Get started" arrow>
    PostgreSQL-compatible vector store on AlloyDB.
  </Card>

  <Card title="BigQuery Vector Search" href="/oss/python/integrations/vectorstores/google_bigquery_vector_search" cta="Get started" arrow>
    Semantic search using GoogleSQL with vector indexes.
  </Card>

  <Card title="Memorystore for Redis" href="/oss/python/integrations/vectorstores/google_memorystore_redis" cta="Get started" arrow>
    Vector store on Memorystore for Redis.
  </Card>

  <Card title="Spanner" href="/oss/python/integrations/vectorstores/google_spanner" cta="Get started" arrow>
    Vector store on Cloud Spanner.
  </Card>

  <Card title="Bigtable" href="/oss/python/integrations/vectorstores/google_bigtable" cta="Get started" arrow>
    Vector store on Cloud Bigtable.
  </Card>

  <Card title="Firestore (Native Mode)" href="/oss/python/integrations/vectorstores/google_firestore" cta="Get started" arrow>
    Vector store on Firestore.
  </Card>

  <Card title="Cloud SQL for MySQL" href="/oss/python/integrations/vectorstores/google_cloud_sql_mysql" cta="Get started" arrow>
    Vector store on Cloud SQL for MySQL.
  </Card>

  <Card title="Cloud SQL for PostgreSQL" href="/oss/python/integrations/vectorstores/google_cloud_sql_pg" cta="Get started" arrow>
    Vector store on Cloud SQL for PostgreSQL.
  </Card>

  <Card title="Vertex AI Vector Search" href="/oss/python/integrations/vectorstores/google_vertex_ai_vector_search" cta="Get started" arrow>
    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.
  </Card>

  <Card title="Vertex AI Vector Search + Datastore" href="/oss/python/integrations/vectorstores/google_vertex_ai_vector_search#optional--you-can-also-create-vectore-and-store-chunks-in-a-datastore" cta="Get started" arrow>
    Vector search with Datastore for document storage.
  </Card>
</Columns>

### Retrievers

<Columns cols={2}>
  <Card title="Vertex AI Search" icon="search" href="/oss/python/integrations/retrievers/google_vertex_ai_search" cta="Get started" arrow>
    Generative AI powered search via Vertex AI Search.
  </Card>

  <Card title="Document AI Warehouse" icon="building-warehouse" href="https://cloud.google.com/document-ai-warehouse" cta="Get started" arrow>
    Search, store, and manage documents using Document AI Warehouse.
  </Card>
</Columns>

```python Other retrievers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
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.

<Columns cols={2}>
  <Card title="Text-to-Speech" icon="volume" href="/oss/python/integrations/tools/google_cloud_texttospeech" cta="Get started" arrow>
    Synthesize natural-sounding speech with 100+ voices.
  </Card>
</Columns>

### Callbacks

Track LLM/Chat model usage.

<AccordionGroup>
  <Accordion title="Vertex AI callback handler">
    Track `VertexAI` usage info.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.callbacks import VertexAICallbackHandler
    ```
  </Accordion>

  <Accordion title="Google BigQuery">
    See the [documentation](/oss/python/integrations/callbacks/google_bigquery) for more details.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_community.callbacks.bigquery_callback import BigQueryCallbackHandler
    ```
  </Accordion>
</AccordionGroup>

### Evaluators

Evaluate model outputs using Vertex AI.

<AccordionGroup>
  <Accordion title="VertexPairWiseStringEvaluator">
    Pair-wise evaluation using Vertex AI models.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.evaluators.evaluation import VertexPairWiseStringEvaluator
    ```
  </Accordion>

  <Accordion title="VertexStringEvaluator">
    Single prediction evaluation using Vertex AI models.

    ```python wrap theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
    from langchain_google_vertexai.evaluators.evaluation import VertexStringEvaluator
    ```
  </Accordion>
</AccordionGroup>

***

## Other Google products

Integrations with various Google services beyond the core Cloud Platform.

### Document loaders

<Columns cols={1}>
  <Card title="Google Drive" href="/oss/python/integrations/document_loaders/google_drive" cta="Get started" arrow>
    Load files from Google Drive. Currently supports Google Docs.
  </Card>
</Columns>

### Vector stores

<Columns cols={1}>
  <Card title="ScaNN (Local Index)" href="/oss/python/integrations/vectorstores/google_scann" cta="Get started" arrow>
    Efficient local vector similarity search at scale.
  </Card>
</Columns>

### Retrievers

<Columns cols={1}>
  <Card title="Google Drive" href="/oss/python/integrations/retrievers/google_drive" cta="Get started" arrow>
    Retrieve documents from Google Drive.
  </Card>
</Columns>

### Tools

<Columns cols={2}>
  <Card title="Google Search" href="/oss/python/integrations/tools/google_search" cta="Get started" arrow>
    Web search via Google Custom Search Engine (CSE).
  </Card>

  <Card title="Google Drive" href="/oss/python/integrations/tools/google_drive" cta="Get started" arrow>
    Interact with Google Drive.
  </Card>

  <Card title="Google Finance" href="/oss/python/integrations/tools/google_finance" cta="Get started" arrow>
    Query financial data.
  </Card>

  <Card title="Google Jobs" href="/oss/python/integrations/tools/google_jobs" cta="Get started" arrow>
    Query job listings.
  </Card>

  <Card title="Google Lens" href="/oss/python/integrations/tools/google_lens" cta="Get started" arrow>
    Visual searches.
  </Card>

  <Card title="Google Places" href="/oss/python/integrations/tools/google_places" cta="Get started" arrow>
    Search for places.
  </Card>

  <Card title="Google Scholar" href="/oss/python/integrations/tools/google_scholar" cta="Get started" arrow>
    Search academic papers.
  </Card>

  <Card title="Google Trends" href="/oss/python/integrations/tools/google_trends" cta="Get started" arrow>
    Query Google Trends data.
  </Card>
</Columns>

### MCP

<Columns cols={1}>
  <Card title="MCP Toolbox" href="/oss/python/integrations/tools/mcp_toolbox" cta="Get started" arrow>
    Connect to databases including Cloud SQL and AlloyDB.
  </Card>
</Columns>

### Toolkits

<Columns cols={2}>
  <Card title="Gmail" icon="mail" href="/oss/python/integrations/tools/google_gmail" cta="Get started" arrow>
    Create, search, and send emails via the Gmail API.
  </Card>
</Columns>

### Chat loaders

<Columns cols={2}>
  <Card title="Gmail" icon="mail" href="/oss/python/integrations/chat_loaders/google_gmail" cta="Get started" arrow>
    Load chat history from Gmail threads.
  </Card>
</Columns>

***

## 3rd party integrations

Access Google services via unofficial third-party APIs.

### Search

<Columns cols={2}>
  <Card title="SearchApi" icon="search" href="/oss/python/integrations/tools/searchapi" cta="Get started" arrow>
    API access to Google search results, YouTube, and more.
  </Card>

  <Card title="SerpApi" icon="search" href="/oss/python/integrations/tools/serpapi" cta="Get started" arrow>
    API access to Google search results.
  </Card>

  <Card title="Serper.dev" icon="search" href="/oss/python/integrations/tools/google_serper" cta="Get started" arrow>
    API access to Google search results.
  </Card>

  <Card title="cloro" icon="search" href="/oss/python/integrations/tools/cloro" cta="Get started" arrow>
    Google Search results with AI Overview support.
  </Card>
</Columns>

### YouTube

<Columns cols={2}>
  <Card title="Search tool" icon="brand-youtube" href="/oss/python/integrations/tools/youtube" cta="Get started" arrow>
    Search YouTube videos without the official API.
  </Card>

  <Card title="Audio loader" icon="brand-youtube" href="/oss/python/integrations/document_loaders/youtube_audio" cta="Get started" arrow>
    Download audio from YouTube videos.
  </Card>

  <Card title="Transcripts loader" icon="brand-youtube" href="/oss/python/integrations/document_loaders/youtube_transcript" cta="Get started" arrow>
    Load video transcripts.
  </Card>
</Columns>

***

<div className="source-links">
  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>

  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/google.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>
</div>
