Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/ai-sdk-getting-started-choosing-a-provider-workflow-guide.mdA 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-.textA 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.textAn 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.textA 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.textCode 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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