Multi-Model AI Image Generation:

Supports SDXL, SDXL-Lightning, DreamShaper, and FLUX.1 (schnell) with configurable defaults for model, dimensions, inference steps, and guidance — all tunable via environment variables.

Secure, CORS-Enabled Edge API:

Authentication via Bearer token, API key header, or query parameter. Returns raw JPEG or base64 JSON. Runs at the edge on Cloudflare's global network with built-in observability.

A serverless text-to-image generation API deployed on Cloudflare Workers AI. It supports multiple Stable Diffusion models — SDXL, SDXL-Lightning, DreamShaper, and FLUX.1 — and returns images instantly from text prompts via simple HTTP endpoints.

  • Cloudflare Workers
  • Cloudflare Workers AI
  • Stable Diffusion / FLUX.1 Models
  • JavaScript
Tags:Cloudflare WorkersAIImage GenerationStable DiffusionServerless