Cloudflare Workers

Guides, tutorials, and examples for Cloudflare Workers, the serverless platform for deploying fast, scalable, and secure applications at the edge.

Cloudflare AI Gateway: Control Your LLM Costs

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 Image Resizing Is Now Image Transformations

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....

How to Reduce LLM Latency: Caching and Edge Strategies

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...

Build Voice Agents: OpenAI Realtime API Guide

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 AI Agents with Cloudflare Workers and LangChain

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...

Deploying Llama 3 on the Edge with Cloudflare Workers AI

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...

Build a Cloudflare Workers API: Serverless Guide 2026

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...