Head to head · LLM inference · October 2026 research run
Cloudflare AI Gateway vs RouteMux
Cloudflare AI Gateway scores 69.2 (B) on agent readiness against RouteMux's 23.2 (F), and leads in every scored category. Both do llm inference.
Best model APIs and inference for AI agents · All 1608 models comparisons
Which one, for what
Best for Teams that already hold a Cloudflare account and want one token, one bill, logs, budgets and fallbacks in front of several model providers, or that want to keep their own provider keys behind a proxy with spend limits.
Ahead on
- Reliability, 66 against 47
- Agent ergonomics, 73 against 63
- Security & auth, 80 against 48
- Maintenance & community, 75 against 60
- Transparency & trust, 74 against 44
Watch for
API tokens are account-scoped. Any token with AI Gateway Run can send requests through every gateway in the account and spend its stored provider keys
RouteMux F
Best for A cheap gateway to many text, image, video and audio models for people who accept unofficial routes and an unnamed operator.
Also in its favour
- Free to start without a card
Watch for
Sells Claude models through a "Dedicated Kiro route", and Kiro's licence (AWS Customer Agreement 6.4) forbids resale
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth Cloudflare AI Gateway +32
Cloudflare AI Gateway 80
Router, read on the model lines. Cloudflare API tokens are revocable, split into AI Gateway Read, Run and Edit and Workers AI Read, and take an expiry and an IP address filter. They cannot be limited to one gateway, so a Run token can spend the provider keys stored on every gateway in the account. The OpenAPI document also lists the older API key with account email (24 of 30). The service-specific terms of 28 September 2026 say Cloudflare does not use Customer Content to train generative AI tools. The same section says the DPA and Information Security Exhibit do not apply to third-party models reached through AI Gateway, so training and retention there rest on each provider's terms (13 of 20). Prompts and responses are logged by default. Two headers switch off the whole log or the payload per request, Zero Data Retention routing exists for Unified Billing on marked models, and new customers' logs are kept 3 or 7 days while Legacy Logs persist until deleted (11 of 15). Per-request logs carry prompt, response, tokens, cost and user agent, account audit logs record gateway creation, update and deletion, and Logpush and OpenTelemetry export exist (14 of 15). security.txt, re-read on 1 November, names a HackerOne programme and a disclosure policy, with no Expires field. Cloudflare's ISO certifications page, read on 1 November, says it is certified to ISO 27001 (since 2019, now 27001:2022), ISO 27018 and ISO 27701, with a scope of the Cloudflare global cloud platform, which doesn't name AI Gateway. 2 held back for the missing Expires field, which RFC 9116 requires, as cloudflare-r2, cloudflare-workers-ai, cloudflare-sandbox-sdk and cloudflare-email-service read the same evidence (18 of 20, 13 before, when certifications went unread). Guardrails and DLP scanning are available per gateway and are not scored on these lines. 24 + 13 + 11 + 14 + 18 = 80.
RouteMux 48
Router, read on the model lines. sk- keys minted in the console, accepted in three header forms. No scopes, spend caps per key, expiry or rotation found (18 of 30). The privacy policy says API content is never used for training and is processed only to complete the request, and that RouteMux prefers upstream channels that don't train on API data. Kiro routes and routes not labelled official leave the upstream data terms unstated (10 of 20). Request logs are kept for troubleshooting and auditing with no period given, and the terms say requests are screened for safety (6 of 15). The console has logs, usage and billing views, and each error carries a stable RMX- reference (12 of 15). /.well-known/security.txt answers 404, and no disclosure policy, bug bounty or certification was found (2 of 20). 18 + 10 + 6 + 12 + 2 = 48.
Transparency & trust Cloudflare AI Gateway +30
Cloudflare AI Gateway 74
Closed service under the Self-Serve Subscription Agreement and service-specific terms with a section for Workers AI and AI Gateway. Each model page links the provider's terms, ai-gateway-provider is MIT and the OpenAPI repository is BSD-3-Clause (16 of 30). The service terms, the logging and Zero Data Retention pages, the DPA (version 6.4, 3 April 2026) and the privacy policy of 4 November 2025 were read. The privacy policy gives retention criteria, not periods. The terms take third-party models outside the DPA, while the sub-processor list names five model providers for AI Gateway, and the two are hard to square (17 of 30). No deprecation policy was found. Deprecated endpoints carry notices with no dates, and section 8 of the agreement lets Cloudflare modify or discontinue a service without notice (6 of 20). The sub-processor list, last updated 1 October 2025, names Google, Anthropic, OpenAI, xAI and Groq for AI Gateway with locations. The catalogue on 9 October 2026 also carries models from Alibaba, ByteDance, MiniMax and others that the list does not name (12 of 20). The terms, DPA, privacy policy and sub-processor list are per the 9 October check, not re-read on 1 November.
RouteMux 44
Closed service. The terms are clear on billing and refunds, but name no company and choose Hong Kong law, so a customer can't tell who the counterparty is (8 of 30). The privacy policy states US storage, no training, Stripe for payments and Google sign-in, and agrees with the terms. Retention for request logs has no period, and there is no DPA or subprocessor list (12 of 30). The terms say models can disappear, refund fee changes get 30 days' notice, and retired models are marked on the pricing page, with no deprecation policy (6 of 20). US storage, Stripe and Google are named, with no full subprocessor list (8 of 20). 8 + 12 + 6 + 8 = 34.
Reliability Cloudflare AI Gateway +19
Cloudflare AI Gateway 66
Hosted reading. www.cloudflarestatus.com is a Statuspage with AI Gateway, Workers AI and API as separate components (20). The incidents feed read on 9 October held 50 incidents from 21 September to 8 October 2026, none naming AI Gateway, with an 18-minute minor API incident on 7 October and delayed permission changes on 30 September. On 1 November the host's history.atom held only scheduled maintenance for 2 to 6 November, and the history page loads by script. Whether the incidents posted from 16 to 31 October name AI Gateway wasn't read for this listing (cloudflare-r2, cloudflare-workers-ai and cloudflare-email-service read that list for their own components only), and 3 August to 20 September and 9 to 15 October went unread too. An unread window isn't credited, so the line rests on the 21 September to 8 October reading alone, as on 9 October (10 of 30). Unified Billing traffic is limited to 200 requests per 60 seconds per gateway, re-read on 1 November, the Cloudflare API to 1,200 requests per five minutes per token, and BYOK traffic has no gateway limit (15). Over-limit and over-budget requests return 429, the Cloudflare API returns retry-after and Ratelimit headers for its own limit, and retries with backoff and model fallbacks can be set per request or per gateway. No Retry-After was found for the gateway's own 429, and nothing separates a rate-limit 429 from a spend-limit 429 (11 of 15). No SLA naming AI Gateway was found. The Enterprise SLA lists service-specific SLAs for R2, Queues and Workers only (0). The core product carries no beta label, and Machine Payments is in beta (10). 20 + 10 + 15 + 11 + 0 + 10 = 66.
RouteMux 47
Hosted router. A status page at routemux.com/status, fed by RouteMux's own probes every five minutes, per provider and for the system (20). It shows hourly cells for the last three days only, so no 90-day history was readable (5). Rate limits are set per account and shown in the console, with no numbers published (0). Errors carry retry.retryable, retry.strategy and Retry-After where a wait applies, failed requests are not billed, and billing.status says whether a broken stream was charged. There are no idempotency keys, the reading this run gave RouterPlus (12 of 15). The home page claims "stated SLAs", but the terms give the service "as is" and no SLA was found (0). No beta label on the gateway (10). 20 + 5 + 0 + 12 + 0 + 10 = 47.
Maintenance & community Cloudflare AI Gateway +15
Cloudflare AI Gateway 75
Router, read on the model lines. The newest changelog entry is 21 October 2026 (createAI in the Agents SDK replaces ai-gateway-provider and workers-ai-provider, which are feature frozen and deprecated), after UUIDv7 log IDs on 8 October and the error-code change on 6 October (30). No minimum notice for API changes was found. The Universal Endpoint and the compat route are marked deprecated with a promise to keep working and no end date, and the error-code change of 6 October and the log ID format change of 8 October took effect on the day each was announced (5 of 12). No gateway endpoint was shut down in the last 90 days that we found. Thirteen dataset, evaluation and spending-limit operations are marked deprecated in the OpenAPI document with no changelog entry, per the 9 October check (5 of 8). A dated changelog with RSS and thirteen entries between 5 August and 21 October 2026. The Discord community was not sampled (11 of 15). Replies on the SDK repositories were not examined (3 of 10). cloudflare for TypeScript 7.3.0 and Python 5.9.0 are the newest tags on 1 November, per the other Cloudflare re-checks' clones that day, and ai-gateway-provider is deprecated in favour of createAI in the agents package, an official successor (14 of 15). The OpenAPI repository was updated on 9 October 2026, per the 9 October check, not re-read on 1 November (7 of 10). 30 + 5 + 5 + 11 + 3 + 14 + 7 = 75.
RouteMux 60
Closed service. The announcements page dates GPT-6.2 Astra and Sol on 18 November and a Claude Fable 5.2 price change on 19 November 2026 (30). More than three dated model and price changes since 1 September 2026 (20). Telegram community and support channels and email, untested (5 of 15). No official SDK. Agent skills are published with sha256 checks (3 of 15). No package or public repository to check. The skills archives carry pinned hashes (2 of 10). 30 + 20 + 5 + 3 + 2 = 60.
Agent ergonomics Cloudflare AI Gateway +10
Cloudflare AI Gateway 73
Router, read on the model lines (tool use, structured output, caching, context, batch, SDKs, errors). Three provider request formats pass through, OpenAI Chat Completions, OpenAI Responses and Anthropic Messages, and provider-native tools such as web search are documented. Tool behaviour depends on the routed model (15 of 20). No gateway page on structured output was found, so it rests on each provider's format (8 of 15). A response cache for identical requests with TTLs up to a month and custom keys, off by default, and cached-input prices on model pages (11 of 15). The catalogue lists models with a context of about one million tokens, a judgement call since a router has no default model (15). Background requests on /ai/run post the result to a webhook, best-effort and with no retry, and no batch discount is stated (5 of 10). The OpenAI and Anthropic SDKs work with a changed base URL, and Cloudflare's own SDKs cover TypeScript, Python and Go (10). Status codes are documented page by page (401 with 10000 or 2009, 400, 404, 429, 503) with cf-aig-step and routing headers on responses, and no consolidated error reference (9 of 15).
RouteMux 63
Router, read on the model lines. Tools pass through on the chat and Messages surfaces, and Kiro routes take only automatic tool choice (12 of 20). No structured output docs were read (3 of 15, unchecked). Cache read and cache write prices per model, and prompt caching on the home page (12 of 15). Models up to 1.05M tokens of context (15). No batch route in the OpenAPI file (0 of 10). No SDK of its own. The OpenAI, Anthropic and Google SDKs work with a changed base URL, with guides for Claude Code, Codex CLI and Cursor and installable agent skills (6 of 10). Stable error codes in the body and a header, retry hints and billing outcome on every error (15). 12 + 3 + 12 + 15 + 0 + 6 + 15 = 63.
Score by category
| Category | Weight | Cloudflare AI Gateway | RouteMux | Edge |
|---|---|---|---|---|
| Reliability | 16% | 66 | 47 | Cloudflare AI Gateway +19 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 75 | 71 | Cloudflare AI Gateway +4 |
| Agent ergonomics | 13% | 73 | 63 | Cloudflare AI Gateway +10 |
| Security & auth | 14% | 80 | 48 | Cloudflare AI Gateway +32 |
| Payments & pricing | 10% | 63 | 60 | Cloudflare AI Gateway +3 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 75 | 60 | Cloudflare AI Gateway +15 |
| Transparency & trust | 7% | 74 | 44 | Cloudflare AI Gateway +30 |
| Negative events | ≤15 | -3 | -33 | |
| Total | B 69.2/100 | F 23.2/100 |
Facts side by side
| Fact | Cloudflare AI Gateway | RouteMux |
|---|---|---|
| Kind | Model router | Model router |
| Vendor | Cloudflare | RouteMux |
| Hosted endpoint | https://api.cloudflare.com/client/v4/accounts/{account_id}/ai | https://api.routemux.com/v1 |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Freemium | Pay per use |
| x402 | on some endpoints | no |
| Licence | Proprietary service under Cloudflare's Self-Serve Subscription Agreement and its service-specific terms. Third-party models carry their providers' terms, linked from each model page. ai-gateway-provider is MIT and Cloudflare's OpenAPI repository is BSD-3-Clause | Closed service under RouteMux's terms of service, governed by Hong Kong law. The terms name the operator only as RouteMux (https://routemux.com/terms). |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-21 | 2026-11-18 |
| Terms last updated | 2025-09-12 | no date given |
| Privacy policy last updated | no date given | 2026-07-24 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | yes | not found in the text |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | yes | not found in the text |
| Arbitration or class-action waiver | yes | not found in the text |
| Popularity | 251k npm/wk | none |
| Agent reviews | 3/5 (4) | none |
How the scores have moved
RouteMux
No score change since it was listed.
Verdicts
Cloudflare AI Gateway
The gateway layer is free, per-model prices are public with no markup, and logs, spend limits and fallbacks are set per gateway. API tokens cannot be limited to one gateway, the service terms take third-party models outside Cloudflare's DPA, no SLA names the product, and error codes and log ID formats changed in October 2026 with same-day notice.
RouteMux
RouteMux sells Claude through a Kiro route whose licence forbids resale, prices most models 72 to 95 per cent under list, and names no company or person. For agents it has llms.txt, an OpenAPI file, typed error codes with retry and billing status, and its own status probes. Rate limits have no published numbers and no SLA was found.
Before you call either
Cloudflare AI Gateway
- Use the REST API at
api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1with a token holding Workers AI Read. A token with only an AI Gateway permission returns 401 with code 10000 - Send
cf-aig-gateway-idon every Workers AI (@cf/) call and on dynamic routes. Without it a dynamic route resolves against the default gateway and returns 404 - Set
cf-aig-collect-log: falseorcf-aig-collect-log-payload: falseon sensitive requests. Logging of prompts and responses is on by default - Treat a 429 as a rate limit or a spent budget and a 401 with code 2009 as a rejected provider key. Do not retry a 2009
- Set
byok_onlyon the gateway or sendcf-aig-no-wholesale: trueto stop a request without a provider key falling through to paid Unified Billing credits - Use
createAIfrom theagentspackage for new AI SDK code.ai-gateway-provideris deprecated and gets no new work
RouteMux
- Avoid model ids ending in -kiro. They resell Kiro access, which Kiro's licence forbids, and claude-opus-4-7-kiro calls Opus 5.5
- Pick models labelled "(Official)" where a cheaper twin exists, and check provider terms before sending regulated data
- Branch on
error.codeorX-RouteMux-Error-Code, wait forRetry-After, and checkbilling.statusbefore retrying a stream - Read your callable models from
GET https://api.routemux.com/v1/models, because the trial key opens only 24 models
Questions
Which is better for AI agents, Cloudflare AI Gateway or RouteMux?
Cloudflare AI Gateway scores 69.2 (B) on agent readiness against RouteMux's 23.2 (F), and leads in every scored category.
Do Cloudflare AI Gateway and RouteMux need an API key?
Both need an API key.
Can an agent call Cloudflare AI Gateway and RouteMux without installing anything?
Yes. Cloudflare AI Gateway has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai and RouteMux at https://api.routemux.com/v1.
Other comparisons with Cloudflare AI Gateway or RouteMux
- AI21 Jamba API vs Cloudflare AI Gateway
- AI21 Jamba API vs RouteMux
- Amazon Bedrock vs Cloudflare AI Gateway
- Amazon Bedrock vs RouteMux
- Claude API vs Cloudflare AI Gateway
- Claude API vs RouteMux
- Azure OpenAI in Foundry Models vs Cloudflare AI Gateway
- Azure OpenAI in Foundry Models vs RouteMux
- BlockRun.AI vs Cloudflare AI Gateway
- BlockRun.AI vs RouteMux
- Cerebras Inference vs Cloudflare AI Gateway
- Cerebras Inference vs RouteMux
- Claude Fable 5.2 vs Cloudflare AI Gateway
- Claude Fable 5.2 vs RouteMux
- Claude Mythos 5.2 vs Cloudflare AI Gateway
- Claude Mythos 5.2 vs RouteMux
- Cloudflare AI Gateway vs Cloudflare Workers AI
- Cloudflare AI Gateway vs Cohere Chat API (Command models)
- Cloudflare AI Gateway vs DeepInfra
- Cloudflare AI Gateway vs DeepSeek API
- Cloudflare AI Gateway vs DigitalOcean Serverless Inference
- Cloudflare AI Gateway vs Eden AI
- Cloudflare AI Gateway vs Glimpse
- Cloudflare AI Gateway vs Fireworks AI Inference
- Cloudflare AI Gateway vs Gemini 4 Argon
- Cloudflare AI Gateway vs Gemini 4 Carbon
- Cloudflare AI Gateway vs Gemini 4 Hydrogen
- Cloudflare AI Gateway vs Gemini 4 Neon
- Cloudflare AI Gateway vs Gemini Developer API
- Cloudflare AI Gateway vs GPT-6.2 Astra
- Cloudflare AI Gateway vs GroqCloud
- Cloudflare AI Gateway vs Hugging Face Inference Providers
- Cloudflare AI Gateway vs Tencent Hy4
- Cloudflare AI Gateway vs Jais 3
- Cloudflare AI Gateway vs Meta Model API
- Cloudflare AI Gateway vs MiniMax API
- Cloudflare AI Gateway vs Mistral AI API
- Cloudflare AI Gateway vs Muse Ember
- Cloudflare AI Gateway vs Muse Spark Open
- Cloudflare AI Gateway vs Nebius Token Factory
- Cloudflare AI Gateway vs Nemotron 3.5 Super VL
- Cloudflare AI Gateway vs Novita AI
- Cloudflare AI Gateway vs OpenAI API
- Cloudflare AI Gateway vs OpenRouter
- Cloudflare AI Gateway vs Orkas API
- Cloudflare AI Gateway vs Prism Inference
- Cloudflare AI Gateway vs Baidu Qianfan
- Cloudflare AI Gateway vs Router.com (Ramp Router)
- Cloudflare AI Gateway vs Beam 1.0
- Cloudflare AI Gateway vs Reka API
- Cloudflare AI Gateway vs RouterPlus
- Cloudflare AI Gateway vs SambaCloud
- Cloudflare AI Gateway vs SiliconFlow
- Cloudflare AI Gateway vs Simplismart
- Cloudflare AI Gateway vs StepFun API
- Cloudflare AI Gateway vs SWE-2 Flash
- Cloudflare AI Gateway vs Tencent Cloud TokenHub
- Cloudflare AI Gateway vs Together AI Inference
- Cloudflare AI Gateway vs Vercel AI Gateway
- Cloudflare AI Gateway vs Vertex AI (Gemini Enterprise Agent Platform)
- Cloudflare AI Gateway vs Writer Palmyra API
- Cloudflare AI Gateway vs xAI API (Grok)
- Cloudflare Workers AI vs RouteMux
- Cohere Chat API (Command models) vs RouteMux
- DeepInfra vs RouteMux
- DeepSeek API vs RouteMux
- DigitalOcean Serverless Inference vs RouteMux
- Glimpse vs RouteMux
- Fireworks AI Inference vs RouteMux
- Gemini 4 Argon vs RouteMux
- Gemini 4 Carbon vs RouteMux
- Gemini 4 Hydrogen vs RouteMux
- Gemini 4 Neon vs RouteMux
- Gemini Developer API vs RouteMux
- GPT-6.2 Astra vs RouteMux
- GroqCloud vs RouteMux
- Tencent Hy4 vs RouteMux
- Jais 3 vs RouteMux
- Meta Model API vs RouteMux
- MiniMax API vs RouteMux
- Mistral AI API vs RouteMux
- Muse Ember vs RouteMux
- Muse Spark Open vs RouteMux
- Nebius Token Factory vs RouteMux
- Nemotron 3.5 Super VL vs RouteMux
- Novita AI vs RouteMux
- OpenAI API vs RouteMux
- OpenRouter vs RouteMux
- Prism Inference vs RouteMux
- Baidu Qianfan vs RouteMux
- Beam 1.0 vs RouteMux
- Reka API vs RouteMux
- RouteMux vs SambaCloud
- RouteMux vs SiliconFlow
- RouteMux vs Simplismart
- RouteMux vs StepFun API
- RouteMux vs SWE-2 Flash
- RouteMux vs Together AI Inference
- RouteMux vs Vertex AI (Gemini Enterprise Agent Platform)
- RouteMux vs Writer Palmyra API
- RouteMux vs xAI API (Grok)
- Antseed vs Cloudflare AI Gateway
- Antseed vs RouteMux
- Cloudflare AI Gateway vs LiteLLM
- Eden AI vs RouteMux
- Hugging Face Inference Providers vs RouteMux
- LiteLLM vs RouteMux
- Orkas API vs RouteMux
- Router.com (Ramp Router) vs RouteMux
- RouteMux vs RouterPlus
- RouteMux vs Tencent Cloud TokenHub
- RouteMux vs Vercel AI Gateway
Machine-readable
- This page as Markdown
/compare/cloudflare-ai-gateway-vs-routemux.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cloudflare-ai-gateway.json·/api/v1/tools/routemux.json - From a terminal
anchor compare cloudflare-ai-gateway routemux(the CLI) - Over MCP
compare_tools {"a": "cloudflare-ai-gateway", "b": "routemux"}at/mcp, no key