> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onyx.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Vercel AI Gateway

> Configure Vercel AI Gateway as a language model gateway for Onyx

## Guide

Configure Onyx to use models served through [Vercel AI Gateway](https://vercel.com/ai-gateway).

> [!NOTE]
>
> Vercel AI Gateway exposes models from many vendors behind one OpenAI-compatible endpoint.
> Onyx lists the models available to your gateway key.

**1. Set Up Your Vercel AI Gateway Access**

In your Vercel dashboard, open **AI Gateway** and create an **API Key**.

**2. Navigate to Language Models**

Open the **Admin Panel** from your user profile icon, then open **Language Models**.

**3. Connect Vercel AI Gateway**

Under **Gateways & Routers**, click **Connect** on the **Vercel AI Gateway** card.

Keep the default **API Base URL** (`https://ai-gateway.vercel.sh/v1`) or paste a custom base URL.

Paste your Vercel AI Gateway **API Key**.

![Set up Vercel AI Gateway dialog with API Base URL, API Key, Display Name, and Models](https://mintcdn.com/danswer/lVFbsLhxaghleefi/assets/admins/ai_models/vercel_ai_gateway_connect.webp?fit=max\&auto=format\&n=lVFbsLhxaghleefi\&q=85\&s=56f73ecc8e9b4fc753f3061ca0762c08)

**4. Load Your Models**

In the **Models** section, click **Refresh models**. Onyx lists the models that Vercel AI Gateway exposes.

**5. Choose Visible Models**

In the **Models** section, select the models that users can pick in chat. If a model is missing,
open **More Models** or type its name and click **Add Model**.

Limiting visible models helps when a provider publishes many models and versions of the same model.

**6. Set Models Access**

Under **Models Access**, choose **All Users & Agents** or **Named Groups & Agents**.

With **Named Groups & Agents**, only Admins and the User Groups and Agents you name can use the models.
Named groups need a Business plan or higher.

**7. Connect**

Click **Connect**. Onyx tests the provider with one of the selected models before it saves it.

See the [Vercel AI Gateway documentation](https://vercel.com/docs/ai-gateway) for account setup and billing details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.