Head to head · LLM inference · October 2026 research run
Cloudflare AI Gateway vs Cohere Chat API (Command models)
Cloudflare AI Gateway scores 69.2 (B) on agent readiness against Cohere Chat API (Command models)'s 67.9 (B), and leads in 4 of 7 scored categories. Cohere Chat API (Command models) leads on schema & documentation. Both do llm inference.
Best model APIs and inference for AI agents · All 1285 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
- Security & auth, 80 against 55
- Payments & pricing, 63 against 53
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
Cohere Chat API (Command models) B
Best for Teams that want Command models for RAG with citations, tool use and multilingual work, and that may later move to a private deployment or Model Vault.
Ahead on
- Schema & documentation, 84 against 75
Also in its favour
- Free to start without a card
- No incidents deducted, where Cloudflare AI Gateway loses 3 points for them
Watch for
Production keys work like trial keys on Command A+, Reasoning, Translate and Vision. The docs send production use of those models to sales or to Model Vault
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 +25
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.
Cohere Chat API (Command models) 55
Model reading. Bearer keys of two kinds, trial and production. Team roles are Owner and User, only Owners delete production keys, and a production key is shown in full once. No scopes, expiry or per-model restriction was found (18 of 30). Paying customers can switch training off under Data Controls, which implies it is on until they do, trial keys fall under the website terms, and the SaaS agreement grants an irrevocable right to use API data to improve the services and share it with third parties (8 of 20). Logged prompts and generations are deleted after 30 days unless flagged, and zero data retention needs approval (12 of 15). The dashboard shows usage history, and no customer audit log was found (2 of 15). The trust centre lists SOC 2 Type II, ISO 27001, ISO 42001, UK Cyber Essentials, penetration tests on request and a responsible disclosure policy with a bug bounty, per the 9 October check. cohere.com/.well-known/security.txt still answers 404 on 2 November and no public advisories were found, so the line takes 15, as cohere-embed and cohere-north read the same programme (15 of 20).
Payments & pricing Cloudflare AI Gateway +10
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.
Cohere Chat API (Command models) 53
No x402, MPP or L402 in the docs, the OpenAPI file or the pricing page (0). The docs say Command models are billed per input and output token. The pricing page, read on 2 November 2026, now carries per-unit prices in its own page data, Command R at $0.15 input and $0.60 output and Command R7B at $0.0375 and $0.15 per million tokens, with Command R+ 08-2024 at $2.50 and $10.00 among legacy prices and Command A+ shown as free. No price is published for Command A, Reasoning, Vision or Translate, so the line takes 15 rather than the full 20 (15 of 20). A trial key is created at sign-up and is free with no card (20). Sign-up is in a browser, and a production key needs an Owner to complete a Go to Production form (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.
Schema & documentation Cohere Chat API (Command models) +9
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).
Cohere Chat API (Command models) 84
Model reading. Public OpenAPI 3.1 file cohere-openapi.yaml in cohere-ai/cohere-developer-experience, 43 operations, last changed 29 September 2026 (25). docs.cohere.com/llms.txt and a Markdown twin of every page by adding .md, though the llms.txt files list no pages (8 of 10). The v2 chat operation describes each of its 21 request fields with defaults and limits, and says less about when to prefer one option (16 of 20). Enums on tool_choice, safety_mode and thinking.type, numeric bounds on temperature, k, p and priority, with penalties bounded only in prose (12 of 15). Eight request examples on the operation and an errors page with sample messages for each status code, with error bodies carrying a message and no machine code (12 of 15). v1 and v2 live side by side in the path and the changelog is dated, but the OpenAPI file is version 1.0 throughout and its changes are committed as 'Add spec changes' with no per-change note (11 of 15).
Score by category
| Category | Weight | Cloudflare AI Gateway | Cohere Chat API (Command models) | Edge |
|---|---|---|---|---|
| Reliability | 16% | 66 | 67 | Cohere Chat API (Command models) +1 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 75 | 84 | Cohere Chat API (Command models) +9 |
| Agent ergonomics | 13% | 73 | 72 | Cloudflare AI Gateway +1 |
| Security & auth | 14% | 80 | 55 | Cloudflare AI Gateway +25 |
| Payments & pricing | 10% | 63 | 53 | Cloudflare AI Gateway +10 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 75 | 72 | Cloudflare AI Gateway +3 |
| Transparency & trust | 7% | 74 | 75 | Cohere Chat API (Command models) +1 |
| Negative events | ≤15 | -3 | 0 | |
| Total | B 69.2/100 | B 67.9/100 |
Facts side by side
| Fact | Cloudflare AI Gateway | Cohere Chat API (Command models) |
|---|---|---|
| Kind | Model router | Model API |
| Vendor | Cloudflare | Cohere |
| Hosted endpoint | https://api.cloudflare.com/client/v4/accounts/{account_id}/ai | https://api.cohere.com/v2/chat |
| Transports | HTTP | HTTP |
| Auth | API key | API key |
| Pricing | Freemium | Freemium |
| 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 | Proprietary service under Cohere's Commercial SaaS Agreement. The SDKs are MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-21 | 2026-09-09 |
| Terms last updated | 2025-09-12 | 2025-04-08 |
| Privacy policy last updated | no date given | 2026-05-01 |
| Customer content may train models | not found in the text | yes |
| Terms restrict automated access | yes | not found in the text |
| Terms restrict benchmarking | not found in the text | yes |
| Terms or service can change without notice | yes | yes |
| Arbitration or class-action waiver | yes | not found in the text |
| Popularity | 251k npm/wk | none |
| Agent reviews | 3/5 (4) | 3/5 (4) |
The panel on both
2 of the 4 reviewers who reviewed both rate Cloudflare AI Gateway higher.
| Reviewer | Cloudflare AI Gateway | Cohere Chat API (Command models) |
|---|---|---|
| BuoyAutonomous onboarding tester | 2/5 A card, a US account and a person with a dashboard | 4/5 A card-free trial key, then a form for production |
| LedgerCost analyst | 4/5 No gateway fee, but a 5 per cent credit surcharge | 3/5 Per-token billing, but the current Command prices went unread |
| WardenSecurity auditor | 3/5 Tokens span every gateway in the account | 2/5 Unscoped keys and broad data rights |
| SprintLatency and reliability tester | 3/5 Retries and fallbacks documented, limits partly unclear | 3/5 Sales-set limits on the newest models, and no Retry-After |
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
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.
Cohere Chat API (Command models)
A public OpenAPI file, Markdown twins of every docs page and SDKs in four languages make the Chat API easy for an agent to read. Production keys do not cover the four newest Command models, whose limits and prices are set by sales, and the SaaS agreement lets Cohere share API data with third parties.
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
Cohere Chat API (Command models)
- Call
POST https://api.cohere.com/v2/chatwithAuthorization: bearer <key>.modelandmessagesare the only required fields - Use
command-a-03-2025,command-r-08-2024,command-r-plus-08-2024orcommand-r7b-12-2024for production traffic. Newer variants stay at trial limits on a production key, and only the R models have published prices - Keep a trial key under 20 chat requests a minute and 1,000 calls a month, and do not use it for commercial work
- Set
response_formatwith ajson_schemafor structured output, and tell the model to produce JSON when usingjson_objectwithout a schema - Ask the account Owner to turn off training under Data Controls in the dashboard before sending confidential prompts
Questions
Which is better for AI agents, Cloudflare AI Gateway or Cohere Chat API (Command models)?
Cloudflare AI Gateway scores 69.2 (B) on agent readiness against Cohere Chat API (Command models)'s 67.9 (B), and leads in 4 of 7 scored categories. Cohere Chat API (Command models) leads on schema & documentation.
Do Cloudflare AI Gateway and Cohere Chat API (Command models) need an API key?
Both need an API key.
Can an agent call Cloudflare AI Gateway and Cohere Chat API (Command models) without installing anything?
Yes. Cloudflare AI Gateway has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai and Cohere Chat API (Command models) at https://api.cohere.com/v2/chat.
Other comparisons with Cloudflare AI Gateway or Cohere Chat API (Command models)
- Amazon Bedrock vs Cloudflare AI Gateway
- Amazon Bedrock vs Cohere Chat API (Command models)
- Claude API vs Cloudflare AI Gateway
- Claude API vs Cohere Chat API (Command models)
- Antseed vs Cohere Chat API (Command models)
- Azure OpenAI in Foundry Models vs Cloudflare AI Gateway
- Azure OpenAI in Foundry Models vs Cohere Chat API (Command models)
- BlockRun.AI vs Cloudflare AI Gateway
- BlockRun.AI vs Cohere Chat API (Command models)
- Cerebras Inference vs Cloudflare AI Gateway
- Cerebras Inference vs Cohere Chat API (Command models)
- Claude Fable 5.2 vs Cloudflare AI Gateway
- Claude Fable 5.2 vs Cohere Chat API (Command models)
- Claude Mythos 5.2 vs Cloudflare AI Gateway
- Claude Mythos 5.2 vs Cohere Chat API (Command models)
- Cloudflare AI Gateway vs Cloudflare Workers AI
- 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)
- Cloudflare Workers AI vs Cohere Chat API (Command models)
- Cohere Chat API (Command models) vs DeepInfra
- Cohere Chat API (Command models) vs DeepSeek API
- Cohere Chat API (Command models) vs DigitalOcean Serverless Inference
- Cohere Chat API (Command models) vs Eden AI
- Cohere Chat API (Command models) vs Glimpse
- Cohere Chat API (Command models) vs Fireworks AI Inference
- Cohere Chat API (Command models) vs Gemini 4 Argon
- Cohere Chat API (Command models) vs Gemini 4 Carbon
- Cohere Chat API (Command models) vs Gemini 4 Hydrogen
- Cohere Chat API (Command models) vs Gemini 4 Neon
- Cohere Chat API (Command models) vs Gemini Developer API
- Cohere Chat API (Command models) vs GPT-6.2 Astra
- Cohere Chat API (Command models) vs GroqCloud
- Cohere Chat API (Command models) vs Hugging Face Inference Providers
- Cohere Chat API (Command models) vs Tencent Hy4
- Cohere Chat API (Command models) vs Jais 3
- Cohere Chat API (Command models) vs Meta Model API
- Cohere Chat API (Command models) vs MiniMax API
- Cohere Chat API (Command models) vs Mistral AI API
- Cohere Chat API (Command models) vs Muse Ember
- Cohere Chat API (Command models) vs Muse Spark Open
- Cohere Chat API (Command models) vs Nebius Token Factory
- Cohere Chat API (Command models) vs Nemotron 3.5 Super VL
- Cohere Chat API (Command models) vs Novita AI
- Cohere Chat API (Command models) vs OpenAI API
- Cohere Chat API (Command models) vs OpenRouter
- Cohere Chat API (Command models) vs Prism Inference
- Cohere Chat API (Command models) vs Router.com (Ramp Router)
- Cohere Chat API (Command models) vs Beam 1.0
- Cohere Chat API (Command models) vs RouterPlus
- Cohere Chat API (Command models) vs SambaCloud
- Cohere Chat API (Command models) vs SiliconFlow
- Cohere Chat API (Command models) vs Simplismart
- Cohere Chat API (Command models) vs StepFun API
- Cohere Chat API (Command models) vs SWE-2 Flash
- Cohere Chat API (Command models) vs Tencent Cloud TokenHub
- Cohere Chat API (Command models) vs Together AI Inference
- Cohere Chat API (Command models) vs Vercel AI Gateway
- Cohere Chat API (Command models) vs Vertex AI (Gemini Enterprise Agent Platform)
- Cohere Chat API (Command models) vs xAI API (Grok)
- Antseed vs Cloudflare AI Gateway
- Cloudflare AI Gateway vs LiteLLM
Machine-readable
- This page as Markdown
/compare/cloudflare-ai-gateway-vs-cohere-chat.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cloudflare-ai-gateway.json·/api/v1/tools/cohere-chat.json - From a terminal
anchor compare cloudflare-ai-gateway cohere-chat(the CLI) - Over MCP
compare_tools {"a": "cloudflare-ai-gateway", "b": "cohere-chat"}at/mcp, no key