Skip to content

Vercel AI SDK

Use ArtemisKit with the Vercel AI SDK, which provides a unified interface to multiple LLM providers.

The Vercel AI adapter currently supports:

ProviderStatus
OpenAI✅ Supported
Azure OpenAI✅ Supported
Anthropic🔜 Coming soon
Google🔜 Coming soon
Mistral🔜 Coming soon

The Vercel AI SDK is included with ArtemisKit. No additional installation required.

For OpenAI:

Terminal window
export OPENAI_API_KEY="sk-..."

For Azure OpenAI:

Terminal window
export AZURE_OPENAI_API_KEY="your-key"
export AZURE_OPENAI_RESOURCE_NAME="your-resource"
name: my-test
provider: vercel-ai
model: gpt-5
providerConfig:
underlyingProvider: openai # or 'azure'
cases:
- id: example
prompt: "Hello"
expected:
type: contains
values: ["hello"]
mode: any

Configure Vercel AI in your artemis.config.yaml:

provider: vercel-ai
model: gpt-5
providers:
vercel-ai:
apiKey: ${OPENAI_API_KEY}
underlyingProvider: openai
timeout: 60000
provider: vercel-ai
model: gpt-5
providers:
vercel-ai:
apiKey: ${AZURE_OPENAI_API_KEY}
underlyingProvider: azure
providerConfig:
resourceName: ${AZURE_OPENAI_RESOURCE_NAME}
  • Unified API — Same interface across different providers
  • Easy switching — Change providers with minimal code changes
  • Future-proof — Access to new providers as they’re added

Models depend on the underlying provider:

ModelDescription
gpt-5Latest flagship model
gpt-4oMultimodal, versatile
gpt-4o-miniFast and cost-effective

Use your Azure deployment name as the model. The actual model depends on your Azure deployment configuration.