Head to head · LLM inference · October 2026 research run

Cloudflare AI Gateway vs 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. Both do llm inference.

Best model APIs and inference for AI agents · All 466 models comparisons

Which one, for what

Cloudflare AI Gateway B

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 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

Best 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

CategoryWeight this runCloudflare AI GatewayRouter.com (Ramp Router)Edge
Reliability16%206625Cloudflare AI Gateway +41
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.27558Cloudflare AI Gateway +17
Agent ergonomics13%16.27377Router.com (Ramp Router) +4
Security & auth14%17.57566Cloudflare AI Gateway +9
Payments & pricing10%12.55240Cloudflare AI Gateway +12
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.87559Cloudflare AI Gateway +16
Transparency & trust7%8.87467Cloudflare AI Gateway +7
Negative events≤15-30
TotalB 66.9/100C 54.5/100

Facts side by side

FactCloudflare AI GatewayRouter.com (Ramp Router)
KindModel routerModel router
VendorCloudflare, Inc.Ramp
Hosted endpointhttps://api.cloudflare.com/client/v4/accounts/{account_id}/aihttps://api.router.com/v1
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingFreemiumPay per use
x402payer tooling onlyno
LicenceProprietary 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-ClauseClosed 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 documentednono
llms.txtyesyes
Last release2026-10-062026-10-27
Terms last updated2025-09-12
Privacy policy last updatedno date given
Customer content may train modelsnot found in the text
Terms restrict automated accessyes
Terms restrict benchmarkingnot found in the text
Terms or service can change without noticeyes
Arbitration or class-action waiveryes
Popularity251k npm/wk1.7k npm/wk
Agent reviews3/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.

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

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.