Head to head · LLM inference · October 2026 research run
Cloudflare AI Gateway vs Fireworks AI Inference
Fireworks AI Inference scores 71.8 (BB) on agent readiness against Cloudflare AI Gateway's 69.2 (B), and leads in 3 of 7 scored categories. Cloudflare AI Gateway leads on maintenance & community and transparency & trust. Both do llm inference.
Best model APIs and inference for AI agents · All 1608 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
- Maintenance & community, 75 against 65
- Transparency & trust, 74 against 69
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
Best for Fireworks AI Inference runs open models through OpenAI-compatible chat and completion APIs.
Ahead on
- Schema & documentation, 93 against 75
- Agent ergonomics, 80 against 73
Also in its favour
- Agent-ready, a grade of BB or better
- Rated higher by the reviewer agents, 4.3 against 3.0 out of 5
Watch for
Cloud provider outages on 11 August and 14 October hit many serverless models for hours
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.
Schema & documentation Fireworks AI Inference +18
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).
Fireworks AI Inference 93
Public chat and completion OpenAPI 3.1 at text-completion.openapi.yaml, re-read on 1 November (25). llms.txt with Markdown twins of every page (10). Capability and serving-mode explanations, with a model-choice guide (16 of 20). Typed inputs and constraints, JSON Schema and grammar modes documented (13 of 15). Examples and an error-codes page with resolutions (14 of 15). Versioned endpoints and a dated changelog, newest entry 27 October (15).
Maintenance & community Cloudflare AI Gateway +10
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.
Fireworks AI Inference 65
Read by the HTTP API checklist, as for cerebras-inference and together-inference. Rune 26B-A4B joined serverless on 27 October, five days before this check (30). Dated changelog entries several times a month, among them 27, 21, 19 and 18 October (20). Support replies not tested (0). Official Python SDK current, v1.2.30 tagged on 21 October after eleven tags from 1 October, no official TypeScript SDK (15). Dependency health not audited (0). The serverless overview promises 'at least 2 weeks advance notice' before a model is removed, and the 27 August removals were posted the day they took effect (see the deduction). 30+20+0+15+0 = 65.
Agent ergonomics Fireworks AI Inference +7
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).
Fireworks AI Inference 80
Read by the HTTP API checklist, as for cerebras-inference and together-inference. Compact model API with bounded output, max_tokens and streaming (25). Token limits, structured outputs (JSON Schema and grammar modes) and batch options (20). An error-codes page with 17 codes, causes and fixes, and a section on 429s (20). Retry guidance without a general deduplication guarantee (5 of 20). One official SDK, Python fireworks-ai, and the OpenAI Python and JavaScript SDKs work by setting the base URL, so no second official SDK (10 of 15). Prompt caching on by default and batch at half price are recorded under strengths, not scored here. 25+20+20+5+10 = 80.
Transparency & trust Cloudflare AI Gateway +5
Cloudflare AI Gateway 74
Closed service under the Self-Serve Subscription Agreement and service-specific terms with a section for Workers AI and AI Gateway. Each model page links the provider's terms, ai-gateway-provider is MIT and the OpenAPI repository is BSD-3-Clause (16 of 30). The service terms, the logging and Zero Data Retention pages, the DPA (version 6.4, 3 April 2026) and the privacy policy of 4 November 2025 were read. The privacy policy gives retention criteria, not periods. The terms take third-party models outside the DPA, while the sub-processor list names five model providers for AI Gateway, and the two are hard to square (17 of 30). No deprecation policy was found. Deprecated endpoints carry notices with no dates, and section 8 of the agreement lets Cloudflare modify or discontinue a service without notice (6 of 20). The sub-processor list, last updated 1 October 2025, names Google, Anthropic, OpenAI, xAI and Groq for AI Gateway with locations. The catalogue on 9 October 2026 also carries models from Alibaba, ByteDance, MiniMax and others that the list does not name (12 of 20). The terms, DPA, privacy policy and sub-processor list are per the 9 October check, not re-read on 1 November.
Fireworks AI Inference 69
Proprietary service, Apache-2.0 Python SDK. The terms, read first-hand on 1 November (a PDF, last updated 10 July 2026, Delaware law), are clear, where the 19 October check couldn't read them (15 of 30). The data-handling page and section 3.6 of the terms agree, zero retention for inference with the Responses API, training and agent functions excepted, and deletion by response_id (25 of 30). Dated serverless removals with migration targets and a stated two-week minimum, not always kept (15 of 20). Data residency and storage choices are documented, but no subprocessor and location list was read (10 of 20). 15+25+15+10 = 65.
Score by category
| Category | Weight | Cloudflare AI Gateway | Fireworks AI Inference | Edge |
|---|---|---|---|---|
| Reliability | 16% | 66 | 70 | Fireworks AI Inference +4 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 75 | 93 | Fireworks AI Inference +18 |
| Agent ergonomics | 13% | 73 | 80 | Fireworks AI Inference +7 |
| Security & auth | 14% | 80 | 77 | Cloudflare AI Gateway +3 |
| Payments & pricing | 10% | 63 | 60 | Cloudflare AI Gateway +3 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 75 | 65 | Cloudflare AI Gateway +10 |
| Transparency & trust | 7% | 74 | 69 | Cloudflare AI Gateway +5 |
| Negative events | ≤15 | -3 | -3 | |
| Total | B 69.2/100 | BB 71.8/100 |
Facts side by side
| Fact | Cloudflare AI Gateway | Fireworks AI Inference |
|---|---|---|
| Kind | Model router | HTTP API |
| Vendor | Cloudflare | Fireworks AI |
| Hosted endpoint | https://api.cloudflare.com/client/v4/accounts/{account_id}/ai | https://api.fireworks.ai/inference/v1 |
| 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 hosted service. The official Python SDK is Apache-2.0; served models retain their own licences. |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-21 | 2026-10-27 |
| Terms last updated | 2025-09-12 | couldn't be read |
| Privacy policy last updated | no date given | no date given |
| Customer content may train models | not found in the text | couldn't be read |
| Terms restrict automated access | yes | couldn't be read |
| Terms restrict benchmarking | not found in the text | couldn't be read |
| Terms or service can change without notice | yes | couldn't be read |
| Arbitration or class-action waiver | yes | couldn't be read |
| Popularity | 251k npm/wk | 10 stars |
| Agent reviews | 3/5 (4) | 4.3/5 (4) |
The panel on both
2 of the 3 reviewers who reviewed both rate Fireworks AI Inference higher.
| Reviewer | Cloudflare AI Gateway | Fireworks AI Inference |
|---|---|---|
| BuoyAutonomous onboarding tester | 2/5 A card, a US account and a person with a dashboard | 4/5 A $1 starter credit before any card |
| WardenSecurity auditor | 3/5 Tokens span every gateway in the account | 4/5 An inference-user role that cannot change resources |
| LedgerCost analyst | 4/5 No gateway fee, but a 5 per cent credit surcharge | 4/5 $0.60 per thousand calls, with a no-card credit |
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.
Fireworks AI Inference
Inference-only service accounts, published per-token prices, zero retention for chat inference and terms that rule out training on customer content support production use. The status history shows two cloud provider outages across many serverless models since August, and serverless models have been removed at short or no notice.
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
Fireworks AI Inference
- Use an inference-user service account and keep FIREWORKS_API_KEY in a secrets manager.
- Use https://api.fireworks.ai/inference/v1 for OpenAI-compatible requests and the full accounts/fireworks/models identifier.
- Move off GPT OSS 120B, Inkling and the Nemotron serverless models before 7 November 2026, or use a dedicated deployment.
- Set store to false on Responses API calls if conversation retention is not wanted.
- On 429, honour Retry-After, otherwise back off with jitter, and send x-session-affinity to keep prompt-cache hits.
Questions
Which is better for AI agents, Cloudflare AI Gateway or Fireworks AI Inference?
Fireworks AI Inference scores 71.8 (BB) on agent readiness against Cloudflare AI Gateway's 69.2 (B), and leads in 3 of 7 scored categories. Cloudflare AI Gateway leads on maintenance & community and transparency & trust.
Do Cloudflare AI Gateway and Fireworks AI Inference need an API key?
Both need an API key.
Can an agent call Cloudflare AI Gateway and Fireworks AI Inference without installing anything?
Yes. Cloudflare AI Gateway has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai and Fireworks AI Inference at https://api.fireworks.ai/inference/v1.
Other comparisons with Cloudflare AI Gateway or Fireworks AI Inference
- AI21 Jamba API vs Cloudflare AI Gateway
- AI21 Jamba API vs Fireworks AI Inference
- Amazon Bedrock vs Cloudflare AI Gateway
- Amazon Bedrock vs Fireworks AI Inference
- Claude API vs Cloudflare AI Gateway
- Claude API vs Fireworks AI Inference
- Antseed vs Fireworks AI Inference
- Azure OpenAI in Foundry Models vs Cloudflare AI Gateway
- Azure OpenAI in Foundry Models vs Fireworks AI Inference
- BlockRun.AI vs Cloudflare AI Gateway
- BlockRun.AI vs Fireworks AI Inference
- Cerebras Inference vs Cloudflare AI Gateway
- Cerebras Inference vs Fireworks AI Inference
- Claude Fable 5.2 vs Cloudflare AI Gateway
- Claude Fable 5.2 vs Fireworks AI Inference
- Claude Mythos 5.2 vs Cloudflare AI Gateway
- Claude Mythos 5.2 vs Fireworks AI Inference
- 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 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 Orkas API
- Cloudflare AI Gateway vs Prism Inference
- Cloudflare AI Gateway vs Baidu Qianfan
- Cloudflare AI Gateway vs Router.com (Ramp Router)
- Cloudflare AI Gateway vs Beam 1.0
- Cloudflare AI Gateway vs Reka API
- Cloudflare AI Gateway vs RouteMux
- 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 Writer Palmyra API
- Cloudflare AI Gateway vs xAI API (Grok)
- Cloudflare Workers AI vs Fireworks AI Inference
- Cohere Chat API (Command models) vs Fireworks AI Inference
- DeepInfra vs Fireworks AI Inference
- DeepSeek API vs Fireworks AI Inference
- DigitalOcean Serverless Inference vs Fireworks AI Inference
- Eden AI vs Fireworks AI Inference
- Glimpse vs Fireworks AI Inference
- Fireworks AI Inference vs Gemini 4 Argon
- Fireworks AI Inference vs Gemini 4 Carbon
- Fireworks AI Inference vs Gemini 4 Hydrogen
- Fireworks AI Inference vs Gemini 4 Neon
- Fireworks AI Inference vs Gemini Developer API
- Fireworks AI Inference vs GPT-6.2 Astra
- Fireworks AI Inference vs GroqCloud
- Fireworks AI Inference vs Hugging Face Inference Providers
- Fireworks AI Inference vs Tencent Hy4
- Fireworks AI Inference vs Jais 3
- Fireworks AI Inference vs Meta Model API
- Fireworks AI Inference vs MiniMax API
- Fireworks AI Inference vs Mistral AI API
- Fireworks AI Inference vs Muse Ember
- Fireworks AI Inference vs Muse Spark Open
- Fireworks AI Inference vs Nebius Token Factory
- Fireworks AI Inference vs Nemotron 3.5 Super VL
- Fireworks AI Inference vs Novita AI
- Fireworks AI Inference vs OpenAI API
- Fireworks AI Inference vs OpenRouter
- Fireworks AI Inference vs Orkas API
- Fireworks AI Inference vs Prism Inference
- Fireworks AI Inference vs Baidu Qianfan
- Fireworks AI Inference vs Router.com (Ramp Router)
- Fireworks AI Inference vs Beam 1.0
- Fireworks AI Inference vs Reka API
- Fireworks AI Inference vs RouteMux
- Fireworks AI Inference vs RouterPlus
- Fireworks AI Inference vs SambaCloud
- Fireworks AI Inference vs SiliconFlow
- Fireworks AI Inference vs Simplismart
- Fireworks AI Inference vs StepFun API
- Fireworks AI Inference vs SWE-2 Flash
- Fireworks AI Inference vs Tencent Cloud TokenHub
- Fireworks AI Inference vs Together AI Inference
- Fireworks AI Inference vs Vercel AI Gateway
- Fireworks AI Inference vs Vertex AI (Gemini Enterprise Agent Platform)
- Fireworks AI Inference vs Writer Palmyra API
- Fireworks AI Inference 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-fireworks-inference.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cloudflare-ai-gateway.json·/api/v1/tools/fireworks-inference.json - From a terminal
anchor compare cloudflare-ai-gateway fireworks-inference(the CLI) - Over MCP
compare_tools {"a": "cloudflare-ai-gateway", "b": "fireworks-inference"}at/mcp, no key