AI SDK Providers

The AI SDK comes with several providers that you can use to interact with different language models:

There are also community providers that have been created using the Language Model Specification.

Provider support

Not all providers support all AI SDK features. Here's a quick comparison of the capabilities of popular models:

ProviderModelImage InputObject GenerationTool UsageTool Streaming
OpenAIgpt-4o
OpenAIgpt-4o-mini
OpenAIgpt-4-turbo
OpenAIgpt-4
OpenAIo1
OpenAIo1-mini
OpenAIo1-preview
Anthropicclaude-3-5-sonnet-20241022
Anthropicclaude-3-5-sonnet-20240620
Anthropicclaude-3-5-haiku-20241022
Mistralpixtral-large-latest
Mistralmistral-large-latest
Mistralmistral-small-latest
Mistralpixtral-12b-2409
Google Generative AIgemini-2.0-flash-exp
Google Generative AIgemini-1.5-flash
Google Generative AIgemini-1.5-pro
Google Vertexgemini-2.0-flash-exp
Google Vertexgemini-1.5-flash
Google Vertexgemini-1.5-pro
xAI Grokgrok-2-1212
xAI Grokgrok-2-vision-1212
xAI Grokgrok-beta
xAI Grokgrok-vision-beta
Groqllama-3.3-70b-versatile
Groqllama-3.1-8b-instant
Groqmixtral-8x7b-32768
Groqgemma2-9b-it

This table is not exhaustive. Additional models can be found in the provider documentation pages and on the provider websites.