Nano Banana Pro Image Generator
Generate and edit images using Google's Nano Banana Pro model via the Replicate API.
Usage
Run the generation script:
uv run --with replicate python {baseDir}/generate.py --prompt "<user prompt>" [--aspect-ratio 1:1] [--output image.png]
Options
--prompt: The image description (required)--aspect-ratio: Ratio like 1:1, 4:3, 16:9 (default: 1:1)--output: Output file path (default: generated_image.png)
Rules
- Only use the
google/nano-banana-promodel. Never fall back to other models likegoogle/nano-bananaor any alternative. If the model is unavailable or rate-limited, report the error to the user and stop. - After generating an image, send the image file directly in the chat. Do not just save it to the workspace silently.
Tips
- For text in images, be specific about fonts, size, and placement
- The model supports resolutions up to 2K
- Safety filtering is on by default