Skip to content

Architecture and migrationComparison

Best AI gateways in 2026: which one fits which team

There is no single best AI gateway; there is a best one for your constraints. This guide sorts the main options by the decision that actually separates them — who runs it, whose provider accounts it uses, and whether its limits act before the call — with each product described from its own documentation.

By INFRO Editorial

Published

6 min read

A dark ground with several glass gateway nodes of different shapes in a row, each lit in amber to a different degree, representing gateway options with different strengths

In short

The best AI gateway depends on your constraint. To self-host open source, look at LiteLLM, Bifrost or Portkey's open-source gateway. To start free on a platform you already use, Cloudflare AI Gateway or Vercel AI Gateway. For the broadest catalog on one balance, OpenRouter. If you run Kong, Kong AI Gateway. For security-first governance, Prisma AIRS AI Gateway (formerly Portkey). For spend control and attribution across your own provider accounts with no markup on model spend, a BYOK control plane such as INFRO. Helicone closed new sign-ups in March 2026.

Key takeaways

  • Decide on three questions first: who runs the gateway, whose provider accounts carry the traffic, and whether its limits act before the provider is called.
  • Self-hosted and open source: LiteLLM, Bifrost, Portkey's open-source gateway, Kong. You operate it, and its supply chain is yours.
  • Free to start on a platform you already use: Cloudflare AI Gateway, Vercel AI Gateway.
  • Broadest catalog on one balance: OpenRouter. Security-first: Prisma AIRS AI Gateway. Spend control across your own accounts: a BYOK control plane.
  • Check BYOK fallback and whether budgets count BYOK spend; those two answers differ more than feature lists do.

Which AI gateway is best? It depends on three answers: who runs the gateway, whose provider accounts carry your traffic, and whether its limits act before the provider is called. If you want open source you host yourself, look at LiteLLM, Bifrost or Portkey's open-source gateway. If you want free and already run on Cloudflare or Vercel, use Cloudflare AI Gateway or Vercel AI Gateway. For the largest catalog on one balance, OpenRouter. If your platform team runs Kong, Kong AI Gateway. For security-first governance, Prisma AIRS AI Gateway, formerly Portkey. For spend control and attribution across provider accounts you already own, with no markup on model spend, a BYOK control plane such as INFRO.

Below: the three questions, a comparison table, and each option described from its own documentation as of October 2026.

The three questions that separate gateways

  1. Who runs it? Self-hosted software you deploy, patch and secure, or a hosted service. Self-hosting keeps keys and prompts in your network and makes the release pipeline your responsibility; LiteLLM alternatives covers what the March 2026 PyPI incident taught about that.
  2. Whose provider accounts carry the traffic? The platform's (it buys model access and bills you) or yours (BYOK, your provider bills you). Many offer both; then ask what happens when your key fails. What is BYOK in AI lists the questions.
  3. Do limits act before the call? A budget that refuses a request before the provider is called controls spend; a dashboard that reports it afterwards does not. Also ask whether limits count spend on your own keys.

The options at a glance

GatewayWho runs itProvider accountsBudgets on your own keysBest when
LiteLLMYou (open source)YoursYes: key, team, user, tagYou want to self-host the default OSS gateway
BifrostYou (Apache 2.0)YoursYes: virtual keysYou want a self-hosted gateway with an MCP gateway built in
Portkey gateway (OSS)You (MIT)YoursNot described in its READMEYou want a lightweight self-hosted router
Kong AI GatewayYou or Kong-hosted data planesYoursCost-based limits via AI Rate Limiting AdvancedYou already run Kong
Cloudflare AI GatewayCloudflareYours or Cloudflare's billingYes, for priced modelsYou are on Cloudflare and want free core features
Vercel AI GatewayVercelVercel's, or yours on paid tierNo: BYOK spend not countedYou build on Vercel and the AI SDK
OpenRouterOpenRouterOpenRouter's, or yoursOnly if switched onYou want the broadest catalog on one balance
Prisma AIRS AI GatewayPalo Alto NetworksYoursGranular budgets on EnterpriseRuntime AI security is the requirement
INFROINFRO (hosted)Only yoursYes, every requestYou need spend control and attribution across your own accounts
Summarised from each product's own pages on 2026-10-20. Products change quickly; check them on the day you decide.

