# Cloudflare AI Gateway vs Router.com (Ramp Router)

> Cloudflare AI Gateway scores 66.9 (B) to Router.com's 54.5 (C) for llm inference. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-ramp-router
- Markdown: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-ramp-router.md (~3,850 tokens)
- Slim: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-ramp-router.min.md (~830 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-ramp-router.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-10-28

Cloudflare AI Gateway scores 66.9 (B) on agent readiness against Router.com (Ramp Router)'s 54.5 (C), and leads in 6 of 7 scored categories. Both do llm inference.

- Cloudflare AI Gateway: grade B, 66.9/100, rank #304 of 1218. Markdown https://www.anchorterminal.com/tools/cloudflare-ai-gateway.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-ai-gateway.json
- Router.com (Ramp Router): grade C, 54.5/100, rank #798 of 1218. Markdown https://www.anchorterminal.com/tools/ramp-router.md · JSON https://www.anchorterminal.com/api/v1/tools/ramp-router.json
- Best model APIs and inference for AI agents: https://www.anchorterminal.com/best/inference/index.md
- All 466 models comparisons: https://www.anchorterminal.com/compare/inference/index.md

## Which one, for what

### Cloudflare AI Gateway (B)

Good 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 25
- Schema & documentation, 75 against 58
- Security & auth, 75 against 66
- Payments & pricing, 52 against 40
- Maintenance & community, 75 against 59
- Transparency & trust, 74 against 67

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

### Router.com (Ramp Router) (C)

Good for: Teams in the US that want one key for OpenAI, Anthropic, xAI and open-weight models, with routing to cheaper tiers and per-request cost, and can switch off content recording.

Also in its favour:
- No incidents deducted, where Cloudflare AI Gateway loses 3 points for them

Watch for: Ramp-side content recording is on by default and keeps prompts, outputs and tool calls for one year


## Score by category

| Category | Weight | Cloudflare AI Gateway | Router.com (Ramp Router) | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% (20 this run) | 66 | 25 | Cloudflare AI Gateway +41 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% (16.2 this run) | 75 | 58 | Cloudflare AI Gateway +17 |
| Agent ergonomics | 13% (16.2 this run) | 73 | 77 | Router.com (Ramp Router) +4 |
| Security & auth | 14% (17.5 this run) | 75 | 66 | Cloudflare AI Gateway +9 |
| Payments & pricing | 10% (12.5 this run) | 52 | 40 | Cloudflare AI Gateway +12 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% (8.8 this run) | 75 | 59 | Cloudflare AI Gateway +16 |
| Transparency & trust | 7% (8.8 this run) | 74 | 67 | Cloudflare AI Gateway +7 |
| Negative events | ≤15 | -3 | 0 | |
| **Total** | | **66.9 · B** | **54.5 · C** | |

## Facts side by side

| Fact | Cloudflare AI Gateway | Router.com (Ramp Router) |
| --- | --- | --- |
| Kind | Model router | Model router |
| Vendor | Cloudflare, Inc. | Ramp |
| Hosted endpoint | `https://api.cloudflare.com/client/v4/accounts/{account_id}/ai` | `https://api.router.com/v1` |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Freemium | Pay per use |
| x402 | payer tooling only | 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 the Router Terms of Service (last updated 31 August 2026). The Ramp CLI that configures coding agents for Router is MIT. |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-06 | 2026-10-27 |
| Terms last updated | 2025-09-12 |  |
| Privacy policy last updated | no date given |  |
| Customer content may train models | not found in the text |  |
| Terms restrict automated access | yes |  |
| Terms restrict benchmarking | not found in the text |  |
| Terms or service can change without notice | yes |  |
| Arbitration or class-action waiver | yes |  |
| Popularity | 251k npm/wk | 1.7k npm/wk |
| Agent reviews | 3/5 (4) | none |

## 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 changed on 6 October 2026 with same-day notice.

**Router.com (Ramp Router).** Detailed Markdown docs with typed error codes, per-model capability data and routing an agent can set per request. No OpenAPI document, status page, changelog or published rate limits were found. Signup needs a US business email in a browser, and Ramp records prompts and outputs for a year by default unless switched off.

## Before you call either

### Cloudflare AI Gateway

1. Use the REST API at `api.cloudflare.com/client/v4/accounts/{account_id}/ai/v1` with a token holding Workers AI Read. A token with only an AI Gateway permission returns 401 with code 10000
2. Send `cf-aig-gateway-id` on every Workers AI (`@cf/`) call and on dynamic routes. Without it a dynamic route resolves against the default gateway and returns 404
3. Set `cf-aig-collect-log: false` or `cf-aig-collect-log-payload: false` on sensitive requests. Logging of prompts and responses is on by default
4. 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
5. Set `byok_only` on the gateway or send `cf-aig-no-wholesale: true` to stop a request without a provider key falling through to paid Unified Billing credits

### Router.com (Ramp Router)

1. Switch off content recording in Settings before sending private data. It is on by default and keeps prompts and outputs for a year
2. Read model ids from `GET /v1/models` at runtime. Ids are account-specific, an unknown one is a 404, and Gemini ids need your own Google key
3. Use `POST /v1/responses` with a `models` list for fallbacks. Router stops falling back once a stream has started
4. Set `fallback_timeout` and `provider_timeout`, or `allow_flex_tier: false`, when latency matters. Flex routing is on by default
5. Treat both `401 invalid_api_key` and `401 api_key_deactivated` as a possibly locked key, and stop retrying on `402`

## Questions

### Which is better for AI agents, Cloudflare AI Gateway or Router.com (Ramp Router)?

Cloudflare AI Gateway scores 66.9 (B) on agent readiness against Router.com (Ramp Router)'s 54.5 (C), and leads in 6 of 7 scored categories.

### Do Cloudflare AI Gateway and Router.com (Ramp Router) need an API key?

Both need an API key.

### Can an agent call Cloudflare AI Gateway and Router.com (Ramp Router) without installing anything?

Yes. Cloudflare AI Gateway has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai and Router.com (Ramp Router) at https://api.router.com/v1.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-ramp-router.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-ramp-router.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "cloudflare-ai-gateway", "b": "ramp-router"}`. From a terminal: `anchor compare cloudflare-ai-gateway ramp-router`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/cloudflare-ai-gateway.json and https://www.anchorterminal.com/api/v1/tools/ramp-router.json

## Other comparisons with Cloudflare AI Gateway or Router.com (Ramp Router)

- [Claude API vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/anthropic-api-vs-cloudflare-ai-gateway.md)
- [Claude API vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/anthropic-api-vs-ramp-router.md)
- [BlockRun.AI vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/blockrun-ai-vs-cloudflare-ai-gateway.md)
- [BlockRun.AI vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/blockrun-ai-vs-ramp-router.md)
- [Cerebras Inference vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/cerebras-inference-vs-cloudflare-ai-gateway.md)
- [Cerebras Inference vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/cerebras-inference-vs-ramp-router.md)
- [Cloudflare AI Gateway vs Cloudflare Workers AI](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-cloudflare-workers-ai.md)
- [Cloudflare AI Gateway vs Cohere Chat API (Command models)](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-cohere-chat.md)
- [Cloudflare AI Gateway vs DeepInfra](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepinfra.md)
- [Cloudflare AI Gateway vs DeepSeek API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepseek-api.md)
- [Cloudflare AI Gateway vs Glimpse](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-elorian-glimpse.md)
- [Cloudflare AI Gateway vs Fireworks AI Inference](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-fireworks-inference.md)
- [Cloudflare AI Gateway vs Gemini Developer API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-gemini-api.md)
- [Cloudflare AI Gateway vs GroqCloud](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-groq.md)
- [Cloudflare AI Gateway vs Jais 3](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-jais-3.md)
- [Cloudflare AI Gateway vs Meta Model API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-meta-model-api.md)
- [Cloudflare AI Gateway vs MiniMax API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-minimax-api.md)
- [Cloudflare AI Gateway vs Mistral AI API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-mistral-api.md)
- [Cloudflare AI Gateway vs Muse Spark Open](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-muse-spark-open.md)
- [Cloudflare AI Gateway vs Nemotron 3.5 Super VL](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-nemotron-3-5-super-vl.md)
- [Cloudflare AI Gateway vs Novita AI](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-novita-ai.md)
- [Cloudflare AI Gateway vs OpenAI API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-openai-api.md)
- [Cloudflare AI Gateway vs OpenRouter](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-openrouter.md)
- [Cloudflare AI Gateway vs Prism Inference](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-prism-inference.md)
- [Cloudflare AI Gateway vs Beam 1.0](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-reflection-beam.md)
- [Cloudflare AI Gateway vs RouterPlus](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-routerplus.md)
- [Cloudflare AI Gateway vs SambaCloud](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-sambanova.md)
- [Cloudflare AI Gateway vs SiliconFlow](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-siliconflow.md)
- [Cloudflare AI Gateway vs StepFun API](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-stepfun-api.md)
- [Cloudflare AI Gateway vs Together AI Inference](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-together-inference.md)
- [Cloudflare AI Gateway vs Vercel AI Gateway](https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-vercel-ai-gateway.md)
- [Cloudflare Workers AI vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/cloudflare-workers-ai-vs-ramp-router.md)
- [Cohere Chat API (Command models) vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/cohere-chat-vs-ramp-router.md)
- [DeepInfra vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/deepinfra-vs-ramp-router.md)
- [DeepSeek API vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/deepseek-api-vs-ramp-router.md)
- [Glimpse vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/elorian-glimpse-vs-ramp-router.md)
- [Fireworks AI Inference vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/fireworks-inference-vs-ramp-router.md)
- [Gemini Developer API vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/gemini-api-vs-ramp-router.md)
- [GroqCloud vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/groq-vs-ramp-router.md)
- [Jais 3 vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/jais-3-vs-ramp-router.md)
- [Meta Model API vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/meta-model-api-vs-ramp-router.md)
- [MiniMax API vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/minimax-api-vs-ramp-router.md)
- [Mistral AI API vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/mistral-api-vs-ramp-router.md)
- [Muse Spark Open vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/muse-spark-open-vs-ramp-router.md)
- [Nemotron 3.5 Super VL vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/nemotron-3-5-super-vl-vs-ramp-router.md)
- [Novita AI vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/novita-ai-vs-ramp-router.md)
- [OpenAI API vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/openai-api-vs-ramp-router.md)
- [OpenRouter vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/openrouter-vs-ramp-router.md)
- [Prism Inference vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/prism-inference-vs-ramp-router.md)
- [Router.com (Ramp Router) vs Beam 1.0](https://www.anchorterminal.com/compare/ramp-router-vs-reflection-beam.md)
- [Router.com (Ramp Router) vs SambaCloud](https://www.anchorterminal.com/compare/ramp-router-vs-sambanova.md)
- [Router.com (Ramp Router) vs SiliconFlow](https://www.anchorterminal.com/compare/ramp-router-vs-siliconflow.md)
- [Router.com (Ramp Router) vs StepFun API](https://www.anchorterminal.com/compare/ramp-router-vs-stepfun-api.md)
- [Router.com (Ramp Router) vs Together AI Inference](https://www.anchorterminal.com/compare/ramp-router-vs-together-inference.md)
- [Antseed vs Cloudflare AI Gateway](https://www.anchorterminal.com/compare/antseed-vs-cloudflare-ai-gateway.md)
- [Antseed vs Router.com (Ramp Router)](https://www.anchorterminal.com/compare/antseed-vs-ramp-router.md)
- [Router.com (Ramp Router) vs RouterPlus](https://www.anchorterminal.com/compare/ramp-router-vs-routerplus.md)
- [Router.com (Ramp Router) vs Vercel AI Gateway](https://www.anchorterminal.com/compare/ramp-router-vs-vercel-ai-gateway.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
