AI Comparatives
Generative AI
8 min reading

What Are the Best Alternatives to Cloudflare AI Gateway and Vercel AI Gateway?

Summarize this article with:

summary

The main alternatives to Cloudflare AI Gateway and Vercel AI Gateway are Eden AI, OpenRouter, Portkey, LiteLLM, Kong AI Gateway and Bifrost. Cloudflare and Vercel both offer spend controls and data options, so the choice usually depends on a specific need: running the gateway yourself, strict EU processing, AI services beyond LLMs, or budgets that cover your own provider keys. This comparison covers hosting, spend controls, EU options and pricing as of December 4, 2026, and how to switch.

The main alternatives to Cloudflare AI Gateway and Vercel AI Gateway are Eden AI, OpenRouter, Portkey, LiteLLM, Kong AI Gateway and Bifrost. They differ mostly in where they run and what they cover: LiteLLM, Bifrost, Kong and Portkey's open-source gateway can run in your own infrastructure, while Eden AI and OpenRouter are managed services, Eden AI adding expert models such as OCR and speech and OpenRouter focusing on a very wide LLM catalog.

Cloudflare and Vercel are solid options in their own right: both offer spend controls and data options, and neither requires you to host your app on its platform. This guide compares the eight gateways on hosting, spend controls, EU options and pricing as of December 4, 2026, shows which needs each alternative serves best, and explains how to switch if you decide to.

What do Cloudflare AI Gateway and Vercel AI Gateway offer?

Cloudflare AI Gateway gives you analytics, caching and rate limiting for free, with log storage that depends on your Workers plan, according to its pricing page. Since June 2026, spend limits block requests once a budget set by model, provider or custom metadata is reached, and they count requests made with your own provider keys when the model's price is known. Buying credits through Unified Billing adds a 5% fee, while inference is charged at provider rates.

Vercel AI Gateway charges no markup on tokens, including with your own keys, and gives every team a monthly free credit on a subset of models. Its FAQ confirms it works from any environment: you need a Vercel account for the key and billing, not a Vercel deployment. Budgets can cap a team, a project, an API key or a team member, regional inference pins where the model runs, and zero data retention is available on paid plans.

For teams already running on Workers or using the AI SDK with a handful of LLM providers, either one covers the essentials. Teams usually look at alternatives when they have a specific requirement, such as self-hosting, strict EU processing or AI services beyond LLMs.

Which alternative fits which need?

Token prices are close across managed gateways, which charge provider rates plus a fee of 0 to 5.5% on standard plans, so the choice usually comes down to features. Each alternative has a different focus and a different trade-off.

Managed

Eden AI

Best for teams that use LLMs alongside expert models such as OCR, document parsing, speech or translation, and need an EU endpoint that rejects requests leaving the EU. It is a managed service, with no open-source version to run yourself.

Managed

OpenRouter

Best for access to a very wide LLM catalog on one credit balance, with per-key credit limits. EU routing is limited to the Business plan.

Managed or self-hosted

Portkey

Best for teams that want a managed gateway with the option to self-host its open-source version. Palo Alto Networks acquired Portkey in May 2026 and is making it the AI gateway of its Prisma AIRS platform.

Self-hosted

LiteLLM

Best for teams that want an open-source proxy with budgets per key, team, user and customer. You run and maintain it, including its database.

Self-managed or cloud

Kong AI Gateway

Best for teams that already run Kong for their APIs and want AI traffic under the same management and policies.

Self-hosted

Bifrost

Best for teams that want a self-hosted Apache 2.0 gateway with budgets by virtual key, team and customer. You run it yourself, with enterprise deployments available.

How do the alternatives compare?

The table puts all eight gateways side by side. Spend controls are worth checking closely: a budget that ignores your own provider keys will not stop runaway spend on those keys.

GatewayHostingSpend controlsEU optionPricing model
Cloudflare AI GatewayManaged by CloudflareSpend limits by model, provider or metadata, including own keys for known pricesNot compatible with Regional Services; the EU metadata boundary does not yet cover log storageCore features free; 5% fee on Unified Billing credits
Vercel AI GatewayManaged by VercelBudgets per team, project, key or member; own-key spend excludedEU inference pinning on supported models, failing rather than leaving the region; EU endpoint in beta, +5% of inference costNo token markup; monthly free credit on some models
Eden AIManaged; private deployments on enterprise plansBudget per API key, which stops at $0, with optional reset and expiryEU endpoint for LLMs and expert models; non-EU fallbacks rejectedNo markup; 5.5% platform fee
OpenRouterManagedCredit limit per key, daily, weekly or monthly; own keys excluded by defaultEU or US routing on the Business plan5.5% fee on credits, 8% on Business
PortkeyManaged, or self-hosted open-source gatewayCost or token budgets; on the managed plans, Enterprise and select ProWherever you self-host itManaged plans, or free to self-host
LiteLLMSelf-hosted, open sourceBudgets per key, team, user and customer, with a databaseWherever you deploy itFree; Enterprise license for some features
Kong AI GatewaySelf-managed Kong Gateway or Kong's dedicated cloud gatewaysAI rate limiting policiesWherever you deploy it, when self-managedDepends on Kong edition and deployment
BifrostSelf-hosted, Apache 2.0Budgets through virtual keys, teams and customersWherever you deploy itFree; enterprise deployments available

