@langchain/google package.
Looking for the older
@langchain/google-genai or @langchain/google-vertexai packages? They are maintained under long-term support but are no longer recommended for new projects.Chat models
TheChatGoogle class is the recommended way to access Gemini models (such as gemini-2.5-pro, gemini-2.5-flash, and gemini-3-pro-preview) and open models like Gemma. It supports both Google AI Studio and Vertex AI in a single interface
ChatGoogle supports tool calling, structured output, multimodal inputs (images, audio, video), reasoning/thinking, image generation, text-to-speech, and Gemini-specific native tools like Google Search grounding and code execution.
ChatGoogle
Full chat model documentation, including setup, invocation, streaming, structured output, and more.
Gemini native tools
Google Search, Code Execution, URL Context, Google Maps, File Search, Computer Use, and MCP servers.
Third-party models on Vertex AI
Anthropic Claude models are also available through the Vertex AI platform. See here for more information about enabling access to the models and the model names to use.Vector stores
Vertex AI vector search
Vertex AI Vector Search, formerly known as Vertex AI Matching Engine, provides the industry’s leading high-scale low latency vector database. These vector databases are commonly referred to as vector similarity-matching or an approximate nearest neighbor (ANN) service.
Postgres vector store
The PostgresVectorStore module from the@langchain/google-cloud-sql-pg package provides a way to use CloudSQL for PostgreSQL to store
vector embeddings.
Community tools
Google-related community tools are available in the@langchain/community package:
Legacy packages
The following packages are maintained under long-term support for existing users. New projects should use@langchain/google instead.
@langchain/google-genai
The @langchain/google-genai package provides ChatGoogleGenerativeAI for accessing Gemini models through Google AI Studio. This package is built on a deprecated Google SDK and will not receive new features.
@langchain/google-vertexai
The @langchain/google-vertexai package provides ChatVertexAI for accessing Gemini models through Vertex AI. This package is superseded by the Vertex AI support built into @langchain/google.
@langchain/google-common
The @langchain/google-common package contains shared abstractions used internally by the Google integration packages. It is not intended to be used directly.