← All comparisons · Updated

Looking for an alternative to Cloudflare AI Gateway?

Cloudflare AI Gateway is a free control layer in front of model providers, paid through your own keys or Unified Billing credits. Standard Compute optimizes for cost instead: its router sends each Claude Code, Codex or OpenAI-compatible request to the cheapest model that can do it, on providers we vet for price, uptime and speed with automatic fallback, and the compute is included in one plan per key.

TL;DR

Stay on Cloudflare if your apps already run there and you bring your own keys. Switch if you want Claude Code and Codex routed to the cheapest model that can do each step, on a fixed monthly bill.

What Cloudflare AI Gateway offers

Core features are free on every Cloudflare plan. Unified Billing adds a 5% fee on credit purchases ($100 of credits costs $105), with provider inference passed through at no markup. Logs for gateways created from September 24, 2026 follow Workers Logs pricing. (Verified 2026-10-13.)

  • Free gateway with caching, analytics and rate limiting on any Cloudflare account
  • Spend limits scoped by model, provider or metadata such as user or team, that can block or fall back to a cheaper model
  • Auto Router (cloudflare/auto) classifies each request's type and difficulty and weighs quality against cost
  • Coding-agent guides for Claude Code, Codex, OpenCode, Pi, Gemini CLI and more
  • Sits next to Cloudflare's security stack, with DLP free on all plans

Why people look for an alternative

  • Unified Billing traffic is rate-limited per gateway; only traffic on your own provider keys is exempt
  • Auto Router accepts Chat Completions and Responses requests, not Anthropic Messages, so Claude Code traffic isn't auto-routed; Dynamic Routing also takes the Chat Completions format only
  • Codex through the gateway works with OpenAI models only, by Cloudflare's own docs
  • Spend limits are "eventually consistent": cost is recorded after a request completes, so bursts can pass the limit
  • AI Gateway is not covered by Cloudflare's Data Localization Suite regional services

21 Cloudflare AI Gateway alternatives, grouped by what you need

If you run Claude Code or Codex, the strongest Cloudflare AI Gateway alternative is a gateway that routes those agents to cheaper models on their own APIs, with the compute in one plan; Standard Compute, our product, is one, and its entry says when it is the wrong pick. The other groups cover native agent endpoints with models you pick, spend limits that refuse requests, EU residency and enterprise needs.

