If you’d like to write your own chat model, see this how-to. If you’d like to contribute an integration, see Contributing integrations.
- Groq
- OpenAI
- Anthropic
- Google Gemini
- FireworksAI
- MistralAI
- VertexAI
Install dependencies
- npm
- yarn
- pnpm
Add environment variables
Instantiate the model
Featured providers
Model | Stream | JSON mode | Tool Calling | withStructuredOutput() | Multimodal |
---|---|---|---|---|---|
BedrockChat | ✅ | ❌ | 🟡 (Bedrock Anthropic only) | 🟡 (Bedrock Anthropic only) | 🟡 (Bedrock Anthropic only) |
ChatBedrockConverse | ✅ | ❌ | ✅ | ✅ | ✅ |
ChatAnthropic | ✅ | ❌ | ✅ | ✅ | ✅ |
ChatCloudflareWorkersAI | ✅ | ❌ | ❌ | ❌ | ❌ |
ChatCohere | ✅ | ❌ | ✅ | ✅ | ✅ |
ChatFireworks | ✅ | ✅ | ✅ | ✅ | ✅ |
ChatGoogleGenerativeAI | ✅ | ❌ | ✅ | ✅ | ✅ |
ChatVertexAI | ✅ | ❌ | ✅ | ✅ | ✅ |
ChatGroq | ✅ | ✅ | ✅ | ✅ | ✅ |
ChatMistralAI | ✅ | ✅ | ✅ | ✅ | ✅ |
ChatOllama | ✅ | ✅ | ✅ | ✅ | ✅ |
ChatOpenAI | ✅ | ✅ | ✅ | ✅ | ✅ |
ChatTogetherAI | ✅ | ✅ | ✅ | ✅ | ✅ |
ChatXAI | ✅ | ✅ | ✅ | ✅ | ❌ |