AI Tools

Which LiteLLM alternative fits your gateway budget?

Six LiteLLM alternatives matter in December 2026, and four cost nothing in software fees: LiteLLM itself is $0 to self-host, Bifrost and GoModel ship under permissive licenses, and Cloudflare's AI Gateway core is free on every plan. The hosted ones charge a percentage of your inference spend, not a per-token markup.

Key facts

What matters

  • OpenRouter charges a 5.5% platform fee on Standard and 8% on Business; BYOK runs free up to $25,000 of list-price inference per month, then 5%.
  • Cloudflare AI Gateway's core is free on all plans, but Unified Billing adds 5% to credit purchases while inference passes through at provider list price.
  • Vercel AI Gateway states no markup and no platform fee on tokens, including BYOK, though its free tier covers only a subset of models.
  • Portkey is no longer a self-serve option: portkey.ai/pricing answers with a 308 redirect to Palo Alto Networks' PRISMA AIRS AI Gateway page.
  • GoModel (MIT, v0.2.8, 1,393 GitHub stars) sells Pro on a discovery call after a 21-day trial, so there is no list price to compare.

What LiteLLM is, and when a replacement makes sense

LiteLLM is an open-source proxy that puts more than 100 model providers behind one OpenAI-compatible API, with virtual keys, budgets, team-level rate limits, and spend tracking. The project's own pricing page lists self-hosting at $0, free forever.

The license detail most roundups skip: the repository's LICENSE file carves out the litellm/enterprise/ directory and releases only the rest under MIT. GitHub therefore reports the repo license as "Other" rather than MIT. If you plan to run anything inside that enterprise directory, you are on a commercial agreement, not the MIT grant. That distinction decides whether a migration is a config change or a procurement project.

Three situations justify leaving: you want another company to operate the gateway, you need one endpoint across several hundred models without maintaining Python infrastructure in the request path, or your services are written in Go and the Python proxy has become an operational liability.

The six options at a glance

Every price below was read on the vendor's own page on 2 December 2026. The structures differ more than the numbers do: three are open source with paid enterprise editions, two are managed services that take a cut, and one is managed at zero markup.

Portkey has left this category. portkey.ai/pricing now answers with an HTTP 308 redirect to Palo Alto Networks' PRISMA AIRS AI Gateway page, and the Portkey homepage reads "Portkey is now PRISMA AIRS AI Gateway, generally available for all enterprises." There is no self-serve price left to compare, so any comparison that still quotes a Portkey subscription is out of date.

Here is what the fee structures cost a team spending $2,000 a month on tokens. OpenRouter Standard takes $110 a month, or $1,320 a year. Covering the same spend through Cloudflare's Unified Billing means buying $2,000 of credit for $2,100, or $1,200 a year. Vercel charges $0 in platform fees on tokens. Self-hosting LiteLLM, Bifrost, or GoModel costs $0 in software plus whatever the server costs, which for a modest 4 vCPU box is the cheapest line in the whole comparison.

How to choose in about an hour

  1. Pull 90 days of token spend per provider from your invoices.
  2. Multiply by 0.055 and 0.08 for OpenRouter Standard and Business, 0.05 for Cloudflare credit purchases, and 0 for Vercel.
  3. Price the one server you would need for a self-hosted gateway, then add the engineer hours to run it.
  4. Check license carve-outs before you assume "open source" means free at your scale.
  5. Pick the option whose failure mode you can live with: a third party in your request path, or your own on-call rotation.

The default answer for most teams under $25,000 a month of BYOK traffic is OpenRouter, because the fee is zero until you pass that ceiling. Teams already deep in Workers or Vercel should take the in-platform gateway and skip the second vendor entirely.

