Use this skill when users ask to generate, edit, or compose images with Nano Banana (Gemini image models), including text-to-image, image editing, multi-image composition, grounding, and output sizing/saving controls.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Use this skill when users ask to generate, edit, or compose images with Nano Banana (Gemini image models), including text-to-image, image editing, multi-image composition, grounding, and output sizing/saving controls.
Do this first
Use a Node.js wrapper (@google/genai) as the primary flow (multi-turn edits, grounding, advanced generationConfig).
Use scripts/gemini-nanobanana-cli.js for 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_KEY with fallback GEMINI_API_KEY.
Default model: gemini-3.1-flash-image-preview (allow env override via NANOBANANA_MODEL).
Add references via repeated -i/--image (up to 14).
Enable grounding via --google-search when prompt needs fresh web context.
The API key (GEMINI_API_KEY / NANOBANANA_GEMINI_API_KEY) is injected by the workflow environment; do not hardcode it. The CLI reads it automatically from the environment.