Cloudflare Workers

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

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

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

Cloudflare Image Transformations - Resize and Optimize on the Fly

If Cloudflare Images is where your images live, Cloudflare Image Transformations is the engine that makes them fast. It resizes, compresses and converts your images to modern formats at the moment they are requested, using only the original you already have. No build step, no pre-generated thumbnails, no separate...