OptionBest forHow you payModel choice and fallbackClaude Code / CodexEU option
Standard ComputeCost routingMonthly plan from $19 per key, compute included; requests stop at the budgetRouter picks the cheapest capable model, or pin a model ID; provider fallbackNative Messages and Responses APIsEurope or US rules per company, team or key; requests pass through our gateway
CodeRouterCost routingMonthly plan counted in tokens; overage up to a capPicks by task phase; pinning rewritten to auto on plansMessages and Responses endpointsEnterprise only
Kilo GatewayCost routingNo token markup, 5% payment fee; or Kilo Passkilo-auto/efficient, by difficultyChat Completions only in its docsEnterprise only
RequestyClaude Code and CodexProvider price plus 5% on top-ups; BYOKFallback and load-balancing policies you writeNative Messages and Responses APIsEU endpoint on every plan
Vercel AI GatewayClaude Code and CodexProvider list price, no markup; card feesProvider order you set; classifier left to youDedicated Claude Code endpoint; Codex setupEU inference per request
OpenRouterClaude Code and CodexProvider price plus 5.5% on credits; BYOK free to $25,000 a monthYou, or its Auto and Pareto routers; provider fallbackNative Messages and Responses APIsIn-region routing on Business
LiteLLMSpend limitsFree; Enterprise license; you pay providersAuto Router add-on by difficulty tier; fallbacks you configureNative Messages and Responses APIsWherever you host it
AgentgatewaySpend limitsFree (Apache 2.0); Solo.io sells supportWeighted, failover and conditional virtual modelsBoth documentedWherever you host it
TrustedRouterSpend limitsProvider price plus 5.5%Fixed alias lists (cheap, zdr, eu); provider fallbackBoth documentedEU gateway; upstreams may process outside the EU
Pydantic AI GatewaySpend limitsBYOK at no markup, or 3 to 5% on managed providersProvider priorities and weights you setBoth documentedEU region
orq.aiEU residencyList price plus 4.5% on credits; BYOK free to 1M requestsSmart Router by difficulty band; fallbacksBoth documented (Claude Code in beta)EU-only platform
OpperEU residencyProvider rates plus 3% on credits (Gateway plan)Aliases and routes you set; unbilled fallbacksOne-command launch for bothHosted in Stockholm
nexos.aiEU residencyProvider price plus 5%Smart router; budgets before overrunsClaude Code documentedHosted in Europe
CortecsEU residencyProvider price plus 5%Ranks EU providers by speed or cost; fallbackBoth documentedEU providers only
EUrouterEU residencyFree with 15% markup to €99 a month with 3%Provider choice by health and price; fallbackNo Messages endpoint; Codex not documentedProcessed in the EU
Eden AIEU residencyProvider price plus 5.5% on credits; BYOKCheaper providers first; fallbacks you listBoth documentedEU endpoint, EU models only
Portkey (Prisma AIRS AI Gateway)Enterprise and cloudFree, or $49 a month for 100k logs; your providers bill tokensConditional routing and fallbacks you writeBoth documentedVPC data plane on Enterprise
Kong AI GatewayEnterprise and cloudFrom $25 a month plus usage and $100 per model; BYOKCost, latency, usage or semantic load balancing; fallbackBoth documentedKonnect EU region; self-managed data planes
TrueFoundryEnterprise and cloudFree for 3 users; Pro $25 per user a month; you pay providersFallback; weighted and latency load balancingClaude Code documented; Responses APIData residency on Enterprise
Azure AI FoundryEnterprise and cloudPer token at Azure pricesModel router: balanced, cost or quality; failoverBoth have official setupsData Zone EU, not for Claude
Amazon BedrockEnterprise and cloudPer token at AWS pricesPrompt routing within one model familyBoth have official setupsEU inference profiles
Cloudflare AI Gateway, for referenceFree layer on CloudflareFree layer; BYOK or credits plus 5% on purchasesAuto Router weighs cost and quality; Dynamic RoutingClaude Code via BYOK or credits; Codex on OpenAI modelsNot covered by its Data Localization Suite

From each vendor's own pricing, docs and GitHub pages, checked October 13 and 14, 2026; "not published" means we found no answer there. Standard Compute is our product.

Cost routing on every agent API

Cloudflare's Auto Router weighs cost and quality, but only for Chat Completions and Responses requests, so Claude Code traffic isn't auto-routed. Standard Compute and CodeRouter pick a cheaper model on the Messages and Responses APIs too; Kilo does it for Chat Completions.

1. Standard Compute

Native endpoints for Claude Code (/v1/messages) and Codex (/v1/responses), plus an OpenAI-compatible base URL, all on one key and all routed for cost: the router sends each step to the cheapest model that can do it across Claude, GPT and open models, and for every model we vet providers for price, uptime and speed, falling back to another when one fails. Opt-in Compliance rules keep a company, team or key on provider endpoints in Europe or the US; a team or key can narrow the company rule, never widen it. We don't train on your prompts or store them. Each key runs on a fixed monthly plan with the compute included, instead of credits with a fee on each purchase.

Wrong pick when your apps already run on Cloudflare and you bring your own provider keys (we don't support BYOK, and Cloudflare's gateway layer is free), your use is light or uneven, or data must stay in the EU end to end: our Europe rule restricts where inference runs, but requests pass through our gateway and OpenRouter, which can process them outside the EU. Also when procurement needs a SOC 2 report or self-serve SCIM: we have no SOC 2 report yet, and SCIM is on request (SSO, a signed DPA and an uptime SLA come with Enterprise or as add-ons).

2. CodeRouter

The closest product to ours: a monthly plan for coding agents that classifies each request by phase (plan, implement, debug, small edit) and picks from 25 Claude, GPT, Gemini and open models, with Anthropic Messages and Responses endpoints for Claude Code and Codex. Plans are counted in tokens, with a separate, smaller Opus allowance.

Wrong pick when you want to pin a model on a plan (its smart-routing plans rewrite model names to auto), you don't want overage billed automatically up to a monthly cap, or you need region selection below Enterprise.

