Free STABLE DIFFUSION 3 on Cloudflare

Get high-speed free access to stable-diffusion-3 on Cloudflare Workers AI with 10,000 daily free neurons. No credit card required.

Updated 8/20/20262 code examples
加载评分…

About the Model

为什么选择 Stable Diffusion 3?

SD3 是目前生图领域最成熟的开源方案之一,它解决了 AI 生图长期以来难以渲染文字和复杂构图的痛点。

How to Access for Free (via Cloudflare Workers AI)

Cloudflare Workers AI 免费政策

Cloudflare Workers AI 为所有免费账户提供每天 10,000 Neurons 的免费额度。这一额度足够支撑每天上百次的文本生成、数十张高质量生图或多段长音频转录。

生图与多模态模型支持

Cloudflare Workers AI 支持直接调用 Flux.1 Schnell、Stable Diffusion XL、Whisper 等模型,每日提供 10,000 Neurons 免费算力额度,无需绑定海外信用卡。

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" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A futuristic city in cyberpunk style, highly detailed 8k",
    "steps": 4
  }' --output image.jpg
python
import requests

ACCOUNT_ID = "YOUR_CF_ACCOUNT_ID"
API_TOKEN = "YOUR_CF_API_TOKEN"

response = requests.post(
    f"https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/run/@cf/stabilityai/stable-diffusion-xl-base-1.0",
    headers={"Authorization": f"Bearer {API_TOKEN}"},
    json={"prompt": "A futuristic city in cyberpunk style, highly detailed 8k", "steps": 4},
)

with open("output.jpg", "wb") as f:
    f.write(response.content)
print("Image successfully saved as output.jpg")