Skip to content

AI SDK Providers

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

The Swift AI SDK ships with 33 provider modules (one SwiftPM product per provider). Documentation pages are still being ported for some providers.

ProviderSwiftPM productDocs
OpenAIOpenAIProviderOpenAI
AnthropicAnthropicProviderAnthropic
Google Generative AIGoogleProviderGoogle Generative AI
Google Vertex AIGoogleVertexProvider
AzureAzureProvider
Amazon BedrockAmazonBedrockProvider
VercelVercelProviderVercel
TogetherAITogetherAIProviderTogether.ai
MistralMistralProviderMistral
GroqGroqProvider
xAIXAIProvider
CohereCohereProviderCohere
PerplexityPerplexityProviderPerplexity
DeepSeekDeepSeekProvider
DeepInfraDeepInfraProvider
CerebrasCerebrasProvider
BasetenBasetenProvider
HuggingFaceHuggingFaceProvider
GatewayGatewayProvider
OpenAI CompatibleOpenAICompatibleProvider
ReplicateReplicateProviderReplicate
Black Forest LabsBlackForestLabsProviderBlack Forest Labs
ProdiaProdiaProviderProdia
FalFalProviderFal
FireworksFireworksProvider
LumaLumaProvider
LMNTLMNTProviderLMNT
ElevenLabsElevenLabsProvider
DeepgramDeepgramProvider
AssemblyAIAssemblyAIProvider
GladiaGladiaProvider
RevAIRevAIProviderRev.ai
HumeHumeProvider

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

ProviderImage InputObject GenerationTool UsageTool Streaming
OpenAI
Anthropic
Google Generative AI
Vercel
Mistral
Cohere
Perplexity
Groq
xAI
Azure
Cerebras
DeepSeek
DeepInfra
OpenAI Compatible
Together.ai
Replicate
Baseten
LMNT
ElevenLabs
Deepgram
AssemblyAI
Fal
Fireworks
Black Forest Labs
Prodia
Luma
Gladia
Rev.ai
Hume
HuggingFace
Google Vertex AI
Amazon Bedrock
Gateway