Generate, edit, and compose images using Gemini Nano Banana models via portable Python scripts. Handles authentication via API Key or Vertex AI environment variables. Available parameters: prompt, model, aspect-ratio, safety-filter-level. Always confirm parameters with the user or explicitly state defaults before running.
76%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/nano-banana-use/SKILL.mdUse this skill to generate, edit, and compose images using Gemini's Nano Banana models (gemini-2.5-flash-image and gemini-3-pro-image-preview).
This skill uses portable Python scripts managed by uv.
Ensure you have one of the following authentication methods configured in your environment:
API Key:
GOOGLE_API_KEY or GEMINI_API_KEYVertex AI:
GOOGLE_CLOUD_PROJECTGOOGLE_CLOUD_LOCATIONGOOGLE_GENAI_USE_VERTEXAI=1Step 1: Confirm Parameters Before running the script, confirm the following parameters with the user or state the defaults you will use:
gemini-3-pro-image-preview.1:1.BLOCK_MEDIUM_AND_ABOVE.Step 2: Run the Script
Run the python script using uv:
uv run skills/nano-banana-use/scripts/generate_image.py "A futuristic banana city" --output city.pngModify an existing image based on a text prompt.
uv run skills/nano-banana-use/scripts/edit_image.py original.png "Make the sky purple" --output edited.pngGenerate a new image based on multiple input images and a prompt.
uv run skills/nano-banana-use/scripts/compose_image.py --image style.png --image subject.jpg "A painting of the subject in the style of the first image" --output composition.pngprompt: The text description of the image.--model: The model to use. Defaults to gemini-3-pro-image-preview.--output: The filename for the saved image. Defaults to generated_image.png.--aspect-ratio: The aspect ratio of the generated image. Defaults to 1:1. Supported: 1:1, 16:9, 4:3, 3:4, 9:16.--safety-filter-level: Safety filter threshold. Defaults to BLOCK_MEDIUM_AND_ABOVE.cnemri/google-genai-skills
7277476
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.