Skip to main content

Providers

AI_PROVIDER_NPM chooses the provider. If you leave it unset, UIGraph uses the default, @ai-sdk/openai-compatible, which works with any service that offers an OpenAI-style API.

To use a specific provider instead, set AI_PROVIDER_NPM to one of the values below. We don't re-document each provider here, the AI SDK already has a full page for every one, with the exact model names and any provider-specific notes. Click the link for the provider you want.

Supported providers

ProviderAI_PROVIDER_NPMLearn more
Any OpenAI-compatible API (default)@ai-sdk/openai-compatibleOpenAI-compatible providers
OpenAI@ai-sdk/openaidocs
Anthropic@ai-sdk/anthropicdocs
Google Generative AI@ai-sdk/googledocs
xAI (Grok)@ai-sdk/xaidocs
Azure OpenAI@ai-sdk/azuredocs
Amazon Bedrock@ai-sdk/amazon-bedrockdocs
Groq@ai-sdk/groqdocs
Fal@ai-sdk/faldocs
DeepInfra@ai-sdk/deepinfradocs
Google Vertex AI@ai-sdk/google-vertexdocs
Mistral@ai-sdk/mistraldocs
Together.ai@ai-sdk/togetheraidocs
Cohere@ai-sdk/coheredocs
Fireworks@ai-sdk/fireworksdocs
DeepSeek@ai-sdk/deepseekdocs
Cerebras@ai-sdk/cerebrasdocs
Perplexity@ai-sdk/perplexitydocs
Luma@ai-sdk/lumadocs
Baseten@ai-sdk/basetendocs
OpenRouter@openrouter/ai-sdk-providerdocs
Ollamaollama-ai-provider-v2docs
MiniMaxvercel-minimax-ai-providerdocs
AIHubMix@aihubmix/ai-sdk-providerdocs
Cloudflare Workers AIworkers-ai-providerdocs
FriendliAI@friendliai/ai-providerdocs
Helicone@helicone/ai-sdk-providerdocs
SambaNovasambanova-ai-providerdocs
Zhipu (Z.AI)zhipu-ai-providerdocs
AI Gatewayai-gateway-providercommunity providers
Opencodeai-sdk-provider-opencode-sdkcommunity providers

The default @ai-sdk/openai-compatible works with any service that offers an OpenAI-style API, set AI_PROVIDER_API_URL to its base URL. See Examples.