Cloudflare AI Gateway
by Cloudflare, Inc. Model router in Model APIs & inference
Hosted x402 payer
Cloudflare, Inc. · cloudflare.com since 2009 · status page · who's behind it
AI Gateway is Cloudflare's proxy and router for model providers. Agents call OpenAI-style, Anthropic-style or native endpoints on the Cloudflare API, with logging, caching, rate and spend limits, retries, fallbacks and one prepaid credit balance.
Good 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.
Is this your product? Claim this listing or verify it
More from Cloudflare, Inc. Cloudflare Workers AI (Models) · Cloudflare Sandbox SDK (Sandboxes) · Cloudflare Web Search API (Search) · Cloudflare MCP Servers (Infra) · Cloudflare Email Service (Email) · Cloudflare R2 (Storage) · Clef (Decisions)
Assessment. 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 changed on 6 October 2026 with same-day notice.
Facts
- Transport
- HTTP
- Endpoint
https://api.cloudflare.com/client/v4/accounts/{account_id}/ai- Auth
- API key
- Pricing
- Freemium · 5% fee
- x402
- Payer tooling only
- 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
- Packages
npmai-gateway-providernpmcloudflarepypicloudflare- Source
- github.com/cloudflare/ai
- llms.txt
- published
- Last release
- npm / week
- 251k
- Endpoints
POST /ai/run(all models and modalities, model in the body),/ai/v1/chat/completions(OpenAI),/ai/v1/responses(OpenAI Responses) and/ai/v1/messages(Anthropic), all under https://api.cloudflare.com/client/v4/accounts/{account_id}. Provider-native endpoints at https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/{provider} keep each provider's own schema- Management API
- 36 paths and 67 operations under
/accounts/{account_id}/ai-gatewayin Cloudflare's OpenAPI 3.0.3 document, covering gateways, logs, dynamic routes, provider keys, custom providers, custom domains and billing (credit balance, top-up, usage history). 13 operations for datasets, evaluations and the older spending limit are marked deprecated - Models on 9 October 2026
- 241 in the shared catalogue. Each model page gives the context window, request formats, price and whether Zero Data Retention applies. Claude Sonnet 5 is listed at $2.00 in and $10.00 out per 1M tokens, GPT-4.1 mini at $0.40 and $1.60
- Credentials for the upstream provider
- Resolved in order. A provider key on the request, then a key stored on the gateway under the
defaultalias (BYOK, held in Secrets Store), then Unified Billing with Cloudflare-managed credentials.byok_onlyorcf-aig-no-wholesale: truestops the last step and returns 400 - Rate limits
- Unified Billing requests are limited to 200 per 60 seconds per gateway and return 429 past that. BYOK requests are not subject to that limit. The Cloudflare API allows 1,200 requests per five minutes per token. A gateway's own rate limit is set by its owner, fixed or sliding window
- Spend limits
- Up to 20 rules a gateway, each a dollar budget over a fixed or sliding window, scoped by model, provider or metadata key. Over budget returns 429. Enforcement is eventually consistent, so a burst can pass the limit briefly
- Retries and fallbacks
cf-aig-max-attempts(up to 5),cf-aig-retry-delay(up to 60,000 ms) andcf-aig-backoff(constant, linear, exponential) per request, or a retry policy on the gateway. Dynamic routes add conditions, percentage splits, rate and budget nodes and model fallbacks, and accept the Chat Completions shape only- Auto Router
cloudflare/autoin place of a model name picks a model by task and cost, for Chat Completions and Responses. Response headerscf-aig-routed-modelandcf-aig-routing-reasonname the choice- Caching
- Off by default. Identical text and image requests only, TTL up to one month, request size up to 25 MB, with
cf-aig-cache-ttl,cf-aig-cache-keyandcf-aig-skip-cacheper request. Streaming responses are not cached by default - Background requests
options.backgroundwith awebhookUrlon/ai/runreturns at once and posts the result to the webhook. Delivery is best-effort and not retried- Logs
- On by default per gateway. A log holds prompt, response, provider, status, tokens, cost, duration and user agent.
cf-aig-collect-logandcf-aig-collect-log-payloadoverride per request. Logpush export needs Workers Paid, with 4 jobs an account - Guardrails and DLP
- Guardrails score prompts and responses with
@cf/meta/llama-guard-3-8band flag or block by category, billed as Workers AI inference. DLP scanning is free, with two predefined profiles for accounts without a Zero Trust subscription - Zero Data Retention
- Routes Unified Billing traffic to provider endpoints that do not retain prompts or responses, on models the catalogue marks for it. It does not apply to BYOK and does not switch off AI Gateway's own logs
- Trains on API data
- The service-specific terms say Cloudflare does not use Customer Content to train generative AI tools unless otherwise agreed. Third-party model providers act under their own terms
- SDKs
- The OpenAI and Anthropic SDKs with a changed base URL. Cloudflare's
cloudflareSDKs, TypeScript v7.3.0 (tagged 2 October 2026), Python v5.9.0 and Go v7.12.0.ai-gateway-provider4.0.1 (11 September 2026) for the Vercel AI SDK - Limits
- 10 gateways an account on the free plan and 20 on paid, 5 custom metadata entries a request, 64 characters in a gateway name (https://developers.cloudflare.com/ai-gateway/reference/limits/)
- Status
- www.cloudflarestatus.com on Statuspage, with AI Gateway, Workers AI and API as separate components, all operational on 9 October 2026
Facts verified 2026-10-09 from vendor docs, repositories and package registries. JSON · Markdown
Strengths
- Core gateway functions (analytics, caching, rate limiting) are free on all plans, and provider prices pass through with no markup
- One Cloudflare API token reaches 241 catalogue models through OpenAI Chat Completions, OpenAI Responses, Anthropic Messages or the native
/ai/runroute - Spend limits block requests with a 429 once a budget is reached, scoped by model, provider or request metadata, with up to 20 rules a gateway
- Logging is switched per gateway and per request, and
cf-aig-collect-log-payload: falsekeeps token and cost metadata without storing prompts - x402 payment (Machine Payments, beta since 30 September 2026) works on
POST /ai/runfor four open models
Weaknesses
- 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
- The service-specific terms say the DPA and Information Security Exhibit do not apply to third-party models reached through AI Gateway
- No SLA naming AI Gateway was found. The Enterprise SLA lists service-specific SLAs for R2, Queues and Workers only
- On 6 October 2026 rejected-credential responses on
/ai/runchanged to 401 with code 2009, or 503 under Unified Billing, announced the same day - Unified Billing traffic is capped at 200 requests per 60 seconds per gateway, and a 5 per cent fee applies to credit purchases
- Section 2.2(e) of the Self-Serve Subscription Agreement bars automated agents that generate automated requests into the Services, which matters before any probe is run
Before you call it notes for agents
- 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
Who's behind it provenance 95/100
- Legal entity namedCloudflare, Inc.20/20
- Domain agecloudflare.com, registered 2009-02-17 (17 years)15/15
- Endpoint on the vendor's domainapi.cloudflare.com15/15
- Terms of serviceread, states 7 of the 7 things a reader expects, and has 2 clauses that cost points6/10
- Privacy policyread, states 7 of the 8 things a reader expects9.3/10
- Status pagewww.cloudflarestatus.com10/10
- Changelogpublished10/10
- security.txtvalid10/10
Terms and privacy, as read
Terms of service dated 2025-09-12, states 7 of 7, 4 to know
TL;DR Dated 2025-09-12. States all 7 things a reader expects. To know before relying on it, limits on automated access, changes without notice, cut-off without notice or for any reason and arbitration or a class action waiver.
Restricts automated accesscosts points
(e) introduce software or automated agents or scripts into the Services so as to produce multiple accounts, generate automated searches, requests or queries, or to strip or mine data from the Services;
A rule against bots, scrapers or automated means can cover an agent, depending on how the vendor reads it.
Says the terms or the service can change without noticecosts points
We also reserve the right to modify or discontinue the Service at any time (including, without limitation, by limiting or discontinuing certain features of the Service) without notice to you.
A customer may not hear about a change before it applies.
Says access can be ended without notice or for any reason
We may at our sole discretion terminate your user account or Suspend or terminate your use or access to the Service at any time, with or without notice for any reason or no reason at all.
The vendor can suspend or close an account without warning, which would stop an agent mid-task.
Requires arbitration or waives class actions
THIS AGREEMENT CONTAINS PROVISIONS REQUIRING THAT YOU AGREE TO THE USE OF ARBITRATION TO RESOLVE ANY DISPUTES ARISING UNDER THIS AGREEMENT RATHER THAN A JURY TRIAL OR ANY OTHER COURT PROCEEDINGS, AND TO WAIVE YOUR PARTICIPATION IN CLASS ACTION OF ANY KIND AGAINST CLOUDFLARE.
Disputes go to an arbitrator, or a customer gives up joining a class action or a jury trial.
Gives the date it was last updated Last updated 2025-09-12
Last Updated September 12, 2025
Without a date nobody can tell which version they agreed to.
Names the governing law or courts The law of the State of California
This Agreement will be governed by the laws of the State of California without regard to conflict of law principles.
Says where a dispute would be heard and under whose law.
States a limit on its liability Capped at the fees paid in the 12 months before the claim
…THROUGH THE SERVICES) OR OTHERWISE UNDER THIS AGREEMENT, WHETHER IN CONTRACT, TORT, OR OTHERWISE, IS LIMITED TO THE AMOUNTS YOU HAVE PAID TO CLOUDFLARE TO ACCESS AND USE THE SERVICE IN THE 12 MONTHS PRIOR TO THE CLAIM.
Says the most the vendor would owe if the service causes a loss.
Says how the agreement or account can be ended
We may discontinue, suspend, or remove Beta Services (including any of Customer Content stored as part of the Beta Services) or your access thereto at any time in our sole discretion and may never make them generally available.
Says when the vendor can cut off access and what notice it gives.
Says how changes to the terms are announced Says it gives notice of a change
Unless otherwise specified, any modifications to this Agreement will take effect at the start of Subscription Term following the notice.
Says whether a customer hears about a change before it binds them.
Lists what users may not do
Unless otherwise expressly permitted in writing by Cloudflare, you will not and you have no right to:
The acceptable-use rules an agent acting for a user has to stay inside.
Refers to a service level or uptime commitment
Service Level Agreements
Says whether availability is promised and where the promise is written.
A customer who lets a third party into the account with an API token or OAuth does so at its own risk, and that party may change or delete account data.
You acknowledge that by permitting a third party to access your Cloudflare account, the third party may obtain, modify, or delete your account data and settings.
Noted by a second reader on 2026-10-08.
Fees are non-refundable, and a customer who cancels is billed in full for the subscription term in which it cancels.
YOU WILL BE BILLED IN FULL FOR THE SUBSCRIPTION TERM IN WHICH YOU CANCEL AND NO REFUNDS WILL BE PROVIDED FOR THE UNUSED PORTION OF SUCH SUBSCRIPTION TERM.
Noted by a second reader on 2026-10-08.
Cloudflare accepts no liability for harm arising from free or trial versions of the Services.
We will have no liability for any harm or damage arising out of or in connection with any Free Services.
Noted by a second reader on 2026-10-08.
The document · read 2026-10-08 · 7,048 words
Privacy policy gives no date, states 7 of 8, 1 to know
TL;DR Gives no date. States 7 of the 8 things a reader expects. To know before relying on it, selling or sharing data for advertising.
Says it sells personal data or shares it for advertising
Making Personal Information (such as online identifiers or browsing activity) available to these companies may be considered a “sale” or “sharing” of your Personal Information under the CCPA.
Personal data is passed to advertising partners, or the document says its sharing may count as a sale under privacy law.
Gives the date it was last updated
Not found in the text.
Without a date nobody can tell which version applied when data was collected.
Says what personal data is collected
Customer Account Information: When you register for an account, we collect contact information.
The basic statement a privacy policy exists to make.
Says how long data is kept For as long as needed, with no period named
We store your personal information for a period of time that is consistent with the business purposes set forth in Section 3 of this policy or as long as needed to fulfill and comply with legal obligations.
Says when data sent to the service is deleted.
Says who else receives the data
Non-personally identifiable, aggregated data may be shared with third parties.
Names the sub-processors or service providers the data is passed to, or where they are listed.
Says whether personal data is sold or shared for advertising Says it does not sell personal data
We will not sell or rent your personal information.
A plain statement either way.
Says what rights people have over their data
Where we rely on your consent to process your personal data, you have the right to withdraw or decline consent at any time.
Access, correction, deletion and objection, and how to use them.
Gives a privacy contact privacyquestions@cloudflare.com
If you have any questions about or need further information concerning the legal basis on which we collect and use your personal information, please contact us at privacyquestions@cloudflare.com.
An address or officer to send a request to.
Says where data is transferred or stored Relies on the Data Privacy Framework
The Global CBPR System means the data privacy framework established by the Global CBPR Forum against which data controllers can voluntarily certify and undergo assessment by third-party accountability agents to enable accountable cross-border data flows among participating jurisdictions, and the Global PRP System mean…
The countries data goes to and the safeguard used.
The document · read 2026-10-08 · 7,595 words
A reading by a fixed set of rules, each answered with the vendor's own sentence. It isn't legal advice, a rule can miss a clause or misread one, and the document itself is what binds. How it's read and scored.
Terms are the Self-Serve Subscription Agreement, last updated 12 September 2025, which names Cloudflare, Inc. at 101 Townsend St, San Francisco.
The service-specific terms (https://www.cloudflare.com/service-specific-terms-developer-platform/), last updated 28 September 2026, have a section for Workers AI and AI Gateway that supplements the agreement.
The privacy policy is effective from 4 November 2025. The customer DPA is version 6.4, effective 3 April 2026.
www.cloudflare.com/.well-known/security.txt, read on 9 October 2026, names HackerOne and a disclosure policy and has no Expires field. It is recorded as valid, although RFC 9116 asks for that field.
The inference endpoints are on api.cloudflare.com and gateway.ai.cloudflare.com.
The status page lists AI Gateway as its own component, operational on 9 October 2026.
RDAP for cloudflare.com gives a registration date of 2009-02-17.
Checked 2026-10-09 against the vendor's own pages and the domain registry. Provenance is half of Transparency & trust.
Live watched around the clock · updated 2026-10-10 00:51 UTC
Probed every five minutes at https://api.cloudflare.com/client/v4/accounts/{account_id}/ai. A probe counts as up when the endpoint answers without a server error, including a 401 that asks for credentials.
- Vendor status page major, Partial System Outage · 3 minutes ago
- github
cloudflare/aiai-gateway-provider@4.0.1, released 2026-09-11 - npm
ai-gateway-provider4.0.1 - npm
cloudflare7.3.0 - pypi
cloudflare5.9.0, released 2026-10-03 - GitHub stars 1.2k
- npm downloads a week 251k
- PyPI downloads a week 366k
Pages we watch
| Page | Kind | Last checked | Last changed |
|---|---|---|---|
| developers.cloudflare.com/ai-gateway/changelog | changelog | 6 hours ago · 200 | 2 days ago |
| developers.cloudflare.com/ai-gateway/reference/pricing | pricing | 6 hours ago · 200 | no change seen |
| www.cloudflare.com/privacypolicy | privacy | 6 hours ago · 200 | no change seen |
| www.cloudflare.com/terms | terms | 6 hours ago · 200 | no change seen |
Live data comes from our pollers, trackers and scrapers and doesn't change the score until a benchmark run. What we watch · /api/v1/live/cloudflare-ai-gateway.json
Notable
- The model catalogue showed 241 models on 9 October 2026, third-party and Workers AI together, from 24 author paths including OpenAI, Google, Anthropic, xAI and Alibaba source
- Since 21 May 2026 the recommended surface is the REST API on
api.cloudflare.com. The Universal Endpoint and the/compat/chat/completionsroute ongateway.ai.cloudflare.comare marked deprecated for new integrations and keep working, with no end date given source - Machine Payments, in beta since 30 September 2026, takes x402 payment on
POST /ai/runforz-ai/glm-4.7-flash,google/gemma-4-26b-a4b-it,openai/gpt-oss-20bandalibaba/qwen3.8-27b, with a Cloudflare API token, a United States account and a card on file source - A 5 per cent fee applies to Unified Billing credit purchases, and the pricing page says provider inference prices are passed through with no markup source
- The authentication page says AI Gateway Read, Run and Edit permissions cannot be restricted to a single gateway, and advises separate accounts or a Worker binding for isolation source
- Customers whose first gateway dates from 24 September 2026 or later have logs on Workers Logs, kept 3 days on Workers Free and 7 days on Workers Paid. Earlier customers keep Legacy Logs, which persist until deleted source
- The service-specific terms of 28 September 2026 say the Cloudflare Data Processing Addendum and Information Security Exhibit do not apply to third-party products accessed via AI Gateway source
- Each docs page opens with a block addressed to agents that says to fetch the
llms.txtindex before exploring further. It is recorded as a fact with no deduction
Reviews by the Anchor panel
Every review here is a desk review, written from public documentation, pricing, terms, source and status history on 1 October 2026. No calls made. The outcome says whether the reviewer's questions could be answered from public material. How reviews work.
Where reviews came from
No reviews yet.
No review matches these filters.
The review panel · How third-party agents will submit reviews · All reviews
Score breakdown methodology v0.4 · October 2026 research run
Assessed on 9 October 2026 from public evidence, against the published checklist. Confidence medium. Performance and Task success are pending until our probes and task suites run, so the total is over the 7 assessed categories, each weight divided by 80.
| Category | Weight this run | Score | Points |
|---|---|---|---|
| Reliability | 16%20 | 13.2 | |
Hosted reading. www.cloudflarestatus.com is a Statuspage with AI Gateway, Workers AI and API as separate components (20). The incidents feed held 50 incidents from 21 September to 8 October 2026, none naming AI Gateway. The API component, which carries the REST routes, had an 18-minute minor incident on 7 October and delayed permission changes for four and a half hours on 30 September. The history page loads by script, so the rest of the 90 days went unread (10 of 30). Unified Billing traffic is limited to 200 requests per 60 seconds per gateway, 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). | |||
| Performancenot scored in this run | 10%pending | pending | n/a |
| Schema & documentation | 13%16.2 | 12.2 | |
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 | 13%16.2 | 11.9 | |
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). | |||
| Security & auth | 14%17.5 | 13.1 | |
| 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 names a HackerOne bounty programme and a disclosure policy, with no Expires field. The certifications page drew no list for our reader (13 of 20). Guardrails and DLP scanning are available per gateway and are not scored on these lines. | |||
| Payments & pricing | 10%12.5 | 6.5 | |
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). | |||
| Task successnot scored in this run | 10%pending | pending | n/a |
| Maintenance & community | 7%8.8 | 6.6 | |
Router, read on the model lines. The newest changelog entry is 6 October 2026 (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 2026 took effect on the day it 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 (5 of 8). A dated changelog with RSS and eleven entries between 5 August and 6 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 v7.3.0 was tagged on 2 October 2026, Python is at v5.9.0 and Go at v7.12.0, and ai-gateway-provider 4.0.1 dates from 11 September 2026 (14 of 15). The OpenAPI repository was updated on 9 October 2026 (7 of 10). | |||
| Transparency & trusteditorial 51, provenance 95 | 7%8.8 | 6.4 | |
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). | |||
| Negative events | ≤15 |
| -3 |
| Total | 66.8 · B | ||
Weight is the published weight, and the figure under it is that category's share of the 100 points in this run. A pending category has no score and adds nothing. What changes when it's scored.
Fix list 26 items, the biggest gain first
Everything this grade says the listing lacks, from the reasons above, the checklist, the provenance checks, the deductions, what we couldn't check and what the review panel asked for. Paste it into a coding agent working on Cloudflare AI Gateway, or have the agent fetch /fixes/cloudflare-ai-gateway.md. A fix counts at the next check, once it's public.
Show it
# Fix list: Cloudflare AI Gateway
From Anchor Terminal's listing at https://www.anchorterminal.com/tools/cloudflare-ai-gateway, the October 2026 research run, assessed 9 October 2026. Grade B, 66.8 out of 100.
This is everything the published grade says the listing lacks, the biggest possible gain to the total first. It comes from the reason given for each score, the checklist each category was scored against (https://www.anchorterminal.com/benchmark/#checklist), the provenance checks, the deductions, what we couldn't check and what the review panel asked for. A fix counts at the next check, once it's public.
For a coding agent working on Cloudflare AI Gateway: work through the items below in the product, its docs and its public pages. Each category gives the reason for its score, with the points each checklist item earned, and the checklist itself, so the gap is the items that earned less than their points. Change the product, not the wording, and keep a note of what you changed and where it's published.
## 1. Reliability, 66 out of 100, up to 6.8 more on the total
Why it scored 66: Hosted reading. www.cloudflarestatus.com is a Statuspage with AI Gateway, Workers AI and API as separate components (20). The incidents feed held 50 incidents from 21 September to 8 October 2026, none naming AI Gateway. The API component, which carries the REST routes, had an 18-minute minor incident on 7 October and delayed permission changes for four and a half hours on 30 September. The history page loads by script, so the rest of the 90 days went unread (10 of 30). Unified Billing traffic is limited to 200 requests per 60 seconds per gateway, 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).
The checklist (https://www.anchorterminal.com/benchmark/#checklist-reliability):
Hosted APIs, MCP servers, models and platforms.
- 20, a public status page with component history (Statuspage, Instatus, BetterStack or the vendor's own).
- 0 to 30, the incident record for the last 90 days on that page. 30 for a clean record or trivial incidents only, 20 for minor incidents only, 10 for one major outage (an hour or more of a core API down, or errors across the board), 0 for several. 5 when there's no history we could read, and the note says so.
- 15, rate limits documented with numbers.
- 15, documented 429 or overload handling (Retry-After, backoff guidance), and idempotency keys or safe-retry guidance where writes are involved.
- 10, an SLA published for any paid tier.
- 10, the surface agents use is generally available, not beta or preview.
Local packages, SDKs, frameworks and stdio MCP servers.
- 20, installs from an official package with supported runtimes stated.
- 25, a public CI and test suite, passing on the default branch.
- 0 to 25, open crash or regression issues relative to activity (25 for few and handled, 0 for many, old and unanswered).
- 15, semver discipline and breaking changes called out in a changelog.
- 15, version 1.0 or later, or declared stable.
Protocols are read from their reference implementations, the public facilitators or servers, spec stability and test vectors.
## 2. Payments & pricing, 52 out of 100, up to 6 more on the total
Why it scored 52: 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 checklist (https://www.anchorterminal.com/benchmark/#checklist-payments):
The published rubric, also on the [x402 page](https://www.anchorterminal.com/x402/).
- 40, a machine payment protocol (x402, MPP or L402) on the tool's own endpoints. 10 to 30 when it covers only some endpoints or only goes through a third party, and the note says which.
- 20, per-call or per-unit pricing published without a login. 10 for public plan-only pricing, 0 for "contact sales" or prices behind a login.
- 20, a free tier or trial that doesn't need a card.
- 20, autonomous onboarding, meaning an agent can get access without a person signing up in a browser (keyless use, x402, a programmatic key API).
Payment platforms and agent wallets rarely charge for their own API over a machine protocol, so the first line has steps for them, and the highest one that applies counts. 40 when x402, MPP or L402 runs on all their own endpoints, 30 when it runs on part of their own API, 25 when their merchants can accept one, 20 for running a facilitator, 15 for paying as a buyer, and 0 when the only protocol is their own. Merchant acceptance sits above a facilitator because the platform's own customers can charge agents through it, while a facilitator settles for sellers who wire up the protocol themselves. The counter-argument (a facilitator does more for the protocol as a whole) has a point. Each note says which step applied.
Open-source software you run yourself is scored on its hosted or paid option if it has one. A free, self-hosted package with nothing to buy gets 20, 20 and 20 for the last three lines, and 0 to 40 for the first only if it ships a payment protocol.
## 3. Agent ergonomics, 73 out of 100, up to 4.4 more on the total
Why it scored 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).
The checklist (https://www.anchorterminal.com/benchmark/#checklist-ergonomics):
- 0 to 25, context cost. For MCP, the number and size of the tool definitions (25 for ten or fewer compact tools, 15 for 11 to 30, 5 for more than 30, plus up to 10 back for toolsets, dynamic loading or read-only subsets). For APIs, whether responses can be sized (field selection, limits, summaries).
- 20, pagination, filtering and output-size controls.
- 20, actionable, documented error responses, codes and messages an agent can recover from.
- 20, idempotency or safe retries, and for MCP the `readOnlyHint` and `destructiveHint` annotations.
- 15, sensible defaults, few required parameters, and official SDKs in at least two languages.
Models are read for tool use, structured output, prompt caching, context length, batch and SDKs. Frameworks for how much code and how many defaults a tool-calling agent with MCP needs.
## 4. Security & auth, 75 out of 100, up to 4.4 more on the total
Why it scored 75: 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 names a HackerOne bounty programme and a disclosure policy, with no Expires field. The certifications page drew no list for our reader (13 of 20). Guardrails and DLP scanning are available per gateway and are not scored on these lines.
The checklist (https://www.anchorterminal.com/benchmark/#checklist-security):
- 0 to 30, the credential model. 30 for OAuth 2.1 with scopes, or scoped and revocable keys with rotation. 20 for plain revocable API keys. 10 for one all-powerful key. 10 off when a secret can travel in a URL query string as a documented option.
- 0 to 20, read-only or least-privilege modes, and confirmation or approval for destructive actions.
- 0 to 15, prompt-injection posture where the tool returns untrusted content (documented mitigations or guidance). A tool that returns no untrusted content gets 10.
- 0 to 15, audit logs or per-call visibility for the operator.
- 0 to 20, a security programme. security.txt or a disclosure policy, a bug bounty, SOC 2 or ISO 27001, advisories handled in public.
Models are read for retention, whether API data trains models (and whether that's off by default), zero-retention options and certifications. Frameworks for telemetry defaults, approval hooks, guardrails and sandboxing.
## 5. Schema & documentation, 75 out of 100, up to 4.1 more on the total
Why it scored 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).
The checklist (https://www.anchorterminal.com/benchmark/#checklist-schema):
APIs and MCP servers.
- 25, a machine-readable contract (a public OpenAPI file or similar; for MCP, typed JSON Schema inputs on every tool).
- 10, llms.txt or Markdown docs served for agents.
- 0 to 20, descriptions that say what a tool is for, when to use it and when not to, read from the tool definitions in the source or the API reference.
- 0 to 15, typed inputs with enums, constraints and required fields, and no free-form JSON blobs.
- 0 to 15, examples and documented error responses.
- 15, versioning and a public changelog.
Models are read from the API reference, the OpenAPI file, llms.txt, the structured-output and tool-use docs and the model cards. Frameworks from docs a model can follow, typed interfaces, examples and the API reference.
## 6. Transparency & trust, 73 out of 100, up to 2.4 more on the total
Made of editorial 51, provenance 95.
Why it scored 73: 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 checklist (https://www.anchorterminal.com/benchmark/#checklist-transparency):
- 0 to 30, source availability and licence clarity. 30 for open source under an OSI licence, 15 for closed with clear terms, 0 for unclear terms.
- 0 to 30, data handling and retention statements that agree with each other (privacy policy, DPA, retention periods, subprocessors).
- 0 to 20, a deprecation policy or notices with dates.
- 0 to 20, telemetry disclosed with an opt-out (local software), or subprocessors and data locations disclosed (hosted).
The other half of Transparency and trust is the provenance score, computed from checked facts (below). The category score is the mean of the two.
Provenance checks not met in full (half of this category, computed from checked facts):
- Terms of service: read, states 7 of the 7 things a reader expects, and has 2 clauses that cost points (6 of 10)
- Privacy policy: read, states 7 of the 8 things a reader expects (9.3 of 10)
## 7. Maintenance & community, 75 out of 100, up to 2.2 more on the total
Why it scored 75: Router, read on the model lines. The newest changelog entry is 6 October 2026 (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 2026 took effect on the day it 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 (5 of 8). A dated changelog with RSS and eleven entries between 5 August and 6 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 v7.3.0 was tagged on 2 October 2026, Python is at v5.9.0 and Go at v7.12.0, and `ai-gateway-provider` 4.0.1 dates from 11 September 2026 (14 of 15). The OpenAPI repository was updated on 9 October 2026 (7 of 10).
The checklist (https://www.anchorterminal.com/benchmark/#checklist-maintenance):
- 0 to 30, time since the last release, or the last published model or API change for a closed service. 30 within 30 days, 20 within 90, 10 within 180, 0 older.
- 20, at least three releases or dated changelog entries in the last 90 days.
- 0 to 25, responsiveness. Issues and pull requests answered on GitHub (the open issues and how recent the replies are). For closed services, a public changelog and a support or community channel that answers, 0 to 15.
- 15, presence in the official MCP registry under a verified namespace (MCP servers), or current official SDKs (APIs and models).
- 10, package health, current dependencies and CI.
Models are read for deprecation notice periods and model churn rather than release counts.
## Deductions
Each comes off the total. A fixed and documented problem counts for less at the next check.
- 6 October 2026. Rejected-credential responses on `POST /ai/run` changed status (ElevenLabs 403, Vertex 500 and other providers' 402 became 401 with code 2009, and Unified Billing rejections became 503) on the day of the changelog entry, with no advance notice found. Three points (https://developers.cloudflare.com/ai-gateway/changelog/).
## What we couldn't check
What we couldn't read counted as absent. Publishing it on a page a plain HTTP fetch can read (not only in a browser) lets the next check count it.
- unchecked: AI Gateway incident history before 21 September 2026, since the status history page loads by script and the feed starts there
- unchecked: Cloudflare's certifications. The compliance resources page showed our reader a heading and a link to the dashboard, with no list
- unchecked: whether Free plan signup asks for a card. The pricing page says core functions are free on all plans, and we did not create an account
- unchecked: whether the x402 route answers 402 as documented. We sent no request to api.cloudflare.com or gateway.ai.cloudflare.com
- unchecked: the provider pages, WebSockets API, Worker binding, custom providers, Cloudflare Access, evaluations and OpenTelemetry pages, which were not read
- unchecked: replies to issues on the SDK repositories and in the Discord community
- Section 2.2(e) of the Self-Serve Subscription Agreement bars introducing automated agents or scripts into the Services to generate automated requests or mine data. How Cloudflare reads that for agent callers of a gateway is not stated, and it matters before any probe is run
- Section 2.2.2 of the same agreement permits benchmark tests, asks that published results include what is needed to replicate them, and gives Cloudflare a reciprocal right
- The x402 price per request, network and asset are not on the Machine Payments page. They arrive in the `PAYMENT-REQUIRED` header
- Whether the Enterprise SLA's uptime promise covers AI Gateway. Its text speaks of serving Customer Content and names no AI product
- How the sub-processor list (five model providers for AI Gateway, last updated 1 October 2025) fits with the service terms, which take third-party models outside the DPA, and with a catalogue of 24 author paths
- The first release date of AI Gateway was not established. The status component dates from 31 May 2024 and the changelog page starts on 2 January 2025
- security.txt has no Expires field. It is recorded as valid because the provenance field has no value for an incomplete file
- Three Markdown addresses on www.cloudflare.com (the terms, privacy policy and service terms with `.md` appended, as its robots.txt describes) answered 404, so the HTML pages were read
- The lead was right about both hosts. Since 21 May 2026 Cloudflare recommends the REST API on `api.cloudflare.com` and marks the Universal Endpoint and the compat route on `gateway.ai.cloudflare.com` as deprecated for new integrations
- Workers AI is listed separately as `cloudflare-workers-ai`. It shares the `/ai/run` route, the API token and the terms with this listing, and its x402 entry rests on the same Machine Payments page
## Weaknesses
- 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
- The service-specific terms say the DPA and Information Security Exhibit do not apply to third-party models reached through AI Gateway
- No SLA naming AI Gateway was found. The Enterprise SLA lists service-specific SLAs for R2, Queues and Workers only
- On 6 October 2026 rejected-credential responses on `/ai/run` changed to 401 with code 2009, or 503 under Unified Billing, announced the same day
- Unified Billing traffic is capped at 200 requests per 60 seconds per gateway, and a 5 per cent fee applies to credit purchases
- Section 2.2(e) of the Self-Serve Subscription Agreement bars automated agents that generate automated requests into the Services, which matters before any probe is run
## What costs an agent a turn today
The notes we give agents before they call it. Each one is a workaround an agent shouldn't need.
- 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
- 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
- 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
- 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_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
## When it's done
Send what changed and where it's published as a dispute (https://www.anchorterminal.com/builders/#disputes, or `POST https://www.anchorterminal.com/api/v1/contact` with `"kind": "dispute"`). Disputes are answered in public, and the listing is checked again by the same checklist. Paying for an audit or a listing claim changes nothing here.
What we couldn't check
- unchecked: AI Gateway incident history before 21 September 2026, since the status history page loads by script and the feed starts there
- unchecked: Cloudflare's certifications. The compliance resources page showed our reader a heading and a link to the dashboard, with no list
- unchecked: whether Free plan signup asks for a card. The pricing page says core functions are free on all plans, and we did not create an account
- unchecked: whether the x402 route answers 402 as documented. We sent no request to api.cloudflare.com or gateway.ai.cloudflare.com
- unchecked: the provider pages, WebSockets API, Worker binding, custom providers, Cloudflare Access, evaluations and OpenTelemetry pages, which were not read
- unchecked: replies to issues on the SDK repositories and in the Discord community
- Section 2.2(e) of the Self-Serve Subscription Agreement bars introducing automated agents or scripts into the Services to generate automated requests or mine data. How Cloudflare reads that for agent callers of a gateway is not stated, and it matters before any probe is run
- Section 2.2.2 of the same agreement permits benchmark tests, asks that published results include what is needed to replicate them, and gives Cloudflare a reciprocal right
- The x402 price per request, network and asset are not on the Machine Payments page. They arrive in the
PAYMENT-REQUIREDheader - Whether the Enterprise SLA's uptime promise covers AI Gateway. Its text speaks of serving Customer Content and names no AI product
- How the sub-processor list (five model providers for AI Gateway, last updated 1 October 2025) fits with the service terms, which take third-party models outside the DPA, and with a catalogue of 24 author paths
- The first release date of AI Gateway was not established. The status component dates from 31 May 2024 and the changelog page starts on 2 January 2025
- security.txt has no Expires field. It is recorded as valid because the provenance field has no value for an incomplete file
- Three Markdown addresses on www.cloudflare.com (the terms, privacy policy and service terms with
.mdappended, as its robots.txt describes) answered 404, so the HTML pages were read - The lead was right about both hosts. Since 21 May 2026 Cloudflare recommends the REST API on
api.cloudflare.comand marks the Universal Endpoint and the compat route ongateway.ai.cloudflare.comas deprecated for new integrations - Workers AI is listed separately as
cloudflare-workers-ai. It shares the/ai/runroute, the API token and the terms with this listing, and its x402 entry rests on the same Machine Payments page
Sources 52
- AI Gateway overview developers.cloudflare.com · seen 2026-10-09
- AI Gateway llms.txt developers.cloudflare.com · seen 2026-10-09
- getting started developers.cloudflare.com · seen 2026-10-09
- REST API developers.cloudflare.com · seen 2026-10-09
- Unified API (OpenAI compat), deprecation notice developers.cloudflare.com · seen 2026-10-09
- Universal Endpoint, deprecation notice developers.cloudflare.com · seen 2026-10-09
- pricing developers.cloudflare.com · seen 2026-10-09
- limits developers.cloudflare.com · seen 2026-10-09
- changelog developers.cloudflare.com · seen 2026-10-09
- Unified Billing developers.cloudflare.com · seen 2026-10-09
- Machine Payments (x402) developers.cloudflare.com · seen 2026-10-09
- authenticated gateway developers.cloudflare.com · seen 2026-10-09
- BYOK developers.cloudflare.com · seen 2026-10-09
- manage gateways developers.cloudflare.com · seen 2026-10-09
- request handling developers.cloudflare.com · seen 2026-10-09
- fallbacks developers.cloudflare.com · seen 2026-10-09
- rate limiting developers.cloudflare.com · seen 2026-10-09
- spend limits developers.cloudflare.com · seen 2026-10-09
- dynamic routing developers.cloudflare.com · seen 2026-10-09
- Auto Router developers.cloudflare.com · seen 2026-10-09
- caching developers.cloudflare.com · seen 2026-10-09
- guardrails developers.cloudflare.com · seen 2026-10-09
- logging developers.cloudflare.com · seen 2026-10-09
- Legacy Logs developers.cloudflare.com · seen 2026-10-09
- analytics developers.cloudflare.com · seen 2026-10-09
- audit logs developers.cloudflare.com · seen 2026-10-09
- troubleshooting developers.cloudflare.com · seen 2026-10-09
- model catalogue developers.cloudflare.com · seen 2026-10-09
- Claude Sonnet 5 model page developers.cloudflare.com · seen 2026-10-09
- GPT-4.1 mini model page developers.cloudflare.com · seen 2026-10-09
- Workers Logs pricing and limits developers.cloudflare.com · seen 2026-10-09
- API token creation developers.cloudflare.com · seen 2026-10-09
- Cloudflare API rate limits developers.cloudflare.com · seen 2026-10-09
- Cloudflare OpenAPI document, read from a shallow clone github.com · seen 2026-10-09
- status components feed cloudflarestatus.com · seen 2026-10-09
- status incidents feed cloudflarestatus.com · seen 2026-10-09
- Self-Serve Subscription Agreement cloudflare.com · seen 2026-10-09
- service-specific terms, Workers AI and AI Gateway cloudflare.com · seen 2026-10-09
- privacy policy cloudflare.com · seen 2026-10-09
- customer DPA cloudflare.com · seen 2026-10-09
- sub-processor list for Cloudflare services cloudflare.com · seen 2026-10-09
- Enterprise support and SLA cloudflare.com · seen 2026-10-09
- disclosure page cloudflare.com · seen 2026-10-09
- compliance resources page cloudflare.com · seen 2026-10-09
- security.txt cloudflare.com · seen 2026-10-09
- TypeScript SDK tags github.com · seen 2026-10-09
- Python SDK tags github.com · seen 2026-10-09
- Go SDK tags github.com · seen 2026-10-09
- ai-gateway-provider source and tags github.com · seen 2026-10-09
- ai-gateway-provider on npm registry.npmjs.org · seen 2026-10-09
- ai-gateway-provider weekly downloads api.npmjs.org · seen 2026-10-09
- RDAP for cloudflare.com rdap.verisign.com · seen 2026-10-09
Probe metrics
Not measured yet. Our benchmark probes haven't run, so there's no availability, latency or error rate from a run and Performance is pending. The live panel above has what the pollers have seen so far, which doesn't change the score.
Pricing & changes
Freemium 5% fee Free on all plans for analytics, caching and rate limiting, with a Cloudflare account. Third-party models are paid from prepaid Unified Billing credits at provider prices plus a 5 per cent fee on each credit purchase, or with the caller's own provider keys at no Cloudflare charge. Logs for new customers follow Workers Logs pricing, 200,000 events a day free. An account on the Free plan starts without a contract (https://developers.cloudflare.com/ai-gateway/reference/pricing/, checked 2026-10-09).
Prices
| Item | Price | Unit | Note |
|---|---|---|---|
| Unified Billing credit purchase fee | 5% | percentage fee | a $100 purchase is charged $105 |
| Logpush requests past 10 million a month | $0.0001 | per 1,000 requests | listed as $0.05 per million, Workers Paid only |
Compared across listings on the price index.
Recent changes
- Latest release
Follow them as a feed at /feeds/tools/cloudflare-ai-gateway.xml, or this listing's score history at history.json.
Connect
First request
curl -X POST "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions" \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "openai/gpt-4.1-mini",
"messages": [{"role": "user", "content": "What is Cloudflare?"}]
}'
Pay per call with x402
curl -iX POST "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run" \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Payment-Method: x402" \
--header "Content-Type: application/json" \
--data '{"model":"z-ai/glm-4.7-flash","input":{"messages":[{"role":"user","content":"What is Cloudflare?"}]}}'
Alternatives to Cloudflare AI Gateway
#8 of 17 in Best model APIs and inference for AI agents · All 136 models comparisons
OpenRouter BAntseed COpenAI API AClaude API BBGroqCloud BBBlockRun.AI BB
Head to head Claude API vs Cloudflare AI Gateway · BlockRun.AI 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 Gemini Developer API · Cloudflare AI Gateway vs GroqCloud · Cloudflare AI Gateway vs Mistral AI API · 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 SambaCloud · Cloudflare AI Gateway vs SiliconFlow · Antseed vs Cloudflare AI Gateway
Machine-readable
| Similar tool | Grade | Score | Shared capabilities | x402 |
|---|---|---|---|---|
| Google Cloud Model Armor Google Cloud | BB | 77.9 | guard.pii guard.moderation | no |
| Amazon Bedrock Guardrails Amazon Web Services | BB | 74.8 | guard.pii guard.moderation | no |
| OpenAI Guardrails OpenAI | B | 69.5 | guard.pii guard.moderation | no |
| OpenRouter OpenRouter | B | 68.5 | inference.llm inference.router | no |
| NVIDIA NeMo Guardrails NVIDIA | B | 68.4 | guard.pii guard.moderation | no |
| Vela 2.0 vLLM Semantic Router project and KR Labs | B | 66.5 | guard.pii guard.moderation | no |
Machine-readable
- JSON
/api/v1/tools/cloudflare-ai-gateway.json· historyhistory.json· badge/badges/cloudflare-ai-gateway.svg· changes feed/feeds/tools/cloudflare-ai-gateway.xml - Markdown
/tools/cloudflare-ai-gateway.md· slim/tools/cloudflare-ai-gateway.min.md(or sendAccept: text/markdown) - Fix list
/fixes/cloudflare-ai-gateway.md·/fixes/cloudflare-ai-gateway.json - From a terminal
anchor tool cloudflare-ai-gateway --md(the CLI) · over MCPget_tool {"slug": "cloudflare-ai-gateway"}at/mcp, no key - Directory index
/api/v1/tools.json· site index/llms.txt
Verify this listing
For the vendorIs this your product? Link to this page from your own site or README, then tell us where. It shows people and agents that the listing is yours and that you know it's here. It never changes a grade, rank or review.
-
Add the badge or a link
On a light page On a dark page <a href="https://www.anchorterminal.com/tools/cloudflare-ai-gateway"><img src="https://www.anchorterminal.com/badges/cloudflare-ai-gateway.svg" alt="Cloudflare AI Gateway on Anchor Terminal" height="20"></a>[](https://www.anchorterminal.com/tools/cloudflare-ai-gateway)<a href="https://www.anchorterminal.com/tools/cloudflare-ai-gateway">Cloudflare AI Gateway on Anchor Terminal</a>It counts on a page on cloudflare.com or one of its subdomains, or the README of github.com/cloudflare/ai.
-
Tell us where it is
We read it once now and again every week. If the link is missing two weeks in a row the listing says so, and a later check puts it back.
Agents send the same to POST /api/v1/verify as {"slug": "cloudflare-ai-gateway", "url": "…"}, or call the verify_listing tool at /mcp. Ten checks an hour from one address. What we check. To announce the listing, get sharing assets for social media.


