π¦ ClawHub
Cloudflare Image Generation
by @expysf98
Generate images using Cloudflare Workers AI flux-1-schnell model. Use when user requests image generation with text-to-image using Cloudflare Workers API.
TERMINAL
clawhub install cloudflare-image-genπ About This Skill
name: cloudflare-image-gen description: Generate images using Cloudflare Workers AI flux-1-schnell model. Use when user requests image generation with text-to-image using Cloudflare Workers API.
Cloudflare Image Generation
This skill generates images using Cloudflare Workers AI @cf/black-forest-labs/flux-1-schnell model.
Credentials
1e89d3ce76cbfef3b5c340e3984b7a52aCTA2KaKa1n3ayFDL-LPmZ-JgUC0HHgA5Msy18Bk@cf/black-forest-labs/flux-1-schnellUsage
Run the script directly:
python3 /home/ubuntu/.openclaw/workspace/skills/cloudflare-image-gen/scripts/generate_image.py "your prompt here" -o output.png
Or use the Python function:
import sys
sys.path.insert(0, '/home/ubuntu/.openclaw/workspace/skills/cloudflare-image-gen/scripts')
from generate_image import generate_imageoutput_path = generate_image("a black horse")
Output
The script saves the generated image as PNG and returns the file path. Send the image to the user via Telegram.
π‘ Examples
Run the script directly:
python3 /home/ubuntu/.openclaw/workspace/skills/cloudflare-image-gen/scripts/generate_image.py "your prompt here" -o output.png
Or use the Python function:
import sys
sys.path.insert(0, '/home/ubuntu/.openclaw/workspace/skills/cloudflare-image-gen/scripts')
from generate_image import generate_imageoutput_path = generate_image("a black horse")