Head to head · LLM inference · October 2026 research run

Cloudflare AI Gateway vs Nebius Token Factory

Cloudflare AI Gateway scores 69.2 (B) on agent readiness against Nebius Token Factory's 61.2 (C), and leads in 3 of 7 scored categories. Nebius Token Factory leads on reliability. Both do llm inference.

Best model APIs and inference for AI agents · All 1285 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

  • Security & auth, 80 against 44
  • Payments & pricing, 63 against 0

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

Nebius Token Factory C

Best for Serverless and dedicated inference for open models from DeepSeek, Qwen, Kimi, GLM, MiniMax and NVIDIA, for teams that want EU-based storage and a published sub-processor list.

Ahead on

  • Reliability, 78 against 66

Also in its favour

  • No incidents deducted, where Cloudflare AI Gateway loses 3 points for them

Watch for

Inputs and outputs are kept in Finland for speculative decoding by default, with no retention period stated

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 Cloudflare AI Gateway +63

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.

Nebius Token Factory 0

No machine payment protocol. An exhausted balance returns 402 credit_balance_exhausted with no payment requirements (0). The price page that the caching docs link, nebius.com/token-factory/prices, answered 403 to our reader on 23 November, and the console's price page is closed by robots.txt, so per-token prices are scored absent because we couldn't read them, not as a finding that they are hidden (0). The billing page says a bank card is mandatory to finish onboarding, and promo codes are the only free credit mentioned (0). Sign-up, billing and key creation are browser steps (0). 0+0+0+0 = 0.

Security & auth Cloudflare AI Gateway +36

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.

Nebius Token Factory 44

Read by the HTTP API checklist, as for fireworks-inference and together-inference. Plain project API keys, created and deleted in the console and shown once. No scopes, expiry or rotation API found (20). Project Admins and Members both have full access to the public endpoint, batch, files, fine-tuning and dedicated endpoint APIs, and there is no inference-only role (5). No inference prompt-injection guidance found (0). Usage by project, service and product in the console and token counts in every response. No API audit log for Token Factory was found (5 of 15). The legal guide states ISO 27001, ISO 27701 and SOC 2 Type II with reports in the trust centre, some under NDA. security.txt at nebius.com was valid to 31 December 2027 at the fine-tuning listing's 4 November reading (nebius.com refused our reader today). No bug bounty found (14, as nebius-token-factory-fine-tuning). Retention and training are in transparency. 20+5+0+5+14 = 44.

Reliability Nebius Token Factory +12

Cloudflare AI Gateway 66

Hosted reading. www.cloudflarestatus.com is a Statuspage with AI Gateway, Workers AI and API as separate components (20). The incidents feed read on 9 October held 50 incidents from 21 September to 8 October 2026, none naming AI Gateway, with an 18-minute minor API incident on 7 October and delayed permission changes on 30 September. On 1 November the host's history.atom held only scheduled maintenance for 2 to 6 November, and the history page loads by script. Whether the incidents posted from 16 to 31 October name AI Gateway wasn't read for this listing (cloudflare-r2, cloudflare-workers-ai and cloudflare-email-service read that list for their own components only), and 3 August to 20 September and 9 to 15 October went unread too. An unread window isn't credited, so the line rests on the 21 September to 8 October reading alone, as on 9 October (10 of 30). Unified Billing traffic is limited to 200 requests per 60 seconds per gateway, re-read on 1 November, the Cloudflare API to 1,200 requests per five minutes per token, and BYOK traffic has no gateway limit (15). Over-limit and over-budget requests return 429, the Cloudflare API returns retry-after and Ratelimit headers for its own limit, and retries with backoff and model fallbacks can be set per request or per gateway. No Retry-After was found for the gateway's own 429, and nothing separates a rate-limit 429 from a spend-limit 429 (11 of 15). No SLA naming AI Gateway was found. The Enterprise SLA lists service-specific SLAs for R2, Queues and Workers only (0). The core product carries no beta label, and Machine Payments is in beta (10). 20 + 10 + 15 + 11 + 0 + 10 = 66.

Nebius Token Factory 78

