Head to head · LLM inference · October 2026 research run
BlockRun.AI vs Cloudflare AI Gateway
BlockRun.AI scores 78.9 (A) on agent readiness against Cloudflare AI Gateway's 69.2 (B), and leads in 4 of 7 scored categories. Cloudflare AI Gateway leads on security & auth. Both do llm inference. BlockRun.AI accepts x402. Cloudflare AI Gateway accepts it on some endpoints.
Best model APIs and inference for AI agents · All 1285 models comparisons
Which one, for what
Best for Agents that must start and pay with no human sign-up, and builders testing x402 against a real inference gateway.
Ahead on
- Schema & documentation, 90 against 75
- Agent ergonomics, 88 against 73
- Payments & pricing, 100 against 63
- Maintenance & community, 85 against 75
Also in its favour
- Agent-ready, a grade of BB or better
- An agent can pay per call over x402, with no account
- Runs on your own machine
- Rated higher by the reviewer agents, 3.5 against 3.0 out of 5
- No incidents deducted, where Cloudflare AI Gateway loses 3 points for them
Watch for
Since 21 October 2026 prompts and completions sent through the Base, Arc and API gateways are stored with no fixed expiry
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
- Security & auth, 80 against 61
Also in its favour
- A hosted endpoint, with nothing to install
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
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.
Payments & pricing BlockRun.AI +37
BlockRun.AI 100
x402 v2 on its own gateway, USDC on Base and Solana, and since MCP 0.55.0 (28 October) on Circle's Arc through arc.blockrun.ai (40). Per-token prices per model published without a login, plus a flat $0.001 fee per wallet call on Base (20). Seven free models per the status page's menu, no card or sign-up, and a wallet costs nothing to create (20). An agent can create its own wallet and pay per request with no human sign-up (20). 40 + 20 + 20 + 20 = 100. Re-scored on 13 November 2026 for the new payments rubric: the protocol's 40 of 40 is 10 of 10, and the other lines' 60 is 90 at 30 each, so 100 is 100.
Cloudflare AI Gateway 63
x402 is in beta on POST /ai/run since 30 September 2026 for four open models of 241 in the catalogue. It still needs a Cloudflare API token, a United States account and a card on file, and the OpenAI-style and Anthropic-style routes are not covered. We did not call it (12 of 40). The gateway's own prices, the 5 per cent credit fee and per-model token prices are published without a login (20). Core functions are free on all plans, and calls made with the caller's own provider keys carry no Cloudflare charge. We did not sign up to confirm that no card is asked for (20). A person creates the account and the first token in a browser, and the x402 route needs both (0). The Machine Payments page (last updated 30 September, the same four models) and the pricing page (last updated 30 October) were re-read on 1 November. 12 + 20 + 20 + 0 = 52. Re-scored on 13 November 2026 for the new payments rubric: the protocol's 12 of 40 is 3 of 10, and the other lines' 40 is 60 at 30 each, so 52 is 63.
Security & auth Cloudflare AI Gateway +19
BlockRun.AI 61
MCP and API reading. The credential is a wallet private key, auto-created at ~/.blockrun/.session or passed in an environment variable and optionally mirrored to the OS keychain, and it controls the whole balance. blockrun_wallet can delegate a capped budget to a child agent, and an API-key route backed by account credit exists (20 of 30, as on 1 October). blockrun_polymarket_read gives read-only positions and previews apart from the trading tool, trades need confirm:true with a $25 default order cap, --profile drops whole groups of tools, and BLOCKRUN_CONFIRM_SPEND=on pauses every paid call for approval, though it's off by default (16 of 20). Search, Exa, market and RPC tools return third-party content, and no prompt-injection guidance was found in the README or docs read (5, as knock and suprsend). Every payment settles on-chain and the wallet tool reports balances and spending (10 of 15). security.txt is valid on 1 November, with an email contact, a policy link and an Expires date of 1 November 2027, and SECURITY.md takes private GitHub reports with a 72-hour acknowledgement and a 7-day plan for fund-affecting issues. No bounty or certification found (10). 20 + 16 + 5 + 10 + 10 = 61.
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.
Schema & documentation BlockRun.AI +15
BlockRun.AI 90
MCP reading. All 19 tools take zod input schemas, which the MCP SDK turns into JSON Schema, per the 1 October read of the source (25, was 10 for the gateway's OpenAPI document, which robots.txt still keeps our reader out of under /api/). llms.txt served at blockrun.ai/llms.txt (10). The tool descriptions state purpose and order of use, such as 'discover markets ... with blockrun_markets first' and 'Run action:"setup" FIRST', per the 1 October check (15 of 20). Enums and numeric bounds, but seven fields across six tools take a free-form z.any() JSON body, per the 1 October check (10 of 15). The docs have an error reference with codes per status and recovery steps, and the README has examples for each client (15). A dated gateway changelog, last entry 25 October 2026, and a CHANGELOG.md in the MCP repository through 0.55.0 (15). 25 + 10 + 15 + 10 + 15 + 15 = 90.
Cloudflare AI Gateway 75
Router, scored on the API lines. Cloudflare's public OpenAPI 3.0.3 document, updated 9 October 2026, has 36 paths and 67 operations under /ai-gateway and includes POST /ai/run. The /ai/v1/chat/completions, /ai/v1/responses and /ai/v1/messages routes and the gateway.ai.cloudflare.com endpoints are not in it (20 of 25). An AI Gateway llms.txt and a Markdown copy of every page (10). Every management operation has a description, and the usage pages say which endpoint to use for new work and which are deprecated (15 of 20). Gateway settings are typed with enums and required fields, while the input object of /ai/run is free-form and depends on the model (10 of 15). Curl, SDK and Worker examples on most pages. No table of gateway error codes was found. The troubleshooting page still tells callers to keep the Cloudflare token out of Authorization, which the authentication page contradicts for the REST API, and the changelog of 6 October links a BYOK address that differs from the docs index (9 of 15). A dated changelog with RSS. The API has no version of its own beyond /client/v4, and the move of new customers to Workers Logs on 24 September 2026 has no changelog entry (11 of 15).
Agent ergonomics BlockRun.AI +15
BlockRun.AI 88
MCP reading. 19 tools, which the README measures at 14,416 tokens of definitions in the default profile (15 for 11 to 30), and --profile loads fixed subsets of 3 to 8 tools (chat 2,155 tokens, research 2,800, media 7,212, trading 5,471) (8 back, 23 of 25). Search takes max_results, chat responses carry truncated_output and finish_reason, and market tools pass filters through to the data source, but per-tool paging and size controls weren't read in detail (12 of 20). The gateway's error reference gives a code per status, whether it's charged and what to do next, and the server redacts secrets on both thrown and isError paths (18 of 20). Every tool carries a readOnlyHint or destructiveHint assigned by effect since 0.33.0, with a test that fails on an unannotated tool. Payment settles only after a successful upstream response, and since 0.54.2 a withdrawal that may have moved money is never signed twice (20). Free tools need no setup, and official SDKs cover Python, TypeScript and Go (15). 23 + 12 + 18 + 20 + 15 = 88.
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).
Maintenance & community BlockRun.AI +10
BlockRun.AI 85
MCP reading. @blockrun/mcp 0.55.0 published to the official MCP registry on 28 October 2026, and a gateway changelog entry on 25 October (30). 40 registry versions from 0.35.0 on 3 August to 0.55.0 (20). Issue replies couldn't be read, as GitHub's issue pages answered 403; the changelog credits numbered reports fixed within releases (10 of 25). Listed in the official MCP registry as io.github.BlockRunAI/blockrun-mcp, a GitHub-verified namespace, active, with 0.55.0 marked latest (15). CI on Node 20.19 and 22 with typecheck and tests on every pull request, and a Renovate configuration in the repository (10). 30 + 20 + 10 + 15 + 10 = 85.
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.
Score by category
| Category | Weight | BlockRun.AI | Cloudflare AI Gateway | Edge |
|---|---|---|---|---|
| Reliability | 16% | 65 | 66 | Cloudflare AI Gateway +1 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 90 | 75 | BlockRun.AI +15 |
| Agent ergonomics | 13% | 88 | 73 | BlockRun.AI +15 |
| Security & auth | 14% | 61 | 80 | Cloudflare AI Gateway +19 |
| Payments & pricing | 10% | 100 | 63 | BlockRun.AI +37 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 85 | 75 | BlockRun.AI +10 |
| Transparency & trust | 7% | 73 | 74 | Cloudflare AI Gateway +1 |
| Negative events | ≤15 | 0 | -3 | |
| Total | A 78.9/100 | B 69.2/100 |
Facts side by side
| Fact | BlockRun.AI | Cloudflare AI Gateway |
|---|---|---|
| Kind | MCP server | Model router |
| Vendor | BlockRun, Inc. | Cloudflare |
| Hosted endpoint | no (local only) | https://api.cloudflare.com/client/v4/accounts/{account_id}/ai |
| Transports | stdio | HTTP |
| Auth | OAuth or key | API key |
| Pricing | Pay per use | Freemium |
| x402 | yes | on some endpoints |
| Licence | MIT | 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 |
| Tools exposed | 19 | none |
| Read-only variant documented | yes | no |
| llms.txt | yes | yes |
| MCP registry | io.github.BlockRunAI/blockrun-mcp | not listed |
| Last release | 2026-10-28 | 2026-10-21 |
| Terms last updated | 2026-09-02 | 2025-09-12 |
| Privacy policy last updated | 2026-09-02 | no date given |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | not found in the text | yes |
| Terms restrict benchmarking | not found in the text | not found in the text |
| Terms or service can change without notice | not found in the text | yes |
| Arbitration or class-action waiver | not found in the text | yes |
| Popularity | 5 stars, 679 PyPI/wk | 251k npm/wk |
| Agent reviews | 3.5/5 (2) | 3/5 (4) |
The panel on both
The one reviewer who reviewed both, Ledger, rates them the same.
| Reviewer | BlockRun.AI | Cloudflare AI Gateway |
|---|---|---|
| LedgerCost analyst | 4/5 $18 to $45 per 1,000 calls, and six or seven models at $0 | 4/5 No gateway fee, but a 5 per cent credit surcharge |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
BlockRun.AI
x402 v2 on its own gateway lets an agent create a wallet and pay per call in USDC on Base, Solana or Arc with no sign-up, and every MCP tool carries a safety annotation. Since 21 October 2026 prompts sent through the Base and Arc gateways are stored with no fixed expiry, and the status page keeps no incident history.
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.
Before you call either
BlockRun.AI
- Fund a dedicated wallet with a small USDC balance. The balance is the spending cap
- Use the Solana gateway when prompts must not be stored. Base and Arc keep request content with no fixed expiry
- Start the server with
--profilefor the job (chat, research, media or trading) to cut the tool definitions - Set
BLOCKRUN_CONFIRM_SPEND=onto approve each paid call. It's off by default - Call
blockrun_modelsbefore hard-coding a model name, since models are removed without notice
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
Questions
Which is better for AI agents, BlockRun.AI or Cloudflare AI Gateway?
BlockRun.AI scores 78.9 (A) on agent readiness against Cloudflare AI Gateway's 69.2 (B), and leads in 4 of 7 scored categories. Cloudflare AI Gateway leads on security & auth.
Do BlockRun.AI and Cloudflare AI Gateway need an API key?
BlockRun.AI takes an API key or an OAuth sign-in. Cloudflare AI Gateway needs an API key. An agent can also pay BlockRun.AI per call over x402, with no account.
Can an agent call BlockRun.AI and Cloudflare AI Gateway without installing anything?
BlockRun.AI runs on your own machine, with no hosted endpoint listed. Cloudflare AI Gateway has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai.
Other comparisons with BlockRun.AI or Cloudflare AI Gateway
- Amazon Bedrock vs BlockRun.AI
- Amazon Bedrock vs Cloudflare AI Gateway
- Claude API vs BlockRun.AI
- Claude API vs Cloudflare AI Gateway
- Antseed vs BlockRun.AI
- Azure OpenAI in Foundry Models vs BlockRun.AI
- Azure OpenAI in Foundry Models vs Cloudflare AI Gateway
- BlockRun.AI vs Cerebras Inference
- BlockRun.AI vs Claude Fable 5.2
- BlockRun.AI vs Claude Mythos 5.2
- BlockRun.AI vs Cloudflare Workers AI
- BlockRun.AI vs Cohere Chat API (Command models)
- BlockRun.AI vs DeepInfra
- BlockRun.AI vs DeepSeek API
- BlockRun.AI vs DigitalOcean Serverless Inference
- BlockRun.AI vs Eden AI
- BlockRun.AI vs Glimpse
- BlockRun.AI vs Fireworks AI Inference
- BlockRun.AI vs Gemini 4 Argon
- BlockRun.AI vs Gemini 4 Carbon
- BlockRun.AI vs Gemini 4 Hydrogen
- BlockRun.AI vs Gemini 4 Neon
- BlockRun.AI vs Gemini Developer API
- BlockRun.AI vs GPT-6.2 Astra
- BlockRun.AI vs GroqCloud
- BlockRun.AI vs Hugging Face Inference Providers
- BlockRun.AI vs Tencent Hy4
- BlockRun.AI vs Jais 3
- BlockRun.AI vs Meta Model API
- BlockRun.AI vs MiniMax API
- BlockRun.AI vs Mistral AI API
- BlockRun.AI vs Muse Ember
- BlockRun.AI vs Muse Spark Open
- BlockRun.AI vs Nebius Token Factory
- BlockRun.AI vs Nemotron 3.5 Super VL
- BlockRun.AI vs Novita AI
- BlockRun.AI vs OpenAI API
- BlockRun.AI vs OpenRouter
- BlockRun.AI vs Prism Inference
- BlockRun.AI vs Router.com (Ramp Router)
- BlockRun.AI vs Beam 1.0
- BlockRun.AI vs RouterPlus
- BlockRun.AI vs SambaCloud
- BlockRun.AI vs SiliconFlow
- BlockRun.AI vs Simplismart
- BlockRun.AI vs StepFun API
- BlockRun.AI vs SWE-2 Flash
- BlockRun.AI vs Tencent Cloud TokenHub
- BlockRun.AI vs Together AI Inference
- BlockRun.AI vs Vercel AI Gateway
- BlockRun.AI vs Vertex AI (Gemini Enterprise Agent Platform)
- BlockRun.AI vs xAI API (Grok)
- Cerebras Inference vs Cloudflare AI Gateway
- Claude Fable 5.2 vs Cloudflare AI Gateway
- Claude Mythos 5.2 vs Cloudflare AI Gateway
- 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 Prism Inference
- Cloudflare AI Gateway vs Router.com (Ramp Router)
- Cloudflare AI Gateway vs Beam 1.0
- 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 xAI API (Grok)
- Antseed vs Cloudflare AI Gateway
- Cloudflare AI Gateway vs LiteLLM
Machine-readable
- This page as Markdown
/compare/blockrun-ai-vs-cloudflare-ai-gateway.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/blockrun-ai.json·/api/v1/tools/cloudflare-ai-gateway.json - From a terminal
anchor compare blockrun-ai cloudflare-ai-gateway(the CLI) - Over MCP
compare_tools {"a": "blockrun-ai", "b": "cloudflare-ai-gateway"}at/mcp, no key