3. Kilo Gateway

Passes tokens through with no markup (a 5% fee applies to payments). Kilo Pass turns a monthly payment into credits, with bonus credits that grow with a streak. Its kilo-auto/efficient router classifies each request's difficulty and picks the cheapest model it considers accurate enough, the same idea Standard Compute uses.

Wrong pick when you run Claude Code or Codex, whose Messages and Responses APIs its gateway docs do not cover, or you need EU inference below Enterprise.

Claude Code and Codex on any model

Through Cloudflare, Codex works with OpenAI models only. These pay-as-you-go gateways serve Anthropic Messages and OpenAI Responses endpoints for models from several vendors; you pick the model.

4. Requesty

One key for 600+ models at provider prices plus a fee on top-ups, or your own provider keys. Spend caps per key, fallback chains you configure, an EU endpoint in Frankfurt on every plan with an org-wide rule that rejects other regions, and native Messages and Responses support for Claude Code, Codex and OpenCode. It stores prompt content only for keys with logging on.

Wrong pick when you want the gateway to pick cheaper models for you: its routing is fallback chains, load balancing and latency policies you configure. SSO and audit logs are Enterprise features.

5. Vercel AI Gateway

Resells tokens at provider list price with no markup, and charges no fee on your own keys. Its coding-agent setup goes furthest of the pay-as-you-go options: a dedicated Claude Code endpoint, Claude Max subscription passthrough and a one-command setup for Codex, OpenCode and other agents. For teams already on Vercel it is the natural default.

Wrong pick when you need a hard spend cap or a built-in model picker. Its budgets let the request that crosses the limit finish, and its own cost-routing guide leaves the classifier to you.

6. OpenRouter

The best-known pay-per-token aggregator: 500+ models behind one OpenAI-compatible API, with provider fallback, its Auto and Pareto routers, and native Messages and Responses APIs for Claude Code and Codex. You buy credits at provider price plus a fee, or bring your own keys, and prompts are not stored unless you opt in. Stripe agreed to acquire it in August 2026.

Wrong pick when you need SSO/SAML or a contractual SLA (Enterprise only), or in-region EU routing below its Business plan. Usage is billed per token, so an always-on agent's bill stays open-ended.

Spend limits that turn requests away

Cloudflare records cost after a request completes, so its own docs call spend limits eventually consistent, and bursts can pass them. By their own docs, each of these has limits per key that refuse requests once reached; LiteLLM checks the budget before the provider call.

7. LiteLLM

The most widely used open-source gateway. It speaks the Messages and Responses APIs, supports hard budgets per virtual key, team and user, and charges no fee; you pay every provider separately and can use existing cloud commitments. Its Auto Router add-on routes each request by difficulty tier, on the proxy you run, and can fill the tiers from the models you already serve. It is SOC 2 Type II audited, SSO is free for up to 5 users, and Enterprise is an annual license, never priced per token, that adds wider SSO, audit logs and air-gapped deployment.

Wrong pick when you do not want to run, patch and secure a proxy and its Postgres database. In March 2026 two LiteLLM releases on PyPI shipped a credential stealer.

8. Agentgateway

An Apache 2.0 Linux Foundation project, created by Solo.io, that proxies LLM, MCP and agent-to-agent traffic. Virtual models give weighted, priority-failover and conditional routing, load-balanced by health and latency; per-key USD budgets are true spend caps; and native Messages and Responses support backs its Claude Code and Codex guides, including running Claude Code on non-Anthropic models.

Wrong pick when you want automatic model choice out of the box (its cost routing example adds an external semantic router), or admin RBAC and audit logs as a product, which we did not find in its docs. It is self-hosted only.

9. TrustedRouter

A pay-per-token router that runs its gateway in attested confidential-computing environments and keeps no prompt or output logs. Aliases such as trustedrouter/cheap, /zdr and /eu pick from fixed provider lists, and privacy minimums fail closed instead of downgrading. Per-key daily, weekly and monthly limits are built in, and its docs cover Claude Code and Codex.

Wrong pick when procurement needs a SOC 2 report (its Type II observation window is still open), or you need strict EU residency: its own EU page says upstream providers can process outside the EU.

10. Pydantic AI Gateway

