Loading...
Loading...
Generate, edit, or transform images with Gemini Nano Banana using bundled Python scripts (Flash or Pro) including aspect ratio, resolution, image-to-image edits, logo overlays, and reference images. Use when users request image generation, image edits, image-to-image transformations, logo placement, or specific aspect ratios or resolutions.
npx skill4agent add feed-mob/agent-skills gemini-image-generatorgemini-2.5-flash-imageflash9:16131K1K|2K|4Kgemini-3-pro-image-preview--size1:12:33:23:44:34:55:49:1616:921:91K2K4Kpython scripts/generate_image.py \
--prompt "<user prompt>" \
--aspect 9:16 \
--count 1 \
--model flash \
--out-dir outputsGEMINI_API_KEYpython scripts/edit_image.py \
--input /path/to/base.png \
--prompt "<edit instructions>" \
--reference /path/to/ref1.png \
--reference https://example.com/ref2.png \
--aspect 9:16 \
--count 1 \
--model flash \
--out-dir outputspython scripts/logo_overlay.py \
--base /path/to/base.png \
--logo /path/to/logo.png \
--aspect 9:16 \
--count 1 \
--model pro \
--out-dir outputspython scripts/generate_image.py --prompt "Generate a portrait of a dancer in a foggy forest."python scripts/generate_image.py --prompt "Make a 2K 16:9 cinematic still of a neon city" --aspect 16:9 --size 2K --count 3 --model propython scripts/edit_image.py --input /path/to/image.png --prompt "Remove the background and make it studio white."python scripts/logo_overlay.py --base /path/to/photo.png --logo /path/to/logo.pnggoogle-genaiscripts/requirements.txtpip install -r scripts/requirements.txtoutputs/references/prompt-guide.mdreferences/logo-overlay.mdreferences/image-editing.mdreferences/watermarking.md