Router One

A Cloudflare AI Gateway alternative with access built in

Cloudflare AI Gateway is a managed proxy layer that adds caching, rate limiting, analytics, and logs in front of AI provider APIs — a natural fit if you already run on Cloudflare and hold your own provider keys. Router One is a different kind of gateway: upstream model access, billing, smart routing, and per-request cost traces come built in — one key and one wallet for 40+ supported models, reachable globally and from Mainland China.

TL;DR · Pick Cloudflare AI Gateway if your stack already runs on Cloudflare Workers and you hold your own provider keys — its caching, logs, and routing controls come included with Cloudflare plans. Pick Router One if you want the model access itself bundled in: one key, one wallet, managed fallback, and an endpoint reachable from Mainland China.

Two different kinds of gateway

FeatureRouter OneCloudflare AI Gateway
Product focusManaged gateway: access, billing, routing, traces in oneProxy/control layer in front of provider APIs you already hold
Smart routing & fallbackEWMA latency + posted cost + 5xx rate, managedDynamic Routing graphs you design: branches, splits, fallback
Per-request observabilityTraces: final model/provider, tokens, cost, latency, statusAnalytics, persistent logs, Logpush; retention gated by plan
OpenAI-compatible APIYes — Chat Completions, drop-in base URLYes — one unified API across many providers
Provider access & billingUpstream access included through one key and walletBYOK by default; Unified Billing at list price + 5% credit fee
Accessible from Mainland ChinaChina-reachable endpoint with published latency benchmarkNo documented mainland-China endpoint
Payment methodsCard or Alipay in one checkout, USDT/USDC on 6 chainsCard billing on your Cloudflare account

Where the managed gateway helps

No provider accounts to hold

Cloudflare's default mode is BYOK: you store keys for provider accounts you already maintain, and its keyless Unified Billing option bills provider list price plus a 5% credit-purchase fee to a card-billed Cloudflare account. Router One includes upstream access through one key and one prepaid wallet.

A gateway without the Cloudflare dependency

AI Gateway's endpoint, routes, logs, and billing all live inside a Cloudflare account and shine brightest inside the Workers ecosystem. Router One is a standalone OpenAI-compatible endpoint — no Workers bindings or Cloudflare dashboard required.

Reachable worldwide, including Mainland China

A proxy in front of provider APIs inherits their reach. Router One's endpoint serves distributed teams everywhere, including Mainland China. Based on the China latency benchmark last updated 2026-05-15, Router One measured 110-130ms p50 across Beijing, Shanghai, and Shenzhen; individual networks may vary.

View the China latency benchmark ->

Switch with one base URL change

Cloudflare AI Gateway already exposes an OpenAI-compatible endpoint, so anything pointed at it moves to Router One with a base URL and key change — and you stop needing provider accounts or a store of upstream keys altogether.

terminal
# Point your client at Router One
export OPENAI_BASE_URL=https://api.router.one/v1
export OPENAI_API_KEY=sk-your-router-one-key

FAQ

Is Cloudflare AI Gateway included with Cloudflare accounts, and what does it cost?

Core gateway features — caching, rate limiting, analytics, basic logs — are included with Cloudflare accounts on all plans, with no per-request gateway fee. Costs sit at the edges: log retention and Logpush are gated by Workers Paid, Guardrails bill as Workers AI inference, and Unified Billing adds a 5% fee on credit purchases while passing inference through at provider list price.

Does Cloudflare AI Gateway include model access, or do I need my own provider accounts?

Both modes exist. The default is BYOK: you bring API keys from provider accounts you already hold. Its Unified Billing option lets you buy Cloudflare credits and call several major providers without provider keys, at provider list price plus a 5% fee on credit purchases, billed to your Cloudflare account's payment method.

How does Cloudflare AI Gateway's routing compare to Router One's?

Cloudflare gives you a routing-graph builder: you define conditional branches, percentage splits, and budget- or rate-limit-triggered fallbacks yourself in a visual editor or JSON. Router One ships smart routing with same-family fallback built in — multiple upstreams per model are maintained by the service, so requests keep flowing without you designing or operating a route graph.

When is Cloudflare AI Gateway the better fit?

If your stack already runs on Cloudflare Workers, you hold your own provider keys, and you mainly want caching, rate limiting, analytics, and logs in front of existing traffic, it is the natural choice — especially if you also value DLP scanning, guardrails, and Logpush attached to a vendor you already trust, or routing graphs you design yourself.

Is Cloudflare AI Gateway usable from Mainland China?

Cloudflare documents no mainland-China-specific endpoint for AI Gateway, and its China Network (operated with JD Cloud) is a separate enterprise product not documented to cover it. You also need either a card-billed Cloudflare account for Unified Billing or accounts with upstream providers, several of which do not serve Mainland China. Router One provides a China-reachable endpoint and non-card payment options.

Can I migrate from Cloudflare AI Gateway to Router One?

Yes. Both expose OpenAI-compatible endpoints, so most integrations move with a base URL and API key change. After the switch you no longer need provider accounts or upstream keys — access is included through one key and one wallet.

More comparisons

Want the model access included, not just a proxy in front of it?

Get your API key