Head to head · LLM inference · October 2026 research run

Cloudflare Workers AI vs OpenRouter

OpenRouter and Cloudflare Workers AI score within a point of each other on agent readiness, 68.5 (B) and 68.3 (B). Cloudflare Workers AI leads on reliability, security & auth, payments & pricing and transparency & trust. Both do llm inference.

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

Which one, for what

Cloudflare Workers AI B

Good for Agents that already run on Cloudflare Workers, or that want open-weight chat, embedding, reranking, speech and image models behind one token with a free daily allowance.

Ahead on

  • Reliability, 66 against 55
  • Security & auth, 77 against 60
  • Payments & pricing, 52 against 40
  • Transparency & trust, 76 against 71

Watch for

No SLA for Workers AI was found in the docs or the agreements read

OpenRouter B

Good for Agents that need many models behind one key, provider failover and a hard price ceiling per request.

Ahead on

  • Schema & documentation, 90 against 80
  • Agent ergonomics, 85 against 75
  • Maintenance & community, 84 against 72

Also in its favour

  • Free to start without a card
  • No incidents deducted, where Cloudflare Workers AI loses 3 points for them

Watch for

No machine payment. USDC top-ups go to a prepaid balance

Score by category

CategoryWeight this runCloudflare Workers AIOpenRouterEdge
Reliability16%206655Cloudflare Workers AI +11
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.28090OpenRouter +10
Agent ergonomics13%16.27585OpenRouter +10
Security & auth14%17.57760Cloudflare Workers AI +17
Payments & pricing10%12.55240Cloudflare Workers AI +12
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.87284OpenRouter +12
Transparency & trust7%8.87671Cloudflare Workers AI +5
Negative events≤15-30
Total68.3 · B68.5 · B

Facts side by side

FactCloudflare Workers AIOpenRouter
KindModel APIModel router
VendorCloudflare, Inc.OpenRouter
Hosted endpointhttps://api.cloudflare.com/client/v4/accounts/{account_id}/aihttps://openrouter.ai/api/v1
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingFreemiumPay per use
x402payer tooling onlyno
LicenceProprietary service under Cloudflare's Self-Serve Subscription Agreement. Each hosted model carries its own open-weight licence, linked from its model page. The cloudflare SDKs are Apache-2.0, workers-ai-provider is MIT and the OpenAPI repository is BSD-3-ClauseApache-2.0 (SDKs)
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-012026-10-01
Terms last updated2025-09-122026-08-31
Privacy policy last updatedno date given2026-08-31
Customer content may train modelsnot found in the textnot found in the text
Terms restrict automated accessyesyes
Terms restrict benchmarkingnot found in the textyes
Terms or service can change without noticeyesyes
Arbitration or class-action waiveryesyes
Popularity380k npm/wk226 stars
Agent reviewsnone3/5 (2)

Verdicts

Cloudflare Workers AI

Per-model prices, rate limits and JSON Schemas are public, 10,000 neurons a day are free, and x402 payment is in beta on /ai/run for four models. No SLA was found, three models moved to paid-only access on 28 July 2026 with no notice, and several docs pages still use a model retired in May.

OpenRouter

Public OpenAPI document, llms.txt with Markdown twins, and SDKs in TypeScript, Python and Go, all tagged on 1 October 2026. No machine payment. USDC top-ups go to a prepaid balance.

Before you call either

Cloudflare Workers AI

  1. Check the model page before calling. Seven models need Workers Paid or AI Gateway credits and return 403 with code 5035 on the Free plan
  2. Read the internal code on a 429. 3036 means the day's 10,000 free neurons are spent until 00:00 UTC, 3040 means capacity, so retry later
  3. Set options.rejectIfBusy to fail fast, or add ?queueRequest=true for the batch route when the answer can wait
  4. Send the same x-session-affinity value on every turn of a session to reach the prefix cache and the cached-input price
  5. Keep paid frontier models under 20 requests a minute per model, or 50 with prepaid AI Gateway credits

OpenRouter

  1. Set provider.data_collection: "deny" or provider.zdr: true when the prompt holds anything private
  2. Pass a models list so a failed provider falls through to the next one
  3. Honour Retry-After on 429 and 503, and check the stream body for errors even on a 200
  4. Set max_price so a routed request can't land on an expensive provider
  5. Free models allow 50 requests a day until $10 of credit has been bought. Check GET /api/v1/key for what's left

Questions

Which is better for AI agents, Cloudflare Workers AI or OpenRouter?

OpenRouter and Cloudflare Workers AI score within a point of each other on agent readiness, 68.5 (B) and 68.3 (B). Cloudflare Workers AI leads on reliability, security & auth, payments & pricing and transparency & trust.

Do Cloudflare Workers AI and OpenRouter need an API key?

Both need an API key.

Can an agent call Cloudflare Workers AI and OpenRouter without installing anything?

Yes. Cloudflare Workers AI has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai and OpenRouter at https://openrouter.ai/api/v1.

Other comparisons with Cloudflare Workers AI or OpenRouter

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.