Sources: each vendor's documentation, linked in the first column. Checked December 4, 2026.

Self-hosting puts data location in your hands, but you take on upgrades, scaling and key storage, the trade-off covered in LiteLLM vs a hosted AI gateway. Among managed options, Eden AI's EU endpoint, OpenRouter's regional routing and Vercel's regional inference all fail a request rather than run it outside the EU. With Vercel, the gateway receives the request in the EU only through its EU endpoint, and request logs and billing records are stored in the United States. Our comparison of the OpenRouter EU endpoint and Eden AI looks at the differences in detail.

How do you switch from Cloudflare or Vercel AI Gateway?

All of the gateways above accept OpenAI-compatible requests, so most migrations start with a new base URL and key. Model IDs are the first thing to check: every catalog uses a provider/model format, but the names behind it differ. Cloudflare now recommends its REST API over the OpenAI-compatible /compat endpoint for single-model calls, so check which one your code uses before you switch.

Python

from openai import OpenAI

# Before: Vercel AI Gateway
# client = OpenAI(api_key="AI_GATEWAY_API_KEY", base_url="https://ai-gateway.vercel.sh/v1")

# After: any OpenAI-compatible gateway, here Eden AI (https://api.eu.edenai.run/v3 for the EU)
client = OpenAI(api_key="EDEN_AI_API_KEY", base_url="https://api.edenai.run/v3")

response = client.chat.completions.create(
    model="mistral/mistral-large-latest",  # model IDs differ between catalogs
    messages=[{"role": "user", "content": "Summarize this support ticket."}],
)
print(response.choices[0].message.content)

Then recreate what lived in the old gateway's configuration: fallback chains, budgets and keys, and log exports. Fallback syntax differs most, which is why our guide to automatic fallbacks between LLM providers compares it tool by tool. Run both gateways side by side on a share of traffic for a few days, and compare cost and latency per request before you move everything.

FAQ

It depends on the requirement. For a self-hosted gateway, LiteLLM, Bifrost, Kong or Portkey's open-source gateway. For LLMs plus expert models such as OCR and speech-to-text, with an EU endpoint, Eden AI. For a very wide LLM catalog on one bill, OpenRouter. If you mainly need analytics, caching and rate limiting for a few LLM providers, Cloudflare and Vercel already cover that.
No. Vercel AI Gateway accepts requests from any environment with an AI Gateway API key. You need a Vercel account to create the key and manage billing, but not a Vercel project or deployment.
Its core features, analytics, caching and rate limiting, are free, with log storage limits that depend on your Workers plan. Buying model credits through Unified Billing adds a 5% fee, and guardrails are billed as Workers AI inference.
Yes, for supported models. Regional inference pins the model to the EU and fails any request the EU cannot serve, at no extra cost per request. For the gateway to also receive requests in the EU, you use its EU endpoint, in beta for Pro and Enterprise teams at 5% of inference cost. Request logs and billing records are stored in the United States, and providers often charge more for regional inference.
LiteLLM and Bifrost are open-source gateways you run yourself, Portkey open-sourced its production gateway in March 2026, and Kong AI Gateway runs on self-managed Kong Gateway. Cloudflare and Vercel do not document a self-hosted version.
Not always. Vercel budgets exclude spend on your own keys, and OpenRouter key limits exclude it unless you turn on include_byok_in_limit. Cloudflare spend limits count it for models with known pricing, and LiteLLM budgets track spend on the keys it manages.
Usually. If your code uses an OpenAI-compatible SDK, you change the base URL and API key, then map model IDs, which differ between catalogs. Fallbacks, budgets and log exports have to be configured again in the new gateway.

Further reading

Similar articles

A document branching into three review paths: a highlighted text span, a page with a coordinate grid, and a JSON object passing a verification gate.
AI Comparatives
Document Processing
Typed Extraction vs Parsers vs LLMs: When to Use Each
12/2/2026
·
Written byClément Moreau
A stream of water fills a locked private reservoir before overflowing into a shared lake, with a separate aqueduct leading to distant towers.
AI Comparatives
Generative AI
Microsoft Foundry Model Router Can Use Your PTU. Should It?
11/30/2026
·
Written byClément Moreau
A railway switchyard where a first switch leads to different stations and a second switch leads to identical stations in several towns, showing provider fallback and regional routing as two layers.
AI Comparatives
Generative AI
SageMaker Cross-Region Routing vs Cross-Provider Fallback: Which Failures Each Covers
11/19/2026
·
Written byClément Moreau
let’s start

Start building with Eden AI

A single interface to integrate the best AI technologies into your products.