Quick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click Vercel AI Gateway
Paste your API key, click Save
Test the connection
Use in your IDE
Point any OpenAI-compatible client at kRouter using your local API key.
# Endpoint
http://localhost:20128/v1
# API key (from Dashboard → API Keys)
sk-krouter-XXXX
# Model
vercel/<model-id>How Vercel AI Gateway billing works with kRouter
Vercel AI Gateway is pay-per-token. You bring your own API key and kRouter routes to it, so you keep your own rate limits and billing relationship. kRouter authenticates it via apikey. Its catalog is fetched live, so new models appear without a kRouter update.
Through kRouter, Vercel AI Gateway serves chat and code completion, embeddings, exposed on /v1/embeddings, image generation, exposed on /v1/images/generations, image understanding (OCR / vision-to-text), web search, exposed on /v1/search so an agent can look things up mid-conversation. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from Vercel AI Gateway is a one-line model change in your client rather than a rewrite.
Unified OpenAI-compatible endpoint from Vercel. Use your AI Gateway API key, then pick models with provider/model IDs like anthropic/claude-sonnet-4.6 or openai/gpt-5.4.
Vercel AI Gateway links
Vercel AI Gateway FAQ
Is Vercel AI Gateway free through kRouter?
Vercel AI Gateway is pay-per-token: you bring your own API key and are billed by Vercel AI Gateway at their rates. kRouter adds nothing on top and is free and MIT-licensed.
How do I use Vercel AI Gateway with Claude Code or Cursor?
Connect Vercel AI Gateway in the kRouter dashboard, then point your tool at kRouter's local endpoint (http://localhost:20128/v1) with a kRouter API key. Any OpenAI-compatible client works, and models are addressed as vercel-ai-gateway/<model>.
What happens when Vercel AI Gateway is rate limited?
kRouter detects the limit, parks that account until its real reset time, and fails over to your next connected account or provider — so the request still completes instead of erroring.