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 officially supported providers.

ProviderModelImage InputObject GenerationTool UsageTool Streaming
OpenAIgpt-4o
OpenAIgpt-4-turbo
OpenAIgpt-4
OpenAIgpt-3.5-turbo
Anthropicclaude-3-opus-20240229
Anthropicclaude-3-sonnet-20240229
Anthropicclaude-3-haiku-20240307
Mistralmistral-large-latest
Mistralmistral-small-latest
Google Generative AImodels/gemini-1.5-pro-latest
Google Vertexgemini-1.5-flash
Google Vertexgemini-1.5-pro