SKILL.md--- name: imagegen description: Generate or edit images via BlockRun's image API. Trigger when the user asks to generate, create, draw, make an image — or to edit, modify, change, or retouch an existing image. triggers: - "blockrun image" - "blockrun image generation" - "clawrouter image" - "generate image via blockrun" - "blockrun ai art" - "blockrun seedream" - "blockrun nano banana" - "blockrun cogview" - "blockrun grok imagine" - "edit image via blockrun" - "inpainting via blockrun" - "x402 image generation" - "usdc image generation" metadata: { "openclaw": { "emoji": "🖼️", "requires": { "config": ["models.providers.blockrun"] } } } --- # Image Generation & Editing Generate or edit images through ClawRouter. Payment is automatic via x402. **Shortcuts:** - Slash: `/cr-imagegen <prompt> [--model=<alias>] [--size=1024x1024] [--n=1]` (`/imagegen` still accepted in chat for backward compatibility) - Partner tool: `blockrun_image_generation` (LLM-callable) / `blockrun_image_edit` (inpainting) --- ## Generate an Image POST to `http://localhost:8402/v1/images/generations`: ```json { "model": "google/nano-banana", "prompt": "a golden retriever surfing on a wave", "size": "1024x1024", "n": 1 } ``` Response: ```json { "created": 1741460000, "data": [{ "url": "http://localhost:8402/images/abc123.png" }] } ``` Display inline: `` ### Model Selection | Alias | Full ID | Sizes | Best for | | ------------------ | ------------------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------ | | `nano-banana` | `google/nano-banana` | 1024×1024 | Default — fast, cheap, good quality | | `banana-2` | `google/nano-banana-2` | 1024×1024 | Gemini 3.1 Flash imagegen — sharper than nano-banana at 1K | | `banana-2-lite` | `google/nano-banana-2-lite` | 1024×1024 | Gemini 3.1 Flash Lite imagegen — the lowest-cost Nano Banana | | `banana-2.1` | `google/nano-banana-2.1` | 1024×1024 | Nano Banana 2.1 — newer Flash-tier model with thinking | | `banana-pro` | `google/nano-banana-pro` | 1024×1024, 2048×2048, 4096×4096 | High-res, large format | | `gpt-image` | `openai/gpt-image-1` | 1024×1024, 1536×1024, 1024×1536 | Budget option; supports editing | | `gpt-image-2` | `openai/gpt-image-2` | 1024×1024, 1536×1024, 1024×1536 | Photorealistic, reasoning-driven, text rendering (slow — proxy polls up to 5min); legacy `dalle` alias routes here | | `flare` | `openai/gpt-image-2.5-flare` | 1024×1024, 1536×1024, 1024×1536 | GPT Image 2.5, fast — top OpenAI quality, caller can pick `quality` at a flat price | | `sunburst` | `openai/gpt-image-2.5-sunburst` | 1024×1024, 1536×1024, 1024×1536 | GPT Image 2.5, precision — best for high-fidelity edits | | `seedream` | `bytedance/seedream-5-pro` | up to 2848×1600 / 2304×1728 | Flagship