SMTools Image Generation Skill
by @bzsega
Generate images from text prompts using AI models via OpenRouter, Kie.ai, or YandexART. Use when the user asks to generate, create, draw, or illustrate an im...
Basic generation:
bash SKILL_DIR/scripts/run.sh -p "A serene mountain lake at sunset"
Specific model:
bash SKILL_DIR/scripts/run.sh -p "Cyberpunk cityscape" -m "google/imagen-4"
Kie.ai provider:
bash SKILL_DIR/scripts/run.sh -p "Studio Ghibli forest" --provider kie -m ghibli-ai
Edit an existing image:
bash SKILL_DIR/scripts/run.sh -p "Add a rainbow to the sky" -i /path/to/photo.png
Custom output path:
bash SKILL_DIR/scripts/run.sh -p "A red fox" -o /tmp/fox.png
| Flag | Description |
|------|-------------|
| -p, --prompt | Text prompt (required) |
| --provider | openrouter (default), kie, or yandexart |
| -m, --model | Model name (provider-specific) |
| -i, --input | Input image for editing (path or URL) |
| -o, --output | Output file path |
| -c, --config | Path to config.json |
| --list-models | List available models |
| -v, --verbose | Debug output to stderr |
Output
The script outputs JSON to stdout:
{"status": "ok", "image_path": "/absolute/path/to/image.png", "model": "google/gemini-3.1-flash-image-preview", "provider": "openrouter"}
After successful generation, show the user the image path and confirm the image was created.
clawhub install smtools-image-generation