minibanana
v0.1.0
Published
A tiny CLI for generating images with OpenRouter
Maintainers
Readme
minibanana
Tiny CLI for generating images with OpenRouter.
Install
npm install -g minibananaOr run it with npx:
npx minibanana --prompt "A friendly whale" --model "bytedance-seed/seedream-4.5" --out myimage.pngUsage
minibanana --prompt "A friendly whale" --model "bytedance-seed/seedream-4.5" --out myimage.png
minibanana --prompt @prompt.md --model "bytedance-seed/seedream-4.5" --out myimage.jpg --quality 80
minibanana --prompt @prompt.md --model "bytedance-seed/seedream-4.5" --aspect-ratio 16:9 --out myimage.jpg
minibanana --prompt @prompt.md --in image1.jpg --in image2.jpg --model "bytedance-seed/seedream-4.5" --out myimage.jpgOptions
--prompt <prompt>: Required. Prompt text, or@path/to/file.md.--model <model>: Required. OpenRouter model name.--out <file>: Required. Output path for generated images. If the API returns multiple images, extra files are written asname2.ext,name3.ext, and so on.--in <image>: Optional. Repeat to attach one or more input images.--api-key <key>: Optional. Falls back toOPENROUTER_API_KEY.--quality <number>: Optional. JPEG quality from 1 to 100. Defaults to70.--aspect-ratio <ratio>: Optional. Passed through to OpenRouter asimage_config.aspect_ratio.
Notes
- Input images are sent to OpenRouter as data URLs.
- The CLI writes returned images to
--out, then appends2,3, and so on before the extension if multiple images are returned. - The CLI converts the returned image to match the
--outextension. - Supported output formats are
.jpg,.jpeg,.png,.webp,.avif,.gif,.tif, and.tiff. - Aspect ratio validation is intentionally minimal: it only checks
x:ysyntax like16:9.
