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:
Google VertexAI
Google VertexAI
Install:Add environment variables:Instantiate the model:
MistralAI
MistralAI
Install:Add environment variables:Instantiate the model:
FireworksAI
FireworksAI
Install:Add environment variables:Instantiate the model:
Groq
Groq
Install: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 | β | β | β | β | β | 
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.
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 GenAI
Google Vertex AI
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.
Connect these docs programmatically to Claude, VSCode, and more via MCP for    real-time answers.