nano-banana-use
Nano Banana Use
Use 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.
Prerequisites
Ensure you have one of the following authentication methods configured in your environment:
-
API Key:
GOOGLE_API_KEYorGEMINI_API_KEY
-
Vertex AI:
GOOGLE_CLOUD_PROJECTGOOGLE_CLOUD_LOCATIONGOOGLE_GENAI_USE_VERTEXAI=1
Usage
Generate an Image
Step 1: Confirm Parameters Before running the script, confirm the following parameters with the user or state the defaults you will use:
- Prompt: The image description.
- Model: Default is
gemini-3-pro-image-preview. - Aspect Ratio: Default is
1:1. - Safety Filter: Default is
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.png
Edit an Image
Modify 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.png
Compose Images
Generate 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.png
Options
prompt: The text description of the image.--model: The model to use. Defaults togemini-3-pro-image-preview.--output: The filename for the saved image. Defaults togenerated_image.png.--aspect-ratio: The aspect ratio of the generated image. Defaults to1:1. Supported:1:1,16:9,4:3,3:4,9:16.--safety-filter-level: Safety filter threshold. Defaults toBLOCK_MEDIUM_AND_ABOVE.
More from cnemri/google-genai-skills
google-adk-python
Expert guidance on the Google Agent Development Kit (ADK) for Python. Use this skill when the user asks about building agents, using tools, streaming, callbacks, tutorials, deployment, or advanced architecture with the Google ADK in Python.
274veo-use
Create and edit videos using Google's Veo 2 and Veo 3 models. Supports Text-to-Video, Image-to-Video, Reference-to-Video, Inpainting, and Video Extension. Available parameters: prompt, image, mask, mode, duration, aspect-ratio. Always confirm parameters with the user or explicitly state defaults before running.
123google-genai-sdk-python
Expert guidance for writing Python code using the official Google GenAI SDK (google-genai) for Gemini API and Vertex AI. Use for text generation, multimodal inputs, reasoning, tools, and media generation.
80veo-build
Create and edit videos using Google's Veo 2 and Veo 3 models. Supports Text-to-Video, Image-to-Video, Inpainting, and Advanced Controls.
63deep-research
Perform autonomous, multi-step research using the Gemini Deep Research Agent (Interactions API). Supports web search, file/directory context, and resilient streaming.
60google-developer-knowledge
Search and retrieve Google's developer documentation using the Developer Knowledge API. Query documentation chunks, get full document content, or batch retrieve multiple documents. Covers ai.google.dev, developer.android.com, docs.cloud.google.com, firebase.google.com, and more.
52