Most teams call a model provider straight from application code. The API key sits in an environment variable, the SDK call is three lines, and it works first time. Cloudflare AI Gateway exists because of what happens next. The bill arrives and nobody can say which feature caused it. The provider has a bad afternoon and...
Cloudflare Workers
Guides, tutorials, and examples for Cloudflare Workers, the serverless platform for deploying fast, scalable, and secure applications at the edge.
Cloudflare Queues solves the problem every serverless application eventually hits: a request arrives that triggers work the user should not have to wait for. Sending the confirmation email, resizing the upload, syncing the record to a third party. On a traditional server you hand that to a background worker process. On...
Cloudflare Hyperdrive exists because of a specific, unglamorous problem: a Worker running in two hundred cities talking to one Postgres database in one city is slower than the same query issued from a single server sitting next to that database. Not slightly slower. Often several times slower, and for reasons that have...
If you have followed a Cloudflare tutorial written before 2026, installed a plugin with “resizing” in its name, or inherited a Worker that rewrites image URLs, you have probably hit something confusing. The Cloudflare dashboard no longer has a feature called Image Resizing. The documentation does not mention it either....
Reducing LLM latency is one of the most critical challenges for engineers building responsive AI applications. While Large Language Models (LLMs) keep growing in capability, their token-by-token generation can create frustrating bottlenecks for end users, and long wait times lead directly to lower engagement and...
Building low-latency audio pipelines with the OpenAI Realtime API lets developers launch human-like conversational voice agents in production. Traditionally, building a voice interface meant chaining three separate model layers: automatic speech recognition (ASR), a text-based LLM logic layer, and text-to-speech (TTS)...
Building a Cloudflare Workers AI agent is the next step in moving from simple AI prompts to autonomous workflows. These systems, known as AI agents, use Large Language Models (LLMs) to call external tools, make decisions, and execute tasks on their own. While running agents traditionally required heavy servers, this...
This Cloudflare Workers AI tutorial shows you how to deploy and run machine learning models directly on Cloudflare’s global edge network. With Cloudflare Workers AI, you can execute Large Language Models (LLMs), text translation, image generation, and audio transcription close to your users without managing complex GPU...
Cloudflare Workers and AWS Lambda are both serverless compute platforms, but they come from different starting points. Lambda is the established serverless standard inside the vast AWS ecosystem; Workers is edge-native, built for low latency and global distribution. In 2026, both are excellent, and the right choice...
Cloudflare Workers let you run backend code at the edge, close to your users, without managing servers. For APIs, that combination of near-zero cold starts, global distribution, and tightly integrated storage makes Workers a compelling platform in 2026. This guide explains how a Cloudflare Workers API is structured and...