Free Stable Diffusion XL Lightning API

Updated 8/29/2026

SDXL-Lightning is a lightning-fast text-to-image generation model. It can generate high-quality 1024px images in a few steps.

About the Model

为什么选择 Stable Diffusion XL Lightning?

SDXL-Lightning is a lightning-fast text-to-image generation model. It can generate high-quality 1024px images in a few steps.

核心优势与特性

  • 每日 10,000 Neurons 免费算力:Cloudflare 为所有开发者提供每日免费额度,0 成本调用。
  • 全球边缘网络超低延迟:部署于全球 300+ 城市边缘节点,享受 Serverless GPU 秒级冷启动。
  • 开箱即用无缝集成:无需自行部署与管理硬件,支持 REST API 与 Cloudflare Workers 原生绑定直连。

免费调用与开发者福利

Cloudflare Workers AI 为所有免费账户提供每天 10,000 Neurons 的免费额度(约合每日 10k Tokens、数十次图像生成或多段音频转录)。无需绑定海外信用卡,支持 GitHub 账号一键快捷登录,通过 Workers 绑定或统一 REST API 即可全球低延迟直接调用。

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.

How to call Stable Diffusion XL Lightning

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

Provider Details

The following platforms provide free access to Stable Diffusion XL Lightning through free tiers, trial credits, or daily quotas.

ProviderContext WindowFree QuotaRequires CCRatingAction
Cloudflare Workers AIN/ARate Limit
10000 requests per day
No
加载评分…
Details

Frequently Asked Questions

Community Feedback

Comments are tied to your GitHub account — sign in to join the discussion.

Know another free provider for Stable Diffusion XL Lightning?
Help the community by sharing other ways to access this model for free.