Now part of Pydantic Logfire: one key for many providers, with every request logged through Logfire or any OpenTelemetry backend, in a US or EU region. Bring your own keys at no markup or buy inference through it, set daily, weekly and monthly spend limits per project, user and key, and follow its documented Claude Code and Codex setups.

Wrong pick when you want the gateway to choose models: routing is priorities and weights you set per provider. SSO, SCIM and audit logs are Enterprise, and the standalone open-source gateway was archived in March 2026.

EU data residency

Cloudflare's Data Localization Suite does not cover AI Gateway. These gateways run in Europe or have an EU endpoint. Our OpenRouter alternative for EU compliance guide goes deeper on what has to stay in the EU.

11. orq.ai

An Amsterdam-based AI platform whose gateway runs only in the EU, at provider list prices plus a fee on its credits, or on your own keys. Its Smart Router sorts a pool of models into easy, medium and hard bands and picks by cost, balance or quality, and filters limit routing to EU inference or zero-retention providers. Budgets go down to the key or model, and Anthropic Messages and Responses endpoints back its Claude Code (beta) and Codex docs.

Wrong pick when you only need a gateway: its pricing also meters traces, data and agent runs, and audit logs, SSO and SCIM are Enterprise features.

12. Opper

A Stockholm-based gateway for 700+ models at provider rates, with a small fee only when you buy credits. It runs in AWS Stockholm, is ISO/IEC 27001:2022 certified, keeps only usage metadata on that plan and does not bill failed or fallback attempts. Its CLI launches Claude Code, Codex, OpenCode and other agents on the gateway in one command.

Wrong pick when you want the gateway to choose cheaper models for you, or budgets per key without moving to its Control Plane plan, where the fee is higher; on the Gateway plan, spend control is a prepaid balance.

13. nexos.ai

A European AI gateway for 200+ models at provider prices plus a platform fee, hosted in Europe and SOC 2 Type 2, ISO 27001 and ISO 42001 certified. Budgets per user, team, project or key are set before overruns happen, Claude Code has a documented setup, and the same vendor sells a chat workspace for non-technical staff.

Wrong pick when you need SSO/SAML, RBAC, audit logs or policy enforcement without an Enterprise contract, or just an API for a few developers rather than a company-wide platform.

14. Cortecs

A Vienna-based gateway that routes 150+ models across 10+ EU providers at provider price plus a service fee, ISO 27001 certified end to end. Its router filters providers by compliance, uptime and context size, ranks them by speed, cost or a balance, and retries the next one on failure. Budgets per project, team, user or key block requests at the limit, and Claude Code and Codex setups are documented.

Wrong pick when you expect zero data retention by default: it is a project setting you turn on, and without it requests can reach endpoints that keep data. Its docs don't cover SSO.

15. EUrouter

An Amsterdam-based, OpenRouter-style API with every request routed and processed inside the EU, zero data retention and a published DPA. Plans trade a monthly fee for a lower markup, and per-key spend limits return HTTP 402 at the limit.

Wrong pick when you run Claude Code: its API has no Anthropic Messages endpoint, and no Codex setup is documented. We also found no SOC 2 or ISO 27001 claim.

16. Eden AI

A French unified API for LLMs plus OCR, speech, vision and translation, at provider prices with a fee on credit purchases. When you name a model without a provider it favors the cheaper providers, falls back across providers and the backup models you list, and caches identical requests. Its EU endpoint serves only EU-compatible models and keeps prompts and outputs in the EU, its security page lists SOC 2 and ISO 27001, and Claude Code and Codex setups are documented.

Wrong pick when you need RBAC, SSO, SCIM or audit logs, which need its custom-priced Advanced AI Platform plan, or you want it to pick a cheaper model rather than a cheaper provider of the same model.

Enterprise platforms and your cloud

When procurement decides: SSO, audit logs and certifications from a gateway vendor, or your cloud's own model service. Our production gateway comparison lines up spend limits, prompt logging, SSO and SLAs across the main gateways.

17. Portkey (Prisma AIRS AI Gateway)

