# Vercel AI Gateway alternatives: what to check on a BYOK gateway

URL: https://infro.io/blog/vercel-ai-gateway-alternatives-what-to-check-on-a-byok-gateway
Author: INFRO Editorial (https://infro.io/blog/editorial)
Publisher: INFRO
Published: 2026-11-27
Last modified: 2026-11-27
Last reviewed: 2026-11-27 (next review due 2026-12-27)
Topic: Architecture and migration
Format: Comparison

> The alternative to pick depends on six checks: who holds the provider key, what the gateway charges on your own-key traffic, how deep failover goes and whose capacity it falls back to, whether budgets count your own-key spend, what policy applies, and what the logs carry. On Vercel AI Gateway the answers to the budget and fallback questions are the ones BYOK teams most often find unwelcome[^infro-best-gateways][^infro-migrate-vercel].

Key takeaways:
- On Vercel AI Gateway, BYOK needs a purchased balance, spend on your own credentials is not counted in budgets, and a failed BYOK request is retried on Vercel's own credentials and billed to that balance.
- Test six things before you switch: key ownership, fees on own-key traffic, failover depth and fallback capacity, budgets on own-key spend, policy, and what logs and exports carry.
- A BYOK gateway that only ever uses your connections can never spend money you did not authorise at a provider, but it also cannot offer models you have no account for.
- Model ids in the vendor/model form carry over unchanged; the code edit is the AI SDK provider and the options, because INFRO does not speak the AI Gateway protocol.
- Stay on Vercel if you rely on OIDC tokens, Realtime, per-request provider sorting or per-request zero-data-retention routing: INFRO has none of these.

## Why teams look for a Vercel AI Gateway alternative

Most teams that search for an alternative to Vercel AI Gateway are not unhappy with the developer experience. They hold direct contracts with OpenAI, Anthropic or Google, they negotiated rates, and they want the gateway to sit in front of those accounts without becoming a second place where money is spent.

That is a narrower requirement than "a gateway", and it changes what you test. Vercel's gateway is built into the Vercel platform and the AI SDK. By INFRO's reading of Vercel's documentation, BYOK is available on its paid tier and requires a purchased AI Gateway balance. When a request on your credentials fails, it is retried on Vercel's system credentials and billed to that balance. Spend through your own credentials is not counted in budgets[1][2].

None of that is a defect for a team that wants one balance and no provider accounts. It is a mismatch for a team whose finance function already tracks provider invoices and whose security team wants every request on a key it controls. The rest of this piece is a checklist for that second team, plus a migration order that avoids rewriting application code.

> **Note: Read the date on Vercel facts**
> The Vercel details below come from INFRO's reading of Vercel's published documentation (migration guide read 2026-10-19; pricing re-checked 2026-11-16)[2][3]. Re-read Vercel's BYOK, budgets and pricing pages the day you decide.

## The six criteria, side by side

| Criterion | Vercel AI Gateway (as read by INFRO) | A BYOK-only gateway (INFRO) |
| --- | --- | --- |
| Key ownership | Vercel's system credentials by default; your own credentials optional on the paid tier[2] | Your connections only, never a shared pool; each provider bills you directly[2] |
| Markup and fees | No markup or platform fee on tokens, but BYOK needs a purchased balance and add-ons are charged per request, BYOK included[3] | Software subscription; 0% of model spend; no balance to buy[4] |
| Failover depth | Failed BYOK request is retried on Vercel's credentials and billed to your balance[3] | Retried on your next connection, then your listed fallback models, before the first token[5] |
| Budgets | Caps by team, project, key and user; BYOK spend excluded[2] | Organization, project, member, key and end customer; every request counts, refused with 402 before the provider call[2] |
| Policy | Team routing rules over allowed models, shipped 2026-07-02[2] | Allow and block lists per organization, project and key, including whole vendors[2] |
| Logs | Custom reporting by user and tags; trace drains to your tool[2] | Per-request trace, usage by project, key, model, user and tag, exports and OpenTelemetry spans[2] |

Table: Six criteria for a BYOK gateway, with Vercel AI Gateway as INFRO read it and INFRO's own behaviour.

The sections below explain why each row matters and what to test.

## Key ownership and who spends the money

The first test is mechanical: with your provider key removed, can the gateway still serve the request? If yes, some other credential is paying, and you should know whose.

On Vercel, the answer is yes by design: the fallback to system credentials is a feature, and it keeps requests flowing. It also means a rate-limited or revoked key does not stop traffic, it moves the spend to a balance you purchased from Vercel, at Vercel's rate rather than your contract rate[3]. For a team with committed-spend agreements, that is spend landing outside the commitment.

INFRO runs only on provider accounts you connect, so it has no pool to fall back to. The cost is that it cannot serve a model you have no account for[2]. Decide which risk you would rather carry: an unplanned cost line, or a refused request you can see and route around.

Questions to ask any gateway:

- Which credential serves the request when mine fails or is rate limited, and is that behaviour a default or a setting?
- Does the provider invoice show all of my usage, or only the part that went direct?
- Can the gateway key be limited by provider, network and environment, separately from the provider key?

## Markup, fees and what BYOK really costs

"No markup" is a statement about tokens, not about the total. Vercel says its gateway charges no markup and no platform fee on tokens, with list-price deduction from the purchased balance. Several add-ons are priced per request and, per INFRO's reading, apply to BYOK requests too: a team-wide zero data retention setting at $0.10 per 1,000 requests, a team-wide provider allowlist at $0.10 per 1,000 billed requests, custom reporting at $0.075 per 1,000 tag writes and $5 per 1,000 queries, Regional Hosting (beta) at 5% of each request's inference cost, and trace drains at $0.05 per 1,000 traces plus $0.50 per GB of egress[3]. Those are Vercel's figures as INFRO read them; confirm them on Vercel's page.

The point is not that these are large. It is that on a gateway with request-based add-ons, the gateway line moves with traffic, so you should model it with your own request volume before you compare. [AI gateway pricing models compared](https://infro.io/blog/ai-gateway-pricing-models-compared) lays out the six bases gateways charge on.

INFRO's model is different in structure: a subscription priced on requests per month, history, seats, projects and capabilities, and never per token. Retries and failover inside one request do not add to the count, and a request refused before it reached a provider does not count either[4].

## Failover depth

"Has failover" covers a wide range. Four things separate shallow from deep:

1. **What it fails over to.** Another key of yours, another provider of yours, or the gateway's own capacity.
2. **Which failures trigger it.** Only 5xx, or also 429, rejected credentials and unsupported-parameter errors.
3. **Whether it stays on the same model.** Same-model failover and cross-model fallback are different promises about output quality.
4. **Where it stops.** Before the first streamed token or after.

INFRO documents two layers. Connection failover is same-model: with more than one eligible connection, or a route with more than one target, a failure before the first token moves to the next. That covers a provider 5xx, timeout, 429, rejected credential, 404 and even a 400 or 422, because providers differ on optional parameters. Model fallbacks are cross-model and opt-in through a `fallbacks` array of up to five catalog model ids. Both operate strictly before the first token, and INFRO's own refusals (invalid body, budget, allowlist, unknown model) are returned immediately without failover[5].

Two limits to test for in any gateway, INFRO included. With a single connection there is nothing to fail over to[5]. And a stream that fails after the first token cannot be silently retried, so your client still needs its own handling for that case; [streaming failure modes](https://infro.io/blog/streaming-llm-failure-modes) covers it. Fallback to a different model also changes the price and the output, so run a [fallback equivalence test](https://infro.io/blog/is-your-fallback-model-good-enough-test-fallback-equivalence) before you rely on one.

Routes make the order explicit. A route is a name your application sends as `model` that resolves to ordered or weighted targets over your own connections, with up to 20 if-rules in front of them. A weighted route picks the first target by weight and still falls through the rest if it fails[6].

## Budgets that count your own-key spend

A budget is only a control if it sees the spend. By INFRO's reading, Vercel's budgets exclude BYOK spend, so a team running mostly on its own keys has budgets that see little of its traffic[2][1].

In INFRO, every request runs on your own account, so every request counts. Scopes are organization, project, member and key, with a key limit that resets daily, weekly or monthly, or a lifetime ceiling. A blocking budget admits a request only if its worst-case estimated cost fits the room left, counting recorded spend plus every reservation held against it, and the worst case assumes the most expensive model and provider the request could fall back to[7].

Be clear about what that is. It is an upper bound on INFRO's estimate, not on the provider's invoice. Close to a limit, a request can be refused briefly for room that is reserved but not yet spent[7]. If INFRO cannot reach its database in time to admit a request under a blocking budget, it refuses it with a 503 rather than letting it through[7]. That is a fail-closed choice, and you should decide whether it suits your traffic; see [gateway down: fail open or closed](https://infro.io/blog/gateway-down-should-ai-traffic-fail-open-or-fail-closed).

## Policy and logs

For policy, the question is scope. Vercel's team routing rules govern which models may be used. INFRO's equivalent is allow and block lists per organization, project and key, including whole vendors, and a request outside the list returns a policy error[2]. If you need pattern-based checks on prompts, those are separate guardrails, and they can miss things.

For logs, check three properties: what is recorded per request, whether prompt and completion text is stored, and how the data leaves. INFRO records model, connection, route, latency and estimated provider cost per request[8]; prompt and completion logging is off by default with a retention window you choose. Usage and requests export as CSV and through the API, and spans can be pushed to your own OpenTelemetry collector. Negotiated rates can be entered per model so estimates use them before the vendor's list rate. Check estimates against your invoice anyway: [negotiated rates versus list price](https://infro.io/blog/negotiated-rates-list-price-drift) explains why they drift.

One gap to plan for: there is no importer for Vercel request logs and custom reports[2]. Export what you need for trend lines before you cut over.

## Where the other alternatives sit

"Alternative" can mean a different kind of product. INFRO's roundup, dated October 2026 and updated in November, sorts them by who runs the gateway, whose accounts carry traffic and whether limits act before the call[1].

| If your constraint is | Look at | Caveat from the roundup |
| --- | --- | --- |
| Self-host open source | LiteLLM, Bifrost, Portkey's open-source gateway | You run and secure it |
| Already on Kong | Kong AI Gateway | Cost-based limits need AI Rate Limiting Advanced |
| Free start on Cloudflare | Cloudflare AI Gateway | Cost tracking is a best-effort estimate; a burst can briefly pass a limit |
| Widest catalog on one balance | OpenRouter | On BYOK, 5% of list-price value above an allowance, shared-capacity fallback by default, BYOK in budgets only if enabled |
| Spend control across your own accounts | A BYOK control plane such as INFRO | No models without your own account |

Table: Alternatives by constraint, summarised from INFRO's roundup of each vendor's own pages in October 2026.

For Portkey and Helicone specifically, see [Looking for a Portkey alternative?](https://infro.io/blog/looking-for-a-portkey-alternative-what-to-compare-on-a-byok-gateway) and [Helicone alternatives](https://infro.io/blog/helicone-alternatives-what-to-check-when-logs-must-also-route).

## When to stay on Vercel

INFRO's migration guide is direct about this. Stay if one of these is true[2]:

- You authenticate with Vercel OIDC tokens and want no gateway key at all. INFRO takes its own keys only.
- You use Realtime, or embeddings from providers other than OpenAI, Azure OpenAI, Mistral or an OpenAI-compatible connection.
- You want provider choice per request by cost, time to first token or throughput. INFRO has no per-request sorting.
- You want model access without an account at each provider.
- You need per-request zero-data-retention routing or `inferenceRegion`. INFRO has neither, and residency is on its roadmap.

If your app runs on Vercel and the gateway is doing its job on Vercel's credentials, the integration is hard to beat, and the guide says so[2].

## A migration path that keeps model ids

The ids already match. Both Vercel and INFRO use `vendor/model`, so `anthropic/claude-opus-5` stays as written. What changes is the AI SDK provider and the options, because INFRO does not implement the AI Gateway protocol and the SDK's gateway provider cannot point at it[2]. In the AI SDK that means `createOpenAI` with a base URL, and `infro.chat(id)` rather than the bare callable, which targets the Responses API[2].

Before, on Vercel:

```typescript
import { generateText } from "ai";

const { text } = await generateText({
  model: "anthropic/claude-opus-5",
  prompt: "Hello",
  providerOptions: {
    gateway: {
      order: ["vertex", "anthropic"],
      user: "user_123",
      tags: ["feature:chat"],
    },
  },
});
```

After, on INFRO, with the order held in a route called `chat`:

```typescript
import { createOpenAI } from "@ai-sdk/openai";
import { generateText } from "ai";

const infro = createOpenAI({
  baseURL: "https://api.infro.io/v1",
  apiKey: process.env.INFRO_API_KEY,
});

const { text } = await generateText({
  model: infro.chat("chat"),
  prompt: "Hello",
  headers: { "X-INFRO-User-Id": "user_123", "X-INFRO-Feature": "chat" },
});
```

Both snippets are adapted from INFRO's migration guide[2]. Mapping of options: `order` becomes a route, `only` becomes `routing.providers`, `models` becomes `fallbacks`, and `user` and `tags` become `metadata`. Provider slugs differ too: Vercel's `vertex` and `bedrock` are `google-vertex` and `aws-bedrock` in INFRO[2].

A workable order:

1. **Inventory.** List every call site, the `providerOptions.gateway` fields in use, and whether anything depends on OIDC, Realtime, per-request sorting or per-request ZDR. Any hit there is a reason to keep that call on Vercel.
2. **Export history.** Pull Vercel reports you want to keep, since nothing imports them.
3. **Connect your accounts.** In the console, add each provider credential you already hold. Applications will use INFRO gateway keys, not provider keys[9].
4. **Recreate policy.** Build routes for ordering, budgets and allowlists. Budgets and routing rules do not come across and need recreating[2]. Enter negotiated rates so estimates match your contract.
5. **Cut one environment's key.** Gateway keys belong to one environment and are limited by provider, network and spend; start with staging.
6. **Switch behind a flag.** Keep base URL, key and model ids in configuration so the change and the rollback are both a config deploy[10].
7. **Canary, then widen.** Send a small share, compare error rate, latency and estimated cost per request with the old path, and keep the old path valid until the new one has carried full traffic for a week[10].

Watch retries. The OpenAI SDK retries connection errors, 408, 409, 429 and 5xx twice by default, and a gateway retries as well, so two layers can multiply attempts. Let the gateway own cross-provider retries and trim the client's[10].

INFRO also offers a migration with you: send your setup with secrets removed, get back connections, routes, budgets, keys and a code diff for one service within two working days, then compare a week of traffic[11]. Your provider keys never pass through INFRO in that process.

## A checklist to take into the evaluation

- [ ] I know which credential serves a request when my provider key fails.
- [ ] I have modelled the gateway's add-on and request charges at my own volume.
- [ ] Failover covers 429 and rejected credentials, and I know where it stops.
- [ ] Budgets include my own-key spend, and I have tested the refusal code in staging.
- [ ] Allowlists apply per project and per key.
- [ ] Logs leave by export or OpenTelemetry, and prompt storage is off unless I turn it on.
- [ ] I have exported the history I need from the current gateway.
- [ ] Anything that needs OIDC, Realtime, sorting or per-request ZDR stays where it is.

## Questions

### What happens to my remaining Vercel AI Gateway balance if I move?

It stays with Vercel. INFRO's migration guide lists the AI Gateway balance among the things that do not come across, so spend it down or ask Vercel about it before you cut over[2].

### Where do my provider keys live if I use a BYOK gateway like INFRO?

You enter each credential in the console, where it is encrypted when saved, scoped to your organization and never shown again. Applications hold an INFRO gateway key instead, which can be limited, rotated or switched off without touching the provider key[8].

### I want to self-host instead. Which alternatives are there?

INFRO's own roundup lists LiteLLM, Bifrost, Portkey's open-source gateway and Kong as options you run yourself. You then own patching, upgrades and the security of the gateway[1].

## Sources

1. Best AI gateways in 2026: which one fits which team — INFRO. https://infro.io/blog/best-ai-gateways-2026 (accessed 2026-11-27)
2. Migrating from Vercel AI Gateway to INFRO — INFRO. https://infro.io/migrate/vercel-ai-gateway (accessed 2026-11-27)
3. AI gateway pricing models: markup, fees, requests, subscription — INFRO. https://infro.io/blog/ai-gateway-pricing-models-compared (accessed 2026-11-27)
4. Billing — INFRO Docs. https://infro.io/docs/org/billing (accessed 2026-11-27)
5. Failover & fallbacks — INFRO Docs. https://infro.io/docs/features/fallbacks (accessed 2026-11-27)
6. Routes — INFRO Docs. https://infro.io/docs/routes (accessed 2026-11-27)
7. Spend controls — INFRO Docs. https://infro.io/docs/org/spend-controls (accessed 2026-11-27)
8. INFRO documentation — INFRO Docs. https://infro.io/docs (accessed 2026-11-27)
9. Quickstart — INFRO Docs. https://infro.io/docs/quickstart (accessed 2026-11-27)
10. How to change the base URL in OpenAI SDKs, LangChain and AI SDK — INFRO. https://infro.io/blog/openai-sdk-base-url (accessed 2026-11-27)
11. Migration guides: move your AI gateway to INFRO — INFRO. https://infro.io/migrate (accessed 2026-11-27)
