Vercel AI SDK reference
Source: core repository guide, snapshot
e58778bef40b. Synced 2026-10-24. Package versions are independent of milestone labels.
The Vercel AI provider connects ArtemisKit to any model supported by the Vercel AI SDK, giving you access to 20+ model providers through a unified interface.
Configuration
Section titled “Configuration”Environment Variables
Section titled “Environment Variables”Set the appropriate API key for your chosen provider:
# OpenAI modelsOPENAI_API_KEY=sk-...
# Anthropic modelsANTHROPIC_API_KEY=sk-ant-...
# Google modelsGOOGLE_GENERATIVE_AI_API_KEY=...
# And more - see Vercel AI SDK docsConfig File
Section titled “Config File”provider: vercel-aimodel: openai:gpt-4o # Format: provider:modelCLI Override
Section titled “CLI Override”artemiskit run scenario.yaml --provider vercel-ai --model anthropic:claude-3-5-sonnet-20241022Model Format
Section titled “Model Format”The Vercel AI provider uses the format provider:model:
openai:gpt-4oanthropic:claude-3-5-sonnet-20241022google:gemini-1.5-promistral:mistral-large-latestSupported Providers
Section titled “Supported Providers”Through Vercel AI SDK, you can access:
- OpenAI -
openai:gpt-4o,openai:gpt-4o-mini - Anthropic -
anthropic:claude-3-5-sonnet-20241022,anthropic:claude-3-haiku-20240307 - Google -
google:gemini-1.5-pro,google:gemini-1.5-flash - Mistral -
mistral:mistral-large-latest - Cohere -
cohere:command-r-plus - Amazon Bedrock -
bedrock:anthropic.claude-3-sonnet - Azure -
azure:deployment-name - And many more…
See the Vercel AI SDK documentation for the full list.
Provider-Specific Options
Section titled “Provider-Specific Options”Configure Vercel AI options in the providers.vercel-ai section:
provider: vercel-aimodel: openai:gpt-4o
providers: vercel-ai: temperature: 0.7 # Sampling temperature maxTokens: 4096 # Maximum tokens in responseExample
Section titled “Example”name: Multi-Provider Testdescription: Testing with Vercel AI SDK
provider: vercel-aimodel: anthropic:claude-3-5-sonnet-20241022
cases: - id: basic-greeting prompt: "Say hello" expected: type: contains values: - "hello" mode: anyUse Cases
Section titled “Use Cases”The Vercel AI provider is ideal for:
- Comparing models - Run the same scenario across different providers
- Provider flexibility - Switch providers without code changes
- Unified interface - One configuration style for all providers
Troubleshooting
Section titled “Troubleshooting”Provider Not Found
Section titled “Provider Not Found”Error: Provider 'xxx' not foundEnsure the provider prefix is correct. Check the Vercel AI SDK docs for exact provider names.
Missing API Key
Section titled “Missing API Key”Error: Missing API key for providerSet the appropriate environment variable for your chosen provider.
Model Not Available
Section titled “Model Not Available”Error: Model not availableVerify the model name is correct and available for your account/region.