What to test before you migrate

  • Key-level budgets. LiteLLM ships virtual keys, users, teams, spend tracking and budgets in the free build. Vercel caps spend per team, project, API key, or team member. Confirm the replacement enforces the same granularity before you retire the old proxy, or a runaway script charges your card instead of getting a 429.
  • Failover behaviour. Bifrost lists adaptive load balancing and LiteLLM lists load balancing with RPM and TPM limits. Ask which condition triggers a fallback (429, 5xx, or timeout) and whether fallback traffic still counts against a per-model cap.
  • Caching semantics. Cloudflare includes caching on the free core, Bifrost advertises semantic caching, and GoModel does exact-match response caching. Semantic caching answers a paraphrase with a near-match, which is wrong for anything carrying per-request account state.
  • Where prompts land. Cloudflare's gateway lives inside a Cloudflare account and Vercel's inside a Vercel team; the self-hosted options keep prompts on your own network. That one line settles most regulated-workload decisions before price matters.
  • SSO and SLAs. OpenRouter offers SSO/SAML and contractual SLAs only at Enterprise, and Bifrost puts SAML in its enterprise edition. If procurement requires either, price the upgrade rather than the list plan.
  • Log retention. Cloudflare moved new accounts to Workers Logs on 24 September 2026 with different retention, while LiteLLM forwards logs to Langfuse, Arize Phoenix, LangSmith, or any OTEL collector. Decide retention before your first incident, not during it.
  • License paperwork. Read the LICENSE file, not the marketing tag: LiteLLM's MIT grant excludes litellm/enterprise/, while Bifrost publishes Apache-2.0 and GoModel publishes MIT wholesale.

Run those seven checks against your current setup. Only the ones that genuinely fail justify a migration, and in most stacks the failing check is operational, not financial.

Bifrost: Apache-2.0 with a 10,000-model catalog

Bifrost is an Apache-2.0 gateway written in Go by H3 Labs, built to handle LLM, MCP, and agent traffic in one process. GitHub showed 10,146 stars and 1,684 forks on 2 December 2026; the repository dates from March 2025 and was last pushed on 1 December 2026, so it is actively maintained rather than parked.

The vendor claims a catalog of 10,000+ models, and the feature list includes an explicit "LiteLLM Compatibility" item. That matters if you are porting configuration rather than rewriting routing rules from scratch. Adaptive load balancing, semantic caching, guardrails, and OpenTelemetry export are in the open-source build, not behind the enterprise wall.

Bifrost Enterprise is request-access with a 14-day trial and no public price. For a platform team that usually means a negotiated annual contract, so ask about per-environment and per-seat terms before budgeting. The honest tradeoff: a large Go codebase with 1,700 open issues, which is normal for a project this active and still a real support load if you fork it.

Cloudflare AI Gateway: free core, 5% on purchased credits

Cloudflare's AI Gateway is the cheapest managed option on paper because the core is free: dashboard analytics, caching, and rate limiting on every plan, including Workers Free. The docs page carrying that statement was last updated on 2 November 2026.

Two details change the bill. Unified Billing adds a 5% fee to every credit purchase, so $100 of credit costs $105, while inference itself passes through at provider list price with no markup. Second, log storage depends on account age: accounts that created their first gateway on or after 24 September 2026 write logs to Workers Logs and follow Workers Logs pricing, while older accounts use Legacy Logs with 100,000 logs total on Workers Free and 10,000,000 logs per gateway on Workers Paid.

DLP scanning is free on all plans, but accounts without a Zero Trust subscription only get two predefined profiles, Financial Information and Social / Insurance / National Identifier Numbers. Pick Cloudflare if you already run Workers or Pages. Skip it if the gateway needs to live outside Cloudflare's edge, because it does not.

Vercel AI Gateway: no markup, narrower free tier

Vercel's docs state the position plainly: "AI Gateway charges no markup and no platform fee on tokens." You pay the provider's list price and Vercel deducts from prepaid credits, and BYOK also runs at zero markup rather than the 5% some competitors charge past a threshold.

The free tier is where the limits live. It covers a subset of the model catalog, not all of it, and rate limits per model are lower than the paid tier, returning a 429 when you cross them. Purchasing credits moves the team to the paid tier and ends the monthly free credit.

For a Next.js or Vercel-hosted product this is the least-friction option: same dashboard, same billing, no second vendor to audit. For multi-cloud or on-premise workloads it is the wrong shape, since the gateway is part of the Vercel account model. Enterprise teams can pay by invoice with no payment processing fees and negotiate volume discounts on token spend.

