Install
openclaw skills install imageflareGenerate and edit images using Cloudflare Workers AI via the `imageflare` CLI. Use when: user asks to generate an image from a text prompt, edit/transform an...
openclaw skills install imageflareGenerate and edit images from your terminal using Cloudflare Workers AI models (Flux, Stable Diffusion, etc.).
✅ USE this skill when:
❌ DON'T use this skill when:
convert/ffmpeg/Pillowidentify, exiftoolimageflare config firstRequires a Cloudflare account with Workers AI access (free tier available).
# First-time interactive setup (Account ID + API Token + model selection)
imageflare config
Getting credentials:
| Credential | Where to find it |
|---|---|
| Account ID | Cloudflare dashboard → right sidebar of any page |
| API Token | My Profile → API Tokens → Create Token — select the Workers AI template or grant Workers AI: Read permission |
Verify setup:
imageflare config show
# Basic generation
imageflare generate --prompt "a red fox sitting on a snow-covered log"
# With custom dimensions and seed for reproducibility
imageflare generate --prompt "a sunset over mountains" --width 512 --height 512 --seed 42
# Save to specific path and auto-open
imageflare generate --prompt "cyberpunk cityscape" --output cityscape.png --open
# Use a specific model
imageflare generate --prompt "a cat" --model "@cf/black-forest-labs/flux-1-schnell"
# Basic edit
imageflare edit photo.png --prompt "change the background to a beach"
# Edit with a style reference image (up to 3 refs)
imageflare edit photo.png --ref style.png --prompt "style image 0 like image 1"
# Multiple reference images
imageflare edit photo.png --ref ref1.png --ref ref2.png --prompt "combine styles"
# Save to specific path
imageflare edit photo.png --prompt "make it a watercolor painting" --output watercolor.png --open
# Interactive setup wizard
imageflare config
# View current settings
imageflare config show
# List available AI models on your account
imageflare config models
# Set values non-interactively
imageflare config set --account-id YOUR_ID --api-token YOUR_TOKEN
imageflare config set --model "@cf/black-forest-labs/flux-1-schnell"
| Flag | Description |
|---|---|
-p, --prompt | Text prompt describing what to generate or how to edit (required) |
-m, --model | Cloudflare Workers AI model ID (overrides configured default) |
--width | Output width in pixels (default: 1024) |
--height | Output height in pixels (default: 1024) |
--seed | Random seed for reproducible results |
-o, --output | Output file path (default: imageflare_<timestamp>.png) |
--open | Open the saved image automatically after generation |
-r, --ref | (edit only) Additional reference image, repeatable up to 3 times |
imageflare_<timestamp>.png in the current directory--output to specify a custom path--open to auto-open the result in the system image viewer@cf/black-forest-labs/flux-2-klein-4bimage 0, image 1, etc.~/.config/imageflare/config (Linux/macOS) or %APPDATA%\imageflare\config (Windows)