Loading...
Loading...
Use when the user needs to generate images, UI assets, icons, backgrounds, placeholders, or any visual content. Triggers on requests like "generate an image", "create a picture", "make an icon", "I need a visual for...".
npx skill4agent add wxul/openrouter-generate-image-skill generate-imagegoogle/gemini-3.1-flash-image-previewOPENROUTER_API_KEYtsxnpx tsxnpx tsx generate-image.ts \
--prompt "description of the image" \
--model "google/gemini-3.1-flash-image-preview" \
--width 1024 --height 1024 \
--output "filename.png" \
--dir "./generated-images" \
--proxy "http://127.0.0.1:7890"| Param | Required | Default | Description |
|---|---|---|---|
| Yes | - | Image description |
| No | | OpenRouter model ID |
| No | 1024 | Image width |
| No | 1024 | Image height |
| No | auto (timestamp-slug.png) | Output filename |
| No | | Output directory |
| No | - | HTTP proxy URL |
google/gemini-3.1-flash-image-previewblack-forest-labs/flux-1.1-problack-forest-labs/flux-schnell# Simple generation with defaults
npx tsx generate-image.ts \
--prompt "a minimalist logo of a mountain with a sun, flat design, blue and orange"
# With specific model and output
npx tsx generate-image.ts \
--prompt "abstract gradient background, purple to blue" \
--model "black-forest-labs/flux-1.1-pro" \
--output "bg-gradient.png" \
--dir "./public/images"
# With proxy
npx tsx generate-image.ts \
--prompt "pixel art cat sitting on a desk" \
--proxy "http://127.0.0.1:7890"OPENROUTER_API_KEY