Skip to main content

Chat model integrations

还没翻译译自英文(docs.langchain.com)本页 32 段都还没译

Chat models are language models that use a sequence of messages as inputs and return messages as outputs (as opposed to traditional, plaintext LLMs).

Integration components

Info

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.

ModelStreamTool callingStructured outputMultimodalDownloads
AzureChatOpenAI✅✅✅✅Downloads per month
ChatOpenAI✅✅✅✅Downloads per month
ChatVertexAI (deprecated)✅✅✅✅Downloads per month
ChatAnthropic✅✅✅✅Downloads per month
ChatGoogleGenerativeAI✅✅✅✅Downloads per month
ChatOllama✅✅✅✅Downloads per month
ChatGroq✅✅✅✅Downloads per month
ChatLiteLLM✅✅✅✅Downloads per month
ChatHuggingFace❌✅✅✅Downloads per month
ChatMistralAI✅✅✅❌Downloads per month
ChatOpenRouter✅✅✅✅Downloads per month
ChatXAI✅✅✅❌Downloads per month
ChatDeepSeek✅✅✅❌Downloads per month
ChatNVIDIA✅✅✅✅Downloads per month
ChatDatabricks✅✅✅❌Downloads per month
ChatCohereDownloads per month
ChatTogether✅✅✅✅Downloads per month
ChatAmazonNova✅✅✅Downloads per month

See the full list of chat model integrations below for more options.

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.

ProviderIntegrationDescription
OpenRouterChatOpenRouterUnified access to models from OpenAI, Anthropic, Google, Meta, and more
LiteLLMChatLiteLLMRouterUnified interface for OpenAI, Anthropic, Azure, Hugging Face, and more with routing and fallbacks

Chat Completions API

Certain model providers offer endpoints that are compatible with OpenAI's Chat Completions API. In such cases, you can use ChatOpenAI with a custom base_url to connect to these endpoints for basic chat functionality.

Warning

ChatOpenAI targets official OpenAI API specifications only. Non-standard response fields from third-party providers (e.g., reasoning_content, reasoning, reasoning_details) are not extracted or preserved. Use a provider-specific package when you need access to non-standard features.

For instance, OpenRouter has a dedicated LangChain integration. See the ChatOpenRouter guide for setup and usage.

All chat models

ModelStreamTool callingStructured outputMultimodalDownloads
AzureChatOpenAI✅✅✅✅Downloads per month
ChatOpenAI✅✅✅✅Downloads per month
vLLMDownloads per month
ChatAnthropicVertexDownloads per month
ChatVertexAI (deprecated)✅✅✅✅Downloads per month
ChatAnthropic✅✅✅✅Downloads per month
ChatAnthropicToolsDownloads per month
ChatGoogleGenerativeAI✅✅✅✅Downloads per month
ChatBedrock✅✅✅✅Downloads per month
ChatOllama✅✅✅✅Downloads per month
ChatGroq✅✅✅✅Downloads per month
ChatLiteLLM✅✅✅✅Downloads per month
ChatHuggingFace❌✅✅✅Downloads per month
ChatMistralAI✅✅✅❌Downloads per month
ChatOpenRouter✅✅✅✅Downloads per month
ChatXAI✅✅✅❌Downloads per month
ChatDeepSeek✅✅✅❌Downloads per month
ChatFireworks✅✅✅✅Downloads per month
AzureAIChatCompletionsModel✅✅✅✅Downloads per month
ChatNVIDIA✅✅✅✅Downloads per month
ChatDatabricks✅✅✅❌Downloads per month
ChatCohereDownloads per month
ChatWatsonx✅✅✅✅Downloads per month
ChatPerplexity✅❌✅❌Downloads per month
ChatCerebras✅✅✅❌Downloads per month
ChatBasetenDownloads per month
ChatTogether✅✅✅✅Downloads per month
ChatOCIGenerativeAI✅✅✅✅Downloads per month
ChatOCIModelDeployment✅Downloads per month
ChatParallel✅❌✅❌Downloads per month
ChatQwen✅✅✅✅Downloads per month
ChatQwQ✅✅✅✅Downloads per month
ChatMoonshot✅✅✅✅Downloads per month
ChatUpstageDownloads per month
ChatSambaNova✅✅✅✅Downloads per month
ChatCloudflareWorkersAI❌✅✅❌Downloads per month
ChatClovaX✅✅✅✅Downloads per month
Inferrail✅✅✅❌Downloads per month
ChatNebius✅✅✅✅Downloads per month
ChatGradientDownloads per month
ChatAmazonNova✅✅✅Downloads per month
ChatEmpirioLabs✅✅✅✅Downloads per month
ChatWriter✅✅✅❌Downloads per month
ChatAI21✅✅✅❌Downloads per month
ChatPredictionGuardDownloads per month
ChatDiffbot✅❌❌❌Downloads per month
ChatAceDataCloud✅✅Downloads per month
ChatCrusoe✅✅✅❌Downloads per month
ChatFlexAI✅✅✅✅Downloads per month
ChatRouter✅✅✅Downloads per month
ChatAimlapi✅✅✅✅Downloads per month
ChatTopxAI✅✅✅✅Downloads per month
ChatContextual❌❌❌❌Downloads per month
RecallMiddlewareDownloads per month
ChatDoubleword✅✅✅❌Downloads per month
ChatAbsoDownloads per month
ChatAISL✅✅✅❌Downloads per month
ChatHubris✅✅✅✅Downloads per month
ChatBrainiallDownloads per month
ChatKineticaDownloads per month
ChatKServe✅✅✅✅Downloads per month
ChatYutoriNavigatorDownloads per month
ChatFeatherlessAI✅❌❌❌Downloads per month
ChatSarvam✅✅✅❌Downloads per month
ChatXinference✅✅✅❌Downloads per month
SpendGuardChatModelDownloads per month
Apertis✅✅✅✅Downloads per month
ChatAppleFoundationModels✅✅✅❌Downloads per month
ChatPipeshift✅❌❌✅Downloads per month
ChatRunPodDownloads per month
ModelScopeChatEndpointDownloads per month
ChatAlephantAIDownloads per month
ChatOpenZoo✅✅✅✅Downloads per month
ChatTelnyx✅✅✅❌Downloads per month
ChatInterfaze✅✅✅✅Downloads per month
ChatNeuralwatt✅✅✅❌Downloads per month
ChatGreenNode✅✅✅✅Downloads per month
ChatThalam✅✅✅✅Downloads per month
ChatNetmind✅✅✅❌Downloads per month
ChatKalibrDownloads per month
ChatSeekrFlow✅✅✅❌Downloads per month
ChatDuel✅✅✅❌Downloads per month
1Claw✅✅✅❌N/A
API-RouteN/A
Auxen✅✅✅❌N/A
Cheaper Inference✅✅✅✅N/A
DaoXE✅✅✅✅N/A
FuturMix✅✅✅✅N/A
GPTZZZ✅✅✅✅N/A
Snowflake Cortex REST API✅✅✅❌N/A
SynthoraiN/A
TokenMix✅✅✅❌N/A
Tuning Engines✅✅✅❌N/A

Info

If you'd like to contribute an integration, see Contributing integrations.