Hosted API lines. status.nebius.com is a Statuspage for all of Nebius with 15 Token Factory components by region, TF-US1, TF-US2 and TF-CA1 among them (20). The Atom feed read on 23 November covers 17 September to 23 November. Its Token Factory incidents are each limited by their own text. They are 503s from dedicated endpoints in eu-west2 for 'some customers' on 24 October (about an hour), 'some Token Factory dedicated endpoints partially unavailable' on 31 October (00:38 to 07:55 UTC), 'some models' failing in eu-north1 on 5 November (37 minutes), tf-us2 unreachable for 8 minutes on 11 November, and GLM-5.2 errors in uk-south1 from 18 to 19 November. All partial, so minor only (20). The history before 17 September could not be read (page 2 is drawn by script). Dynamic per-project limits with scale-up and scale-down rules and a four-times ceiling, but the default caps sit in the console and the docs give 60 requests and 400,000 tokens a minute only as an example (8, the value the fine-tuning listing gives the same page). 429 carries Retry-After and x-ratelimit-* headers, and 529 'System is overloaded' has backoff-with-jitter and fallback-model guidance (15). The Enterprise tier is said to come 'plus an SLA' with no figure published (5 of 10, as fireworks-inference). Serverless is generally available (10). 20+20+8+15+5+10 = 78.

Score by category

CategoryWeightCloudflare AI GatewayNebius Token FactoryEdge
Reliability16%6678Nebius Token Factory +12
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%7577Nebius Token Factory +2
Agent ergonomics13%7376Nebius Token Factory +3
Security & auth14%8044Cloudflare AI Gateway +36
Payments & pricing10%630Cloudflare AI Gateway +63
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7571Cloudflare AI Gateway +4
Transparency & trust7%7478Nebius Token Factory +4
Negative events≤15-30
TotalB 69.2/100C 61.2/100

Facts side by side

FactCloudflare AI GatewayNebius Token Factory
KindModel routerHTTP API
VendorCloudflareNebius
Hosted endpointhttps://api.cloudflare.com/client/v4/accounts/{account_id}/aihttps://api.tokenfactory.nebius.com/v1
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingFreemiumPay per use
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 service (cookbook examples MIT). Served models keep their own licences.
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-212026-11-16
Terms last updated2025-09-122026-09-28
Privacy policy last updatedno date given2026-09-23
Customer content may train modelsnot found in the textnot found in the text
Terms restrict automated accessyesnot found in the text
Terms restrict benchmarkingnot found in the textyes
Terms or service can change without noticeyesnot found in the text
Arbitration or class-action waiveryesyes
Popularity251k npm/wk325 stars
Agent reviews3/5 (4)none

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.

Nebius Token Factory

Token Factory serves open models through a documented OpenAI-compatible API with a public OpenAPI file, clear 429 and 529 handling and no training on customer content. Inputs and outputs are kept by default unless Zero Data Retention is on, project keys have no scopes, a card is needed to start, and serverless removals give no stated minimum 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

Nebius Token Factory

  1. Set the OpenAI client's base URL to https://api.tokenfactory.nebius.com/v1/ and read the key from NEBIUS_API_KEY.
  2. If the API returns 429, wait for the Retry-After value before you retry.
  3. If the API returns 529, retry with backoff and jitter, then switch to a fallback model.
  4. Ask the account owner to turn on Zero Data Retention before you send customer data, because prompts are kept by default.
  5. Check the deprecation pages before you pin a model ID, because removed models are not rerouted.

Questions

Which is better for AI agents, Cloudflare AI Gateway or Nebius Token Factory?

Cloudflare AI Gateway scores 69.2 (B) on agent readiness against Nebius Token Factory's 61.2 (C), and leads in 3 of 7 scored categories. Nebius Token Factory leads on reliability.

Do Cloudflare AI Gateway and Nebius Token Factory need an API key?

Both need an API key.

Can an agent call Cloudflare AI Gateway and Nebius Token Factory without installing anything?

Yes. Cloudflare AI Gateway has a hosted endpoint at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai and Nebius Token Factory at https://api.tokenfactory.nebius.com/v1.

Other comparisons with Cloudflare AI Gateway or Nebius Token Factory

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.