Chat models are language models that use a sequence of messages as inputs and return messages as outputs .Documentation Index
Fetch the complete documentation index at: https://nvd-54.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
安装和使用
OpenAI
OpenAI
Install:添加环境变量:实例化模型:
Anthropic
Anthropic
Install:添加环境变量:实例化模型:
Google Gemini
Google Gemini
Install:添加环境变量:实例化模型:
MistralAI
MistralAI
Install:添加环境变量:实例化模型:
FireworksAI
FireworksAI
Install:添加环境变量:实例化模型:
Groq
Groq
Install:添加环境变量:实例化模型:
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.
| Model | Stream | Tool Calling | withStructuredOutput() | Multimodal |
|---|---|---|---|---|
ChatOpenAI | ✅ | ✅ | ✅ | ✅ |
ChatAnthropic | ✅ | ✅ | ✅ | ✅ |
ChatGoogle | ✅ | ✅ | ✅ | ✅ |
BedrockChat | ✅ | 🟡 (Bedrock Anthropic only) | 🟡 (Bedrock Anthropic only) | 🟡 (Bedrock Anthropic only) |
ChatBedrockConverse | ✅ | ✅ | ✅ | ✅ |
ChatCloudflareWorkersAI | ✅ | ❌ | ❌ | ❌ |
ChatCohere | ✅ | ✅ | ✅ | ✅ |
ChatFireworks | ✅ | ✅ | ✅ | ✅ |
ChatGroq | ✅ | ✅ | ✅ | ✅ |
ChatMistralAI | ✅ | ✅ | ✅ | ✅ |
ChatOllama | ✅ | ✅ | ✅ | ✅ |
ChatTogetherAI | ✅ | ✅ | ✅ | ✅ |
ChatXAI | ✅ | ✅ | ✅ | ❌ |
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.| Provider | Integration | Description |
|---|---|---|
| OpenRouter | ChatOpenRouter | Unified access to models from OpenAI, Anthropic, Google, Meta, and more |
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.
Example: OpenRouter
Example: OpenRouter
To use OpenRouter, you will need to sign up for an account and obtain an API key.Refer to the OpenRouter documentation for more details.
All chat models
Alibaba Tongyi
Anthropic
Arcjet Redact
Azure OpenAI
Baidu Qianfan
Amazon Bedrock
Amazon Bedrock Converse
Cerebras
Cloudflare Workers AI
Cohere
Deep Infra
DeepSeek
Fake LLM
Fireworks
Friendli
Google Gemini
Groq
IBM watsonx.ai
Llama CPP
Minimax
MistralAI
Moonshot
Novita AI
Ollama
OpenAI
Perplexity
PremAI
Tencent Hunyuan
Together
WebLLM
xAI
YandexGPT
ZhipuAI
If you’d like to contribute an integration, see Contributing integrations.
将这些文档连接到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

