nanobanana
nanobanana
Use gemini-nano-banana-2.1 and nothing else. Nano Banana 2 (gemini-3.1-flash-image, shut down 2026-10-29), Nano Banana Pro (gemini-3-pro-image), Nano Banana 2 Lite, gemini-2.5-flash-image and Imagen cost more for worse results or are gone. When 2.1 fails, report the failure instead of falling back. When Google ships a newer Nano Banana, confirm it in the model list, then propose updating the helper's MODEL constant and the facts here rather than editing an installed copy.
Facts below are a 2026-10-18 live snapshot from one paid key (about 150 generations). python3 scripts/nanobanana.py contract re-checks ratios, sizes, thinking levels and formats for free (exit 4 means drift); trust current results over this file.
Making an image
Check the key without printing it: [ -n "$GEMINI_API_KEY" ]. Infer the settings from context and ask only when a missing fact would change the image (exact copy, real data, brand assets).
Every request and every retry is a paid call. A request for a prompt is not a request to render, and one image means one request: stay within the count, size and retries the user asked for, and report a failure that would need more.
| Job | Size | Thinking | Extras |
|---|---|---|---|
| Draft, thumbnail, many variants | 512 or 1K |
minimal |
|
| Photo, illustration, product, edit | 1K (2K for print or hero) |
medium (default) |
--ref for edits |
| Text-heavy poster, slide, chart, diagram, map | 1K–2K (4K keeps small-print casing best) |
medium; high for dense facts |
exact copy in quotes |
| Recent events, real species, products, places | 1K+ |
medium |
--search, --image-search |
| 20+ images that can wait | 1K+ |
per job | batch-submit (half price) |