Self-hosted, open source

LiteLLM is a self-hosted server giving applications one OpenAI-compatible endpoint for more than 100 providers, with virtual keys carrying their own models, budgets and rate limits, spend tracking by key, team, user and tag, load balancing, fallbacks and retries, guardrails, logging integrations and an admin UI. It is deployed with Docker, Helm or Terraform against a Postgres database, with Redis sizing covered in its production guide1. It is the default open-source answer.

Bifrost is Apache 2.0, starts with npx -y @maximhq/bifrost or Docker, and lists automatic failover, load balancing across keys and providers, virtual keys with hierarchical budgets and rate limits, semantic caching, an MCP gateway and Prometheus metrics with tracing2.

Portkey's open-source gateway remains available to self-host; Portkey's pricing page lists an Open Source tier beside its hosted tiers3.

Kong AI Gateway adds AI routing to Kong Gateway: one API across major providers, failover when a provider is slow or unavailable, a semantic cache, per-request cost calculation that AI Rate Limiting Advanced can enforce spend limits against, guardrails with PII redaction, and MCP tooling, with data planes self-hosted, in the cloud or on Kubernetes and managed through Konnect4. If your platform team already runs Kong, it is the natural choice.

Hosted on a platform you already use

Cloudflare AI Gateway offers its core features — analytics, caching and rate limiting — free with a Cloudflare account; guardrails are billed as Workers AI inference, and Unified Billing carries a 5% fee on purchases5. Its spend limits are dollar budgets scoped by provider, model or metadata that return 429 at the cap or move traffic to a fallback model, and they apply to BYOK requests for models with known pricing. Cloudflare is candid that cost tracking is a best-effort estimate and that a burst of concurrent requests can briefly pass a limit6.

Vercel AI Gateway is built into the Vercel platform and the AI SDK. BYOK is available on its paid tier and requires purchased AI Gateway credits; when a request on your credentials fails, it is retried on Vercel's system credentials and billed to your balance; and spend through your own credentials "isn't counted in budgets"7.

Aggregators

OpenRouter sells access to a very large catalog on one balance, and also takes your own keys. On BYOK it charges 5% of what the same usage would cost on OpenRouter after a monthly allowance, falls back to its shared capacity by default when your keys fail or are rate limited, and counts BYOK spend in budgets only if you turn that on8. Stripe announced on 19 August 2026 that it has agreed to acquire OpenRouter9. OpenRouter alternatives covers the commercial model.

Security-first

Prisma AIRS AI Gateway is what Portkey's hosted gateway became under Palo Alto Networks; Portkey's pricing page states that "Portkey is now PRISMA AIRS AI Gateway, generally available for all enterprises", and lists role-based access control, SSO and granular budgets and rate limits under Enterprise3. If guarding what models receive and return is the requirement driving your evaluation, start there.

A note on Helicone

Mintlify acquired Helicone on 3 March 2026 and said it would continue in maintenance mode, with security updates, bug fixes and new models, and would help every customer migrate10. Its sign-up page reads "Sign ups are disabled"11. Existing users can plan a move on their own timetable; new teams should look elsewhere.

BYOK control planes, and where INFRO fits

INFRO is a hosted gateway and control plane that runs only on provider accounts you connect, and charges a software subscription with 0% markup on model spend. Budgets at organization, project, member and key level are checked before the provider is called and see every request, because every request is on your own keys; each request carries an estimated cost at list or negotiated rates, attributed by project, key, model, route and end customer; and on the Business plan the month's estimate is checked against OpenAI's and Anthropic's own cost APIs. It is the right choice when several teams or customers share AI spend across providers and someone has to answer for it.

It is not the right choice if you need to self-host without an enterprise agreement (use LiteLLM, Bifrost or Kong), want to start at zero cost (Cloudflare or a self-hosted gateway), want one balance for every model without provider accounts of your own (OpenRouter or Vercel), or need prompt management (Langfuse, which records traces beside the request rather than routing them).

