Skip to content

Commit 6b12a00

Browse files
authored
docs: Add Vercel AI Gateway to provider docs (anomalyco#6790)
1 parent a5a1919 commit 6b12a00

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

packages/web/src/content/docs/providers.mdx

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,62 @@ SAP AI Core provides access to 40+ models from OpenAI, Anthropic, Google, Amazon
12561256

12571257
---
12581258

1259+
### Vercel AI Gateway
1260+
1261+
Vercel AI Gateway lets you access models from OpenAI, Anthropic, Google, xAI, and more through a unified endpoint. Models are offered at list price with no markup.
1262+
1263+
1. Head over to the [Vercel dashboard](https://vercel.com/), navigate to the **AI Gateway** tab, and click **API keys** to create a new API key.
1264+
1265+
2. Run the `/connect` command and search for **Vercel AI Gateway**.
1266+
1267+
```txt
1268+
/connect
1269+
```
1270+
1271+
3. Enter your Vercel AI Gateway API key.
1272+
1273+
```txt
1274+
┌ API key
1275+
1276+
1277+
└ enter
1278+
```
1279+
1280+
4. Run the `/models` command to select a model.
1281+
1282+
```txt
1283+
/models
1284+
```
1285+
1286+
You can also customize models through your opencode config. Here's an example of specifying provider routing order.
1287+
1288+
```json title="opencode.json"
1289+
{
1290+
"$schema": "https://opencode.ai/config.json",
1291+
"provider": {
1292+
"vercel": {
1293+
"models": {
1294+
"anthropic/claude-sonnet-4": {
1295+
"options": {
1296+
"order": ["anthropic", "vertex"]
1297+
}
1298+
}
1299+
}
1300+
}
1301+
}
1302+
}
1303+
```
1304+
1305+
Some useful routing options:
1306+
1307+
| Option | Description |
1308+
| ------------------- | ---------------------------------------------------- |
1309+
| `order` | Provider sequence to try |
1310+
| `only` | Restrict to specific providers |
1311+
| `zeroDataRetention` | Only use providers with zero data retention policies |
1312+
1313+
---
1314+
12591315
### xAI
12601316

12611317
1. Head over to the [xAI console](https://console.x.ai/), create an account, and generate an API key.

0 commit comments

Comments
 (0)