
TL;DR
Cloudflare is merging Workers AI and AI Gateway into one control plane: unified /ai/ REST API, auto-created default gateways, AI Gateway credits spendable on Workers AI, and model-first routing that picks the provider for you. Here is what changes and what stays.
On August 7, Cloudflare announced that Workers AI and AI Gateway are converging into a single AI control plane. Workers AI has been the inference-as-a-service arm (Cloudflare-hosted GPUs, an API endpoint), and AI Gateway the proxy layer that adds observability, logging, access control, and security in front of any provider. They started as distinct products with different architecture, but Cloudflare says usage converged: both now serve one goal, getting developers from a model name to a call, with the control plane around it. Today that convergence becomes a product plan, plus several things that work right now.
Unified entrypoints. The Workers binding and the REST API now go through one path. There is no separate "Workers AI binding" and "AI Gateway binding": the AI binding calls both, and Cloudflare shipped a "default" gateway a few months ago so that you inherit AI Gateway observability even if you never set one up. The REST side is a single endpoint:
curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run/@cf/zai-org/glm-5.2"
The /ai/ endpoint covers both products, so the old choose-your-product-first decision is gone.
Zero-setup observability. Pass default as the gateway ID and AI Gateway creates itself on the first authenticated request. Every request is then logged with full request and response payloads, token counts per model, and cost attribution, with no dashboard setup. Named gateways still exist for teams that want per-application caching rules or traffic splits.
Unified billing, effective immediately. The notable change: AI Gateway credits can now be spent on Workers AI. Previously credits applied only to external providers (OpenAI, Anthropic, and others); Workers AI usage was billed separately. Now one wallet funds every provider Cloudflare supports, including its own GPUs. Cloudflare is also offering elevated rate limits on Workers AI models when you use the unified billing path, as a nudge toward the new flow.
Model-first routing (coming). Today you call a model by provider: you have to know that the endpoint you want lives at a given vendor, and if that vendor is down or rate-limiting, your app breaks. Cloudflare is moving toward specifying just the model and letting the gateway handle provider selection, failover, and load balancing. Their example: request Kimi K2.7 Code and the gateway decides whether it comes from Workers AI, Moonshot's own API, or another vetted provider hosting the same weights. If Workers AI has capacity, you get the managed path; if it is at capacity, traffic transparently shifts. The gateway treats model availability as a routing problem, with no application-level retries or fallback logic in your Worker. A pilot for all AI Gateway and Workers AI users is planned "in the coming months."
Intelligent routing (piloting). Beyond failover, Cloudflare is building a classifier that reads your prompt, predicts the task type (coding, research, summarization, general Q&A), complexity, and how much context matters, then a heuristic scorer maps that to the best model from a curated pool. It is currently an internal pilot; teams that want control can still pin exact models. If it ships, it makes a router-without-config a platform feature rather than a third-party integration.
From the archive
Aug 7, 2026 • 8 min read
Aug 7, 2026 • 5 min read
Aug 7, 2026 • 7 min read
Aug 7, 2026 • 11 min read
This is the first major vendor move toward making model-first routing a default platform capability, and it changes two cost decisions at once.
First, the friction removal is real. The old two-product split forced a decision before you had data: go through the gateway and get logs from day one, or call Workers AI directly and add the proxy later. With default gateways and unified billing, you get the observable path by default and opt out only if you want to. For a side project that is the difference between knowing your token spend and guessing at it.
Second, the billing unification is the enabler for routing. The reason gateways have been a hard sell for some teams is that adding a proxy layer used to mean managing a second budget. Once a single wallet funds both your managed GPU calls and your external providers, the accounting cost of moving traffic between them drops to zero, which is exactly what you need for provider failover to be worth wiring up. Cloudflare's bet is that you will not need to wire it up at all, because the gateway does it.
The hard part is trust. Letting the gateway pick the provider for a given model means accepting Cloudflare's judgment on which provider is equivalent, and the ZDR (Zero Data Retention) mention signals they know enterprises will care about where their prompts land. Their identity-aware AI Gateway work from earlier this week is part of the same story: as routing gets more automatic, attribution gets more important.
For teams running their own routing, the honest read is that vendor control planes still trail dedicated router stacks on provider breadth and fine-grained policy. What changed today is the default: for anyone already on Cloudflare Workers, the zero-config path just became the most observable one.
This is the third notable gateway move in two weeks: Vercel added team and project spend budgets on July 31, Cloudflare shipped identity-aware gateway analytics on August 5, and now the unification. The pattern is consolidation: gateways are no longer a niche proxy product, they are becoming the default front door to inference, and the vendors that own the front door are racing to add budgets, identity, and now automatic routing on top.
Where Cloudflare has an angle the others do not is the managed GPU layer underneath. Vercel routes over other people's capacity; Cloudflare routes over its own Workers AI fleet first, which is what makes the economics of model-first routing workable for them. Whether that translates into better reliability for you depends on whether the same model weights are genuinely interchangeable in production, which our LLM router comparison digs into. The optionality argument is covered in our piece on why model-routers matter even when the top model wins, and the build-versus-buy question in our managed vs self-hosted gateway guide.
Read next
Cloudflare AI Gateway now attaches a verified user identity to every request and learns a behavioral baseline per account, flagging 2x-p95 session spikes against an org-wide p99 ceiling. Here is how the anomaly math works and why per-account baselines beat global thresholds.
6 min readAI Gateway spend budgets now scope to teams and projects, with hard dollar limits that reject requests, email alerts at 50/75/100%, and CLI-managed defaults. Here is how the three scopes compose and where it fits your cost stack.
5 min readA practical comparison of LLM routing tools - LiteLLM, Portkey, and OpenRouter - covering cost management, fallbacks, caching, and when to use each for production AI applications.
10 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
CDN, DNS, DDoS protection, and edge computing. Free tier handles most needs. This site uses Cloudflare for DNS and analy...
View ToolOpen-source AI gateway: call 100+ LLM providers in the OpenAI format via a Python SDK or proxy. Spend tracking, budgets,...
View ToolUnified API for 200+ models. One API key, one billing dashboard. OpenAI, Anthropic, Google, Meta, Mistral, and more. Aut...
View ToolDeepSeek's reasoning-first model built for agents. First model to integrate thinking directly into tool use. Ships along...
View ToolA complete, citation-backed Claude Code course with setup, prompting systems, MCP, CI, security, cost controls, and capstone workflows.
ai-developmentInstall Ollama and LM Studio, pull your first model, and run AI locally for coding, chat, and automation - with zero cloud dependency.
Getting StartedPersistent project instructions loaded every session; supports nested dirs.
Claude Code
Learn The Fundamentals Of Becoming An AI Engineer On Scrimba; https://v2.scrimba.com/the-ai-engineer-path-c02v?via=developersdigest In today's video, I discuss Google's latest announcement...

Use OpenAI's O1, GPT-4o, Anthropic Claude Sonnet, Claude Haiku, Gemini Flash, Gemini Pro, Perplexity and More for Optimizing AI Model Selection for Price, Speed, and Quality in AI Applications...

In this video, I'll show you how to set up internet-enabled responses from LLMs using Serper, Firecrawl with dynamic model routing. We'll utilize a model router called Not Diamond to dynamically...

Cloudflare AI Gateway now attaches a verified user identity to every request and learns a behavioral baseline per accoun...

AI Gateway spend budgets now scope to teams and projects, with hard dollar limits that reject requests, email alerts at...

A practical comparison of LLM routing tools - LiteLLM, Portkey, and OpenRouter - covering cost management, fallbacks, ca...

No single model wins every task anymore, and the companies that never trained one - Factory, Devin, Perplexity, Cursor,...

DeepSeek V4 Flash routed to Novita on Vercel AI Gateway is 90% off for Pro customers through August 11, dropping the eff...

Cloudflare's Agents Week finale frames agents as a new kind of web visitor with four primitives: readable, discoverable,...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.