Install
openclaw skills install nexpixAI image generation via Cloudflare Workers AI (free tier, FLUX models) with premium EvoLink fallback. Use when generating images from text prompts, creating visual assets, product mockups, or social media graphics. Triggers: 'generate image', 'create image', 'nexpix', '/canvas', image generation requests. Supports CLI, programmatic API, Discord slash commands, and Telegram bot integration. Zero cost on free tier (10K neurons/day).
openclaw skills install nexpixTwo-tier image generation with intelligent routing. Free by default.
# Generate an image (free tier)
nexpix "a sunset over the ocean with sailboats"
# Specify size
nexpix "cyberpunk cityscape" --size 1024x768
# Premium quality (EvoLink fallback)
nexpix "product photo of a clay jar" --quality premium
# Force a specific route
nexpix "logo design" --route workers-ai
nexpix "4K wallpaper" --route evolink
# Check usage/quota
nexpix --status
const nexpix = require('./nexpix');
const result = await nexpix.generate({
prompt: "a futuristic city at night",
quality: "standard", // standard | premium
width: 1024,
height: 1024,
});
console.log(result.filepath); // local path to saved image
console.log(result.source); // 'workers-ai' or 'evolink'
console.log(result.cost); // 0 for free tier
Discord: /canvas a mountain landscape at dawn
Telegram: /canvas a mountain landscape at dawn
See references/messaging-integration.md for slash command manifests.
| Model | Speed | Quality | Key |
|---|---|---|---|
| FLUX.1-schnell | ~1-3s | Good | flux-schnell (default) |
| FLUX.2-dev | ~5-10s | Great | flux-2-dev |
| Stable Diffusion XL | ~3-5s | Good | sdxl |
| DreamShaper 8 LCM | ~2-4s | Good | dreamshaper |
| Tier | Cost | Limit | Provider |
|---|---|---|---|
| Free | $0/month | 10K neurons/day (~50-100 images) | Cloudflare Workers AI |
| Pro | ~$0.12-0.20/image | Unlimited | EvoLink API |
| Enterprise | Custom | Custom | Self-hosted Workers |
ACCESS/cloudflare-workers-ai.envEVOLINK_API_KEY for premium fallback| File | Purpose |
|---|---|
nexpix.js | Core module (routing, generation, tracking) |
bin/nexpix | CLI entry point |
scripts/deploy-worker.sh | Deploy/update Cloudflare Worker |
references/messaging-integration.md | Discord + Telegram setup |
Images saved to ~/.openclaw/media/workers-ai/ (free) or ~/.openclaw/media/evolink/ (premium).
Print MEDIA:<absolute_path> for OpenClaw auto-attach.
All generations logged to notes/image-gen-tracking.json:
Check with nexpix --status or programmatically via nexpix.getStatus().
clawhub install nexpix