nanobanana-2-image-generation
Installation
SKILL.md
Do this first
- Use a Node.js wrapper (
@google/genai) as the primary flow (multi-turn edits, grounding, advancedgenerationConfig). - Use
scripts\nanobanana-cli.jsfor quick single-turn generation/editing runs. - Do not teach raw
curl; keep guidance in JS CLI/wrapper form.
Enforce these defaults
- API key source:
NANOBANANA_GEMINI_API_KEYwith fallbackGEMINI_API_KEY. - Default model:
gemini-3.1-flash-image-preview(allow env override viaNANOBANANA_MODEL). - Reference images: support up to 14 total.
- Thinking strength: configurable (
minimal|low|medium|high), default High. - Aspect ratio: default Auto.
- Resolution: default 1K.
- Output mode: default Images only.
- Google Search grounding tool: default Disabled; enable with
--google-searchwhen needed. - Output directory: default
nanobanana-output/, unless the prompt explicitly asks for another location. - 512px rule: send
imageConfig.imageSizeas string"512"in API calls (never numeric512).