How to choose in an afternoon

  1. Write down your three answers: who runs it, whose accounts, and whether limits must act before the call.
  2. Strike out every option that fails one of them.
  3. For the rest, read three pages each: BYOK behaviour, budgets, and pricing.
  4. Run a day of real traffic through the top two, behind a flag. From direct OpenAI calls to a gateway is the runbook.

Summary

The best AI gateway is the one whose operating model, account model and enforcement point match yours. Self-hosters have strong open-source options; teams on Cloudflare or Vercel have free starting points; aggregators win on catalog; security-first buyers have Prisma AIRS; and teams that need spend control across their own provider accounts need a BYOK control plane.

Questions readers ask

What is the best open-source AI gateway?
The most widely used is LiteLLM, a self-hosted OpenAI-compatible proxy for over 100 providers with virtual keys, budgets, fallbacks and logging. Bifrost (Apache 2.0) and Portkey's MIT-licensed gateway are also open source. All require you to run, patch and secure the gateway yourself.
What is the best free AI gateway?
Cloudflare AI Gateway's core features — analytics, caching and rate limiting — are free on a Cloudflare account, and Vercel AI Gateway has a free tier covering a subset of models. Self-hosted open-source gateways are free to license but cost engineering time to operate.
Which AI gateway is best for controlling spend?
Look for budgets that refuse a request before the provider is called, that count spend on your own provider keys, and that estimate cost at your negotiated rates. Cloudflare's spend limits count BYOK traffic for priced models; Vercel's budgets do not count BYOK spend; BYOK control planes such as INFRO budget every request because every request runs on your own keys.
Is Helicone still available?
Mintlify acquired Helicone in March 2026 and said it would continue in maintenance mode with security updates, bug fixes and new models. Its sign-up page reads 'Sign ups are disabled', so new teams cannot adopt the hosted product.

From the team that builds it

Where this shows up in INFRO

INFRO is a control plane in front of the provider accounts you already hold. The capabilities below are the parts of it this article touches, each with the documentation that defines its behaviour.

INFRO accounts are self-serve. Provider usage is billed to you by your providers; INFRO charges a software subscription and takes 0% of model spend. See plans.

Sources

Numbered in order of first citation. Each was opened and checked against the claim on the date shown.

  1. 1.LiteLLM AI Gateway (proxy server) (opens in a new tab) — LiteLLM. Accessed Oct 20, 2026.
  2. 2.maximhq/bifrost (opens in a new tab) — GitHub. Accessed Oct 20, 2026.
  3. 3.Pricing (opens in a new tab) — Portkey. Accessed Oct 20, 2026.
  4. 4.Kong AI Gateway (opens in a new tab) — Kong. Accessed Oct 20, 2026.
  5. 5.AI Gateway pricing (opens in a new tab) — Cloudflare. Accessed Oct 20, 2026.
  6. 6.Spend limits (opens in a new tab) — Cloudflare. Accessed Oct 20, 2026.
  7. 7.Bring Your Own Key (BYOK) to AI Gateway (opens in a new tab) — Vercel. Accessed Oct 20, 2026.
  8. 8.BYOK (opens in a new tab) — OpenRouter. Accessed Oct 20, 2026.
  9. 9.Stripe agrees to acquire OpenRouter (opens in a new tab) — Stripe. Accessed Oct 20, 2026.
  10. 10.Mintlify acquires Helicone (opens in a new tab) — Mintlify. Accessed Oct 20, 2026.
  11. 11.Helicone sign up (opens in a new tab) — Helicone. Accessed Oct 20, 2026.

About this article

Every statement about another product is taken from its own documentation, pricing page, repository or announcement, opened on 2026-10-20, and limited to what those pages say. No product was benchmarked and no performance claim is made. Written by the team that builds INFRO, which is one of the options; its own section says when it is not the right choice.

Last checked against its sources on . The next review is due by . No separate named reviewer is recorded for this article.

How articles are written, sourced and corrected is set out in the editorial standards.