Documentation
README
Nano Banana — Image Generation
Image generation script supporting three models. Requires sharp for input image compression (auto-installed on first run).
Models
| Flag | Notes |
|---|---|
--model nano-banana |
Default. Fast, good quality. |
--model nano-banana-pro |
Highest quality, slower. |
--model nano-banana-2 |
Legacy model. |
Generate an image
node {baseDir}/scripts/generate-image.js --prompt "a cat sitting on mars" --filename "cat-on-mars.png"
Edit a single image
node {baseDir}/scripts/generate-image.js \
--prompt "make the sky purple" \
--filename "edited.png" \
-i "/path/to/input.png" \
--model nano-banana-pro
Multi-image composition (up to 14 images)
This is the opening of the README. Read the full README on GitHub.