Now Palo Alto Networks' Prisma AIRS AI Gateway: a control plane for 1,600+ models on your own provider keys, priced by recorded logs. Conditional routing, load balancing and fallbacks are configs you write, Claude Code and Codex setups are documented, and Enterprise adds SSO, RBAC, VPC hosting and HIPAA.

Wrong pick when you want one bill that includes the tokens, or budget limits per key without an Enterprise contract. Product direction is now set by a security vendor.

18. Kong AI Gateway

Kong's AI layer, managed from its Konnect control plane (with an EU region) and run on serverless, Kong-hosted or your own data planes. Load balancing can follow cost, latency, usage or semantic similarity to model descriptions, with retry and fallback built in, and it has guides for Claude Code and for Codex on the Responses API. You bring your own provider keys.

Wrong pick when you are a small team: Plus is billed per control plane, per block of requests and per model proxied, and SSO and audit logging are Enterprise only.

19. TrueFoundry

An enterprise AI gateway priced per seat, with SaaS on Pro and VPC, on-prem or data residency on Enterprise. It does fallback, weighted and latency-based load balancing, budgets and rate limits per user, team or model, documents Claude Code and serves the Responses API. Its site lists SOC 2, HIPAA and GDPR.

Wrong pick when you want one bill that includes the tokens: TrueFoundry prices users and gateway requests, and model-provider charges are billed separately. Data residency needs Enterprise.

20. Azure AI Foundry

Microsoft's model service: OpenAI, DeepSeek, Grok, Mistral, Llama and Kimi models on an OpenAI-compatible v1 endpoint, and Claude, billed through Azure Marketplace, on the Anthropic Messages API, all per token at Azure prices. Its model router picks a model per prompt in balanced, cost or quality mode, with failover, and Data Zone EU deployments keep Azure-sold models inside the EU Data Boundary. Claude Code and Codex both have official setups, with Entra ID and Azure RBAC for access.

Wrong pick when you need Claude processed in the EU: Claude is offered only as Global Standard, which may run in any Azure region, or US Data Zone. Codex on Azure works with API keys only, not Entra ID.

21. Amazon Bedrock

AWS's model service, billed on your AWS account: Claude, OpenAI GPT, DeepSeek, Qwen, Kimi, GLM, Mistral, Llama and more, per token at AWS prices. EU geographic inference profiles keep requests inside the EU, Claude Code has an official Bedrock mode, Codex has a built-in Bedrock provider, and IAM controls access and cost attribution.

Wrong pick when you want one OpenAI-compatible endpoint for every model: Bedrock does not serve Claude on its Chat Completions or Responses APIs, and Intelligent Prompt Routing only chooses between two models of the same family.

How we chose

Every option is a hosted or self-hosted API that an app or agent can point at instead of Cloudflare AI Gateway. We started from the gateways AI assistants name when asked about Cloudflare AI Gateway, OpenRouter, Portkey and LiteLLM for production, EU and governance needs, then took each fact from the vendor's own pricing, docs or GitHub pages, checked October 13 and 14, 2026. Standard Compute is our product; it is listed first because this page leads with cost, and every entry, ours included, says when it is the wrong pick.

Sources: OpenRouter pricing; OpenRouter data collection; Portkey security; LiteLLM enterprise (SSO, SOC 2); Vercel pricing; Requesty pricing; Vercel AI Gateway pricing; Vercel: cost-aware model routing; Kilo pricing; CodeRouter pricing; Opper pricing; Eden AI pricing; Eden AI provider routing; Eden AI EU endpoint; Eden AI organization plans; TrustedRouter pricing; TrustedRouter EU; TrustedRouter SOC 2 readiness; TrustedRouter agent setup; LiteLLM Auto Router; LiteLLM security incident; Bifrost on GitHub; Bifrost pricing; Bifrost Complexity Router; Agentgateway virtual models; Agentgateway per-key budgets; Kong pricing; Kong AI Gateway load balancing; Portkey pricing; TrueFoundry pricing; TrueFoundry Claude Code docs; orq.ai pricing; orq.ai Smart Router; orq.ai EU regions; nexos.ai pricing; Cortecs pricing; Cortecs routing; Cortecs zero data retention; EUrouter pricing; EUrouter OpenAPI spec; Pydantic pricing; Pydantic AI Gateway docs; Azure Foundry deployment types; Azure Foundry model router; Claude Code on Microsoft Foundry; Codex on Azure; Bedrock OpenAI-compatible APIs; Bedrock geographic inference; Bedrock prompt routing; Claude Code on Amazon Bedrock

