Free Stable Diffusion XL Lightning API via Cloudflare Workers AI with 10,000 daily free Neurons. Zero setup fee, no credit card required.
SDXL-Lightning is a lightning-fast text-to-image generation model. It can generate high-quality 1024px images in a few steps.
Cloudflare Workers AI gives every free account 10,000 Neurons/day (~10k tokens, dozens of image generations, or audio transcriptions). Sign in with GitHub with no credit card required and call via Workers bindings or the REST API.
Cloudflare Workers AI gives every free account 10,000 Neurons of free quota per day (about 10k tokens a day, dozens of image generations, or several audio transcriptions). No overseas credit card is required, GitHub one-click sign-in is supported, and you can call models worldwide at low latency through a Workers binding or the unified REST API.
SDXL-Lightning is a lightning-fast text-to-image generation model. It can generate high-quality 1024px images in a few steps.
Use your own Cloudflare Account ID and an API Token with Workers AI permission to call the API directly. Standard REST endpoints are supported, and you can also paste your key into this site's Playground to try it online.
Chat with free AI models right in your browser — multi-turn conversations, switch models mid-chat, and your API key stays in this browser.
curl https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/ai/run/@cf/bytedance/stable-diffusion-xl-lightning \
-H "Authorization: Bearer $CF_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A futuristic city in cyberpunk style, highly detailed 8k",
"steps": 4
}' --output image.jpg
Community Feedback
Comments are tied to your GitHub account — sign in to join the discussion.