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-preview
OpenAIo1-mini
Anthropicclaude-3-5-sonnet-20240620
Mistralmistral-large-latest
Mistralmistral-small-latest
Mistralpixtral-12b-2409
Google Generative AIgemini-1.5-flash
Google Generative AIgemini-1.5-pro
Google Vertexgemini-1.5-flash
Google Vertexgemini-1.5-pro
Groqllama-3.1-405b-reasoning
Groqllama-3.1-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.