Which one fits your work

PickWhen
Standard ComputeClaude Code on the Anthropic Messages API and Codex on the Responses API, both routed across Claude, GPT and open models
Compute included in the plan, with a published budget, instead of credits plus a fee
Europe or US region rules per key, team or company, applied to the provider endpoints that serve your requests
Company and agency workspaces with a plan or limit per developer key
Cloudflare AI GatewayYour apps already run on Cloudflare and you want the gateway's caching, analytics and DLP for free
You bring your own provider keys and want a gateway that adds no fee at all
You want to build your own routing flows with conditions, percentage splits and budget fallbacks
Pay-as-you-go use that is light or uneven

Switching takes one config change

Standard Compute is OpenAI-compatible, so any tool or SDK that lets you set a custom base URL migrates in minutes:

Base URL  = https://api.stdcmpt.com/v1
API key   = your Standard Compute key
Model     = standardcompute

Setup guides for OpenClaw, Hermes, OpenCode, Cursor, Cline, Aider and more are on the integrations page.

FAQ

What is the best Cloudflare AI Gateway alternative?

It depends on why you are leaving. If you want Claude Code and Codex routed to cheaper models, Standard Compute does that on the Messages and Responses APIs with the compute in one plan, and CodeRouter routes coding agents by task phase. To pick the models yourself with native Claude Code and Codex endpoints, Requesty, Vercel AI Gateway and OpenRouter. For per-key spend limits, LiteLLM, Agentgateway and TrustedRouter; for EU residency, orq.ai, Opper, nexos.ai, Cortecs and EUrouter.

Is Cloudflare AI Gateway free?

The gateway's core features are free on all Cloudflare plans. You pay for inference, either to your own providers or as Unified Billing credits with a fee on each purchase, and logs on new gateways follow Workers Logs pricing.

Can I use Cloudflare AI Gateway with Claude Code?

Yes. Point ANTHROPIC_BASE_URL at your gateway's /anthropic path and add a cf-aig-authorization header, paying with Unified Billing credits or your own Anthropic key. On Standard Compute you set ANTHROPIC_BASE_URL to https://api.stdcmpt.com and use your Standard Compute key.

Does Cloudflare AI Gateway choose the model for me?

Its Auto Router does, when you send model cloudflare/auto in the Chat Completions or Responses format. It picks from a Cloudflare-managed pool of Anthropic, OpenAI and xAI models, and adds open models such as DeepSeek or GLM only if you allow-list them in a header. Standard Compute's router picks from the up to five models you select, on all three agent APIs.

What is the Unified Billing rate limit?

200 requests per 60 seconds per gateway, answered with HTTP 429 above that. Requests that use your own provider keys don't count toward it.

Does Standard Compute have SSO, SOC 2 or a DPA?

SSO and a DPA, yes; SOC 2, not yet. SSO (SAML), a signed DPA and a 99.9% uptime SLA come with Enterprise or as add-ons, the DPA is public at standardcompute.com/dpa, and SCIM is on request. We have no SOC 2 report yet and no bring-your-own-key. We also have company workspaces with roles, an audit log, a budget per key and Europe or US rules inherited from company to team to key. If procurement needs a SOC 2 report today, Portkey Enterprise, LiteLLM Enterprise, Kong or TrueFoundry fit better.

Sources: AI Gateway pricing; Unified Billing; AI Gateway limits; Auto Router; Spend limits; Codex setup; Data Localization Suite compatibility; LiteLLM budgets

Works like Cloudflare AI Gateway, optimized for cost

Standard Compute

Current frontier models Claude Fable 5.1 · GPT-6 Astra

More intelligence
per dollar.

Each step goes to the cheapest model that can do it, on providers we vet for price, uptime and speed, with automatic fallback when one fails.

Compliance
Opt-in rules keep a company, team or key on European or US providers
Privacy
We don’t train on your prompts or store them

Fixed monthly plans from $19 · cancel anytime

7-day fair refund Free trial, no card Billing by Stripe4,200+ agent users