vercel · Vercel AI SDK Docs
AI SDK Getting Started: Choosing a Provider
Evaluates different AI model providers to determine compatibility with the AI SDK based on specific requirements and integration needs.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
AI SDK Getting Started: Choosing a Provider
Evaluates different AI model providers to determine compatibility with the AI SDK based on specific requirements and integration needs.
When To Use
Use when deciding which LLM provider to integrate with the AI SDK based on specific project requirements or existing infrastructure.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/ai-sdk-getting-started-choosing-a-provider-workflow-guide.md | A guide explaining how to select between AI Gateway, dedicated providers, and custom providers within the AI SDK. | Questions about a guide explaining how to select between AI Gateway, dedicated providers, and custom providers within the AI SDK. |
examples/ai-sdk-getting-started-choosing-a-provider-ai-sdk-generatetext-provider-.text | A code example demonstrating how to use the generateText function with a specific model provider in the AI SDK. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the generateText function with a specific model provider in the AI SDK. |
examples/ai-sdk-getting-started-choosing-a-provider-ai-sdk-choosing-a-provider-ai.text | An example of setting the AI_GATEWAY_API_KEY environment variable for the AI SDK. | Exact payloads, commands, or snippets shown in An example of setting the AIGATEWAYAPIKEY environment variable for the AI SDK. |
examples/ai-sdk-getting-started-choosing-a-provider-ai-sdk-generatetext-provider.text | A code example demonstrating how to use the generateText function with a specific model provider in the AI SDK. | Exact payloads, commands, or snippets shown in A code example demonstrating how to use the generateText function with a specific model provider in the AI SDK. |
examples/ai-sdk-getting-started-choosing-a-provider-ai-sdk-provider-import-option.text | Code examples demonstrating how to import the gateway function from either the core 'ai' package or the '@ai-sdk/gateway' package. | Exact payloads, commands, or snippets shown in Code examples demonstrating how to import the gateway function from either the core 'ai' package or the '@ai-sdk/gate... |
examples/ai-sdk-getting-started-choosing-a-provider-ai-sdk-provider-selection-exa.text | A list of code examples demonstrating how to initialize different model providers using the AI SDK. | Exact payloads, commands, or snippets shown in A list of code examples demonstrating how to initialize different model providers using the AI SDK. |
examples/ai-sdk-getting-started-choosing-a-provider-ai-sdk-generatetext-provider--2.text | A code example demonstrating how to import a provider and use the generateText function from the AI SDK. | Exact payloads, commands, or snippets shown in A code example demonstrating how to import a provider and use the generateText function from the AI SDK. |
What This Skill Covers
- The AI SDK supports dozens of model providers through first-party, OpenAI-compatible, and community packages.
- Main sections:
AI Gateway,Using Dedicated Providers,Custom Providers.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://ai-sdk.dev/docs/getting-started/choosing-a-provider