AI Text-to-Image Generation
FLUX.1 SchnellGenerate high-resolution images, social cards, and edge assets directly from the CLI using FLUX.1 Schnell.
📖 Full Explanation
\1 utilizes Black Forest Labs' \1 12B parameter rectified flow model on Cloudflare Workers AI. It converts natural language descriptions into crisp, photorealistic images or UI mockups in 1-4 steps, writing pure binary buffers directly to your local disk.
⚙️ Command Options & Flags
| Option / Flag | Description | Default |
|---|---|---|
| -o, --output <path> | Destination image file path (.png or .jpg) | required |
| -s, --steps <num> | Number of diffusion denoising steps (1-8) | 4 |
| -m, --model <id> | Override image diffusion model | @cf/black-forest-labs/flux-1-schnell |
🔬 Technical Corollary & Edge Mechanics
Unlike JSON-based LLM APIs, FLUX.1 returns raw binary \1 or \1 byte streams over HTTP. The CLI client features a dedicated binary stream reader in \1 that bypasses string decoding to prevent UTF-8 character corruption, guaranteeing byte-perfect local image storage.
🎯 Real-World DevOps Use Cases
Dynamic Social Share Card Generation
Generate automated OpenGraph teaser banners for blog posts directly in CI.
App Icon & Asset Generation
Create vector-style dark mode application icons without design software.
💻 Live Output Simulation
$ cflare ai image "Hyper-realistic server rack in misty data center" -o server.png ✔ Generating image with @cf/black-forest-labs/flux-1-schnell (4 steps)... ✔ Image generated successfully (1,920ms) ✔ Saved 1.84 MB binary buffer to server.png