langchain-google-genai
An integration package connecting Google's genai package and LangChain
Decision gist · record as of 2026-08-14
Yes. Active maintenance, low install friction, permissive MIT license, and no known vulnerabilities make this a solid choice if you need Gemini within LangChain. Verify you have Google API credentials and understand quota constraints before deploying.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Google API credentials must be configured (typically via GOOGLE_API_KEY environment variable) before instantiating any model.
- Low install friction with a pure Python wheel.
- Actively maintained with a release on 2026-08-14.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, suitable for most projects.
last release 2026-08-14 (0 days) · last repo commit 2026-08-14 · 398 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 17,653,268 downloads/mo, #1,106 on PyPI
Alternatives
Verify before relying
pip install langchain-google-genai
from langchain_google_genai import ChatGoogleGenerativeAI
model = ChatGoogleGenerativeAI(model="gemini-pro")- Whether Google API credentials or authentication setup is required before use
- Rate limits or quota constraints on Gemini API calls through this integration
- Specific capabilities and models available through each integration point (chat, vision, embeddings)
What it is and what it does
This package bridges Google's Gemini generative AI models into the LangChain framework, allowing developers to use Google's chat, vision, and embedding capabilities as components within LangChain workflows. It wraps the google-genai package and exposes Gemini functionality through LangChain's standard interfaces, enabling code written for other providers to swap in Gemini with minimal changes.
The package depends on langchain-core for base abstractions, pydantic for data validation, google-genai for the underlying API client, and filetype for content type detection. It requires Python 3.10 or later and is actively maintained.
Use it for
- Build a chatbot using Gemini's chat models within LangChain without rewriting provider-specific code.
- Generate embeddings for semantic search or RAG pipelines using Gemini through LangChain.
- Process images with Gemini's vision capabilities as part of a LangChain agent or chain.
- Prototype multi-model AI applications by swapping between Gemini and other providers via LangChain's API.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Active maintenance, low install friction, permissive MIT license, and no known vulnerabilities make this a solid choice if you need Gemini within LangChain. Verify you have Google API credentials and understand quota constraints before deploying.
Install
langchain-google-genai on PyPI
Before you install
Low install friction with a pure Python wheel. Actively maintained with a release on 2026-08-14. Depends on langchain-core, google-genai, pydantic, and filetype.
Google API credentials must be configured (typically via GOOGLE_API_KEY environment variable) before instantiating any model.
License in practice
MIT license permits commercial and private use with minimal restrictions, suitable for most projects.
Quickstart
pip install langchain-google-genai
from langchain_google_genai import ChatGoogleGenerativeAI
model = ChatGoogleGenerativeAI(model="gemini-pro")
Verify before relying
- Whether Google API credentials or authentication setup is required before use
- Rate limits or quota constraints on Gemini API calls through this integration
- Specific capabilities and models available through each integration point (chat, vision, embeddings)
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0.0,>=3.10.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesfiletypegoogle-genailangchain-corepydantic |
| Maintenance | Actively maintained 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 17,653,268 / month, #1,106 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: langchain_google_genai-4.3.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “langchain google gemini integration”
- langchain-google-genaiIntegrates Google's Gemini AI models (chat, vision, embeddings) into…
- uipath-langchain-clientProvides LangChain-compatible chat models and embeddings that route…
- llama-index-llms-geminiIntegrates Google's Gemini LLM with LlamaIndex, though this…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also langchain-google-community · langchain-oci · langchain-google-vertexai · langchain-cerebras · langchain-openai · langchain-groq · langchain-deepseek · langchain-nvidia-ai-endpoints · langchain-cohere · langchain-sambanova