Skip to main content

Using Vercel AI Gateway With Roo Code

The AI Gateway provides a unified API to access hundreds of models through a single endpoint. It gives you the ability to set budgets, monitor usage, load-balance requests, and manage fallbacks.

Useful links:


Getting an API Key

  1. Sign Up/Sign In: Go to the Vercel Website and sign in Sign in.
  2. Get an API Key: Go to the API Key page in the AI Gateway tab. Create a new key.
  3. Copy the Key: Copy the API key.

Supported Models

the Vercel AI Gateway supports a large and growing number of models. Roo Code automatically fetches the list of available models. Refer to the Vercel AI Gateway Models page for the complete and up-to-date list.


Configuration in Roo Code

  1. Open Roo Code Settings: Click the gear icon () in the Roo Code panel.
  2. Select Provider: Choose "Vercel AI Gateway" from the "API Provider" dropdown.
  3. Enter API Key: Paste your Vercel AI Gateway API key into the "Vercel AI Gateway API Key" field.
  4. Select Model: Choose your desired model from the "Model" dropdown.

Tips and Notes

  • Model Selection: OpenRouter offers a wide range of models. Experiment to find the best one for your needs.
  • Pricing: The Vercel AI Gateway charges based on the underlying model's pricing. See the Vercel AI Gateway Models page for details.
  • Bring Your Own Key (BYOK): The Vercel AI Gateway has no markup if you decide to use your own key for the underlying service.
  • More info: Vercel does not add rate limits. Upstream providers may. New accounts receive $5 credits every 30 days until the first payment.