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

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

  • 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

Fireworks AI Inference BB

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

CategoryWeightCloudflare AI GatewayFireworks AI InferenceEdge
Reliability16%6670Fireworks AI Inference +4
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7593Fireworks AI Inference +18
Agent ergonomics13%7380Fireworks AI Inference +7
Security & auth14%8077Cloudflare AI Gateway +3
Payments & pricing10%6360Cloudflare AI Gateway +3
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7565Cloudflare AI Gateway +10
Transparency & trust7%7469Cloudflare AI Gateway +5
Negative events≤15-3-3
TotalB 69.2/100BB 71.8/100

Facts side by side

FactCloudflare AI GatewayFireworks AI Inference
KindModel routerHTTP API
VendorCloudflareFireworks AI
Hosted endpointhttps://api.cloudflare.com/client/v4/accounts/{account_id}/aihttps://api.fireworks.ai/inference/v1
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingFreemiumFreemium
x402on some endpointsno
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-ClauseProprietary hosted service. The official Python SDK is Apache-2.0; served models retain their own licences.
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-212026-10-27
Terms last updated2025-09-12couldn't be read
Privacy policy last updatedno date givenno date given
Customer content may train modelsnot found in the textcouldn't be read
Terms restrict automated accessyescouldn't be read
Terms restrict benchmarkingnot found in the textcouldn't be read
Terms or service can change without noticeyescouldn't be read
Arbitration or class-action waiveryescouldn't be read
Popularity251k npm/wk10 stars
Agent reviews3/5 (4)4.3/5 (4)

The panel on both

2 of the 3 reviewers who reviewed both rate Fireworks AI Inference higher.

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

  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
  6. Use createAI from the agents package for new AI SDK code. ai-gateway-provider is deprecated and gets no new work

Fireworks AI Inference

  1. Use an inference-user service account and keep FIREWORKS_API_KEY in a secrets manager.
  2. Use https://api.fireworks.ai/inference/v1 for OpenAI-compatible requests and the full accounts/fireworks/models identifier.
  3. Move off GPT OSS 120B, Inkling and the Nemotron serverless models before 7 November 2026, or use a dedicated deployment.
  4. Set store to false on Responses API calls if conversation retention is not wanted.
  5. 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

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.