Vercel AI SDK (gateway)
Vercel AI SDK (gateway)
Route Vercel AI SDK calls through the Respan gateway to use 250+ models from different providers. Only your RESPAN_API_KEY is needed — no separate provider keys required.
Setup
Set environment variables
No provider API key is needed — the Respan gateway handles provider authentication.
Point your provider at Respan
OpenAI-compatible
Anthropic-native
Google Gemini-native
This is the provider-neutral setup. It uses the Respan Chat Completions route and can call OpenAI, Anthropic, Gemini, and other chat models.
With AI SDK 7, call respan.chat(...) explicitly. Calling respan(...) selects the Responses API, while this key-only gateway setup uses /chat/completions.
Switch models
The OpenAI-compatible setup is provider-neutral. Change the model ID while keeping the same client. Provider prefixes make cross-provider routing explicit.
The Anthropic- and Gemini-native providers stay on their provider-specific routes and use unprefixed model IDs.
See the full model list.