Install and use
OpenAI
OpenAI
Install:Add environment variables:Instantiate the model:
Anthropic
Anthropic
Install:Add environment variables:Instantiate the model:
Google Gemini
Google Gemini
Install:Add environment variables:Instantiate the model:
MistralAI
MistralAI
Install:Add environment variables:Instantiate the model:
Groq
Groq
Install:Add environment variables:Instantiate the model:
Featured models
While these LangChain classes support the indicated advanced feature, you may need to refer to provider-specific documentation to learn which hosted models or backends support the feature.
Routers & proxies
Routers and proxies give you access to models from multiple providers through a single API and credential. They can simplify billing, let you switch between models without changing integrations, and offer features like automatic fallbacks.Chat Completions API
Certain model providers offer endpoints that are compatible with OpenAI’s (legacy) Chat Completions API. In such case, you can useChatOpenAI with a custom base_url to connect to these endpoints. Note that features built on top of the Chat Completions API may not be fully supported by ChatOpenAI; in such cases, consider using a provider-specific class if available.
All chat models
If you’d like to contribute an integration, see Contributing integrations.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

