vercel-ai-gateway

Vercel AI Gateway supports the OpenAI-compatible API, so you can use the openai-generic provider with an overridden base_url.

BAML
client<llm> VercelClient {
provider "openai-generic"
options {
base_url "https://ai-gateway.vercel.sh/v1"
api_key env.VERCEL_AI_GATEWAY_TOKEN
// Example models routed via the gateway
// model "anthropic/claude-3-5-sonnet-latest"
// model "openai/gpt-5-mini"
}
}

See the Vercel docs for details on configuring providers and models behind your gateway: Vercel AI Gateway (OpenAI compatible).