Skip to content
Cloudflare Docs

Build AI Applications

Build and deploy ambitious AI applications to Cloudflare's global network.

Reference architectures

Diagrams, design patterns, and detailed best practices to help you generate solutions with Cloudflare products.

Demo apps

Tutorials

Step-by-step guides to help you build and learn.

Deploy a Worker that connects to OpenAI via AI Gateway

Learn how to deploy a Worker that makes calls to OpenAI through AI Gateway

Recommend products on e-commerce sites using Workers AI and Stripe

Create APIs for related product searches and recommendations using Workers AI and Stripe.

Create a fine-tuned OpenAI model with R2

In this tutorial, you will use the OpenAI API and Cloudflare R2 to create a fine-tuned model.

OpenAI GPT function calling with JavaScript and Cloudflare Workers

Build a project that leverages OpenAI's function calling feature, available in OpenAI's latest Chat Completions API models.

Build a Retrieval Augmented Generation (RAG) AI

Build your first AI app with Cloudflare AI. This guide uses Workers AI, Vectorize, D1, and Cloudflare Workers.

Build a Voice Notes App with auto transcriptions using Workers AI

Explore how you can use AI models to transcribe audio recordings and post process the transcriptions.

Whisper-large-v3-turbo with Cloudflare Workers AI

Learn how to transcribe large audio files using Workers AI.

Build an interview practice tool with Workers AI

Learn how to build an AI-powered interview practice tool that provides real-time feedback to help improve interview skills.

Explore Code Generation Using DeepSeek Coder Models

Explore how you can use AI models to generate code and work more efficiently.

Explore Workers AI Models Using a Jupyter Notebook

This Jupyter notebook explores various models (including Whisper, Distilled BERT, LLaVA, and Meta Llama 3) using Python and the requests library.

Fine Tune Models With AutoTrain from HuggingFace

Fine-tuning AI models with LoRA adapters on Workers AI allows adding custom training data, like for LLM finetuning.

Llama 3.2 11B Vision Instruct model on Cloudflare Workers AI

Learn how to use the Llama 3.2 11B Vision Instruct model on Cloudflare Workers AI.

Choose the Right Text Generation Model

There's a wide range of text generation models available through Workers AI. In an effort to aid you in your journey of finding the right model, this notebook will help you get to know your options in a speed dating type of scenario.

Using BigQuery with Workers AI

Learn how to ingest data stored outside of Cloudflare as an input to Workers AI models.

How to Build an Image Generator using Workers AI

Learn how to build an image generator using Workers AI.

Customer spotlights

Explore case studies on AI companies building on Cloudflare โ†—.

Code examples

Examples ready to copy and paste.