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 budgets12.
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.
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 tier2 | Your connections only, never a shared pool; each provider bills you directly2 |
| Markup and fees | No markup or platform fee on tokens, but BYOK needs a purchased balance and add-ons are charged per request, BYOK included3 | Software subscription; 0% of model spend; no balance to buy4 |
| Failover depth | Failed BYOK request is retried on Vercel's credentials and billed to your balance3 | Retried on your next connection, then your listed fallback models, before the first token5 |
| Budgets | Caps by team, project, key and user; BYOK spend excluded2 | Organization, project, member, key and end customer; every request counts, refused with 402 before the provider call2 |
| Policy | Team routing rules over allowed models, shipped 2026-07-022 | Allow and block lists per organization, project and key, including whole vendors2 |
| Logs | Custom reporting by user and tags; trace drains to your tool2 | Per-request trace, usage by project, key, model, user and tag, exports and OpenTelemetry spans2 |
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 rate3. 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 for2. 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 egress3. 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 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 either4.
Failover depth
"Has failover" covers a wide range. Four things separate shallow from deep:
- What it fails over to. Another key of yours, another provider of yours, or the gateway's own capacity.
- Which failures trigger it. Only 5xx, or also 429, rejected credentials and unsupported-parameter errors.
- Whether it stays on the same model. Same-model failover and cross-model fallback are different promises about output quality.
- 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 failover5.
Two limits to test for in any gateway, INFRO included. With a single connection there is nothing to fail over to5. 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 covers it. Fallback to a different model also changes the price and the output, so run a fallback equivalence test 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 fails6.
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 traffic21.
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 to7.
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 spent7. 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 through7. That is a fail-closed choice, and you should decide whether it suits your traffic; see gateway down: fail open or 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 error2. 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 request8; 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 explains why they drift.
One gap to plan for: there is no importer for Vercel request logs and custom reports2. 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 call1.
| 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 |
For Portkey and Helicone specifically, see Looking for a Portkey alternative? and Helicone alternatives.
When to stay on Vercel
INFRO's migration guide is direct about this. Stay if one of these is true2:
- 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 so2.
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 it2. In the AI SDK that means createOpenAI with a base URL, and infro.chat(id) rather than the bare callable, which targets the Responses API2.
Before, on Vercel:
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:
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 guide2. 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 INFRO2.
A workable order:
- Inventory. List every call site, the
providerOptions.gatewayfields 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. - Export history. Pull Vercel reports you want to keep, since nothing imports them.
- Connect your accounts. In the console, add each provider credential you already hold. Applications will use INFRO gateway keys, not provider keys9.
- Recreate policy. Build routes for ordering, budgets and allowlists. Budgets and routing rules do not come across and need recreating2. Enter negotiated rates so estimates match your contract.
- Cut one environment's key. Gateway keys belong to one environment and are limited by provider, network and spend; start with staging.
- Switch behind a flag. Keep base URL, key and model ids in configuration so the change and the rollback are both a config deploy10.
- 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 week10.
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's10.
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 traffic11. 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.
