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
Anthropicclaude-3-5-sonnet-20240620
Mistralmistral-large-latest
Mistralmistral-small-latest
Google Generative AImodels/gemini-1.5-pro-latest
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.