Free Stable Diffusion 3 API on Cloudflare Workers AI

Get high-speed free access to stable-diffusion-3 on Cloudflare's global edge network.

Updated 6/6/2026Provider trust 99/1001 code examples

About the Model

Why choose Stable Diffusion 3?

SD3 is currently one of the most mature open-source solutions in the field of image generation, solving the long-standing pain points of AI image generation being difficult to render text and complex compositions.

How to Access for Free (via Cloudflare Workers AI)

Cloudflare Free Policy

Cloudflare Workers AI provides a free quota of 10,000 Neurons per day for all free accounts. This quota is sufficient to support hundreds of text generations, dozens of high-quality image generations, or multiple long audio transcriptions per day.

Try it in your browser

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Code Examples

curl
curl https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/ai/run/@cf/stabilityai/stable-diffusion-xl-base-1.0 \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -d '{"messages": [{"role": "user", "content": "Hello!"}]}'