๐ก๏ธCloudflare BlogโขStalecollected in 3h
Cloudflare's Internal AI Stack Handles 241B Tokens

๐กSee how Cloudflare scales internal AI: 241B tokens on Workers AI.
โก 30-Second TL;DR
What Changed
20 million requests routed through AI Gateway
Why It Matters
Demonstrates production-scale reliability of Cloudflare's AI tools, offering a blueprint for enterprises building internal AI pipelines.
What To Do Next
Route your AI requests through Cloudflare AI Gateway for scalable inference.
Who should care:Developers & AI Engineers
Key Points
- โข20 million requests routed through AI Gateway
- โข241 billion tokens processed internally
- โขWorkers AI serves 3,683+ internal users
๐ง Deep Insight
AI-generated analysis for this event.
๐ Enhanced Key Takeaways
- โขCloudflare's internal stack utilizes a 'dogfooding' strategy, where the company uses its own production-grade Workers AI and AI Gateway to manage internal LLM workloads, effectively stress-testing its infrastructure at scale.
- โขThe architecture leverages Cloudflare's global network to perform inference at the edge, reducing latency for internal users by executing models closer to their geographic location rather than relying on centralized data centers.
- โขThe internal implementation incorporates automated cost-tracking and rate-limiting features via AI Gateway, allowing Cloudflare to monitor and optimize token consumption across various internal departments and AI-driven projects.
๐ Competitor Analysisโธ Show
| Feature | Cloudflare (Workers AI/Gateway) | AWS (Bedrock/App Mesh) | Google Cloud (Vertex AI/Gateway) |
|---|---|---|---|
| Primary Focus | Edge-native, low-latency inference | Enterprise-grade, broad model choice | Integrated ML pipeline, deep data stack |
| Pricing Model | Per-token/request, edge-optimized | Per-token/provisioned throughput | Per-token/compute-hour |
| Deployment | Global Edge Network | Regional Data Centers | Regional/Multi-region Data Centers |
๐ ๏ธ Technical Deep Dive
- โขWorkers AI utilizes a serverless execution model that dynamically schedules inference tasks across Cloudflare's global fleet of GPUs.
- โขAI Gateway acts as a unified proxy layer, providing caching, logging, and analytics for requests sent to both third-party LLM APIs (like OpenAI or Anthropic) and self-hosted models running on Workers AI.
- โขThe system employs a multi-tenant architecture that isolates internal user workloads while maintaining shared access to model weights cached at the edge.
- โขImplementation relies on the Workers runtime, allowing developers to write inference logic in JavaScript/TypeScript that executes directly within the request-response lifecycle.
๐ฎ Future ImplicationsAI analysis grounded in cited sources
Cloudflare will transition to a hybrid-model routing strategy for enterprise customers.
The success of their internal stack demonstrates that routing traffic between edge-hosted models and external APIs is a viable method to balance cost and performance.
Workers AI will expand support for fine-tuned, domain-specific models.
As internal usage grows, the need for specialized models that outperform general-purpose LLMs will drive the development of persistent storage and fine-tuning capabilities within the Workers environment.
โณ Timeline
2023-09
Cloudflare launches Workers AI to allow developers to run AI models on its global network.
2023-09
Cloudflare introduces AI Gateway to provide observability and control for AI application traffic.
2024-05
Cloudflare expands Workers AI to support Llama 3 and other open-source models at the edge.
2025-02
Cloudflare announces significant performance optimizations for its internal AI inference stack.
๐ฐ
Weekly AI Recap
Read this week's curated digest of top AI events โ
๐Related Updates
AI-curated news aggregator. All content rights belong to original publishers.
Original source: Cloudflare Blog โ