OpenRouter: 5.5% for a hosted catalog

OpenRouter is the hosted gateway most people compare LiteLLM against, and its fee is on the pricing table rather than in a sales call: 5.5% platform fee on Standard, 8% on Business, with discounts negotiable on Enterprise. The free tier gets 25+ free models, 50 requests per day, and no platform fee because there is no paid traffic to take a cut of.

BYOK is the tier worth reading twice. Both Standard and Business waive fees on the first $25,000 of list-price inference per month when you bring your own provider keys, then charge 5% above it. A team using OpenRouter for failover and model comparison while keeping its own provider contracts can stay under that ceiling and pay nothing at all.

The tradeoff is control. Latency depends partly on a third party, provider-level debugging stops at the gateway boundary, and contractual SLAs only appear at the Enterprise tier. Standard and Business get no SLA and no SSO, which rules OpenRouter out for most regulated buyers below Enterprise.

GoModel: MIT, Go, and a price set on a call

GoModel is the newest entrant: an MIT-licensed gateway in Go, at v0.2.8, with 1,393 stars and 142 forks on 2 December 2026. It describes itself as "like OpenRouter, but open-source and self-hosted" and bundles an MCP proxy, exact-match response caching, and spend tracking broken down per team and per user.

The pricing model is unusual enough to flag. The open-source build is free. The Pro edition is priced "on a short discovery call" with the founder, after a 21-day trial that requires no credit card; the license is a signed token validated offline, and the key arrives by email within 24 hours. That is workable for a small team that wants a direct line to the maintainer, and awkward for any organisation that needs a list price to open a purchase order.

Its homepage also claims "34x lower latency than LiteLLM." Treat that as a vendor claim: the page carries no methodology, no hardware spec, and no reproduction steps, and the project is three minor versions old. If latency is your reason to switch, run both against your own traffic before you commit. Note also that the case for a Go gateway is mostly operational, since a compiled binary with no Python runtime is easier to ship into a distroless container.

At a glance

GatewayLicense and hostingWhat you payBest fit
LiteLLMMIT outside litellm/enterprise/; self-hosted$0 self-hosted; Enterprise priced to gateway scale, not per tokenPython shops needing 100+ providers and virtual keys
BifrostApache-2.0; self-hosted, enterprise edition on request$0 OSS; Enterprise has a 14-day trial and no public priceHigh-throughput routing plus MCP and agent traffic
Cloudflare AI GatewayManaged, Cloudflare accountCore free; 5% on Unified Billing credits; inference at list priceTeams already running Workers or Pages
Vercel AI GatewayManaged, Vercel team accountNo markup, no platform fee on tokens; free tier covers a model subsetNext.js and Vercel-hosted products
OpenRouterManaged5.5% Standard, 8% Business; BYOK free to $25,000/mo, then 5%One key across 700+ models with no ops load
GoModelMIT; self-hosted in Go$0 OSS; Pro priced on a discovery call after a 21-day trialSmall teams wanting an MCP proxy and a Go binary

FAQ

Is LiteLLM free to self-host?

Yes. The pricing page lists self-hosting at $0 free forever with 100+ provider integrations, virtual keys, budgets, and guardrails. The exception is code inside the litellm/enterprise/ directory, which carries its own commercial license.

Does Cloudflare AI Gateway charge per request?

No. The core features, including analytics, caching, rate limiting, and DLP scanning, are free on every plan. Cloudflare takes 5% when you buy credits through Unified Billing, and inference is billed at the provider's list price with no markup.

Is Portkey still a LiteLLM alternative?

Not as a self-serve product. portkey.ai/pricing now returns a 308 redirect to Palo Alto Networks' PRISMA AIRS AI Gateway page, and Portkey's homepage states it is now PRISMA AIRS AI Gateway, generally available for enterprises. Expect an enterprise sales process rather than a published plan.

Related reading

LiteLLM vs OpenRouter, managed vs self-hosted AI gateways, Cloudflare AI Gateway pricing, OpenRouter alternatives

Sources