About nano-banana-build
A skill for generating and editing images with Gemini image models through the `google-genai` Python SDK. It includes model guidance and examples for common image workflows.
Key features
- 01Text-to-image generation
- 02Image editing and style transfer
- 03Multi-turn editing
- 04Model capability and resolution guidance
- 05Example recipes for visual assets
Use cases
- 01Generate images from text prompts
- 02Change a subject’s appearance in an image
- 03Create logos, stickers, or mockups
- 04Compare Gemini image model options
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cnemri/ google-genai-skills --skill nano-banana-buildAfter installing, type/nano-banana-buildin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/image_editing.mdimage_generation.mdmodel_capabilities.mdrecipes.mdsource_code.mdthinking_process.mdDetails
From the project READMENano Banana Image Generation Skill
Use this skill to generate and edit images using the google-genai Python SDK with Gemini's specialized image models (Nano Banana).
Quick Start Setup
from google import genai
from google.genai import types
from PIL import Image
import io
client = genai.Client()
Reference Materials
- Model Capabilities: Comparison of Gemini 2.5 vs 3 Pro, resolutions, and token costs.
- Image Generation: Text-to-Image, Interleaved Text/Image.
- Image Editing: Subject Customization, Style Transfer, Multi-turn Editing.
- Thinking Process: Understanding thoughts and signatures (Gemini 3 Pro).
- Recipes: Extensive collection of examples (Logos, Stickers, Mockups, Comics, etc.).
- Source Code: Deep inspection of SDK internals.
Available Models
gemini-2.5-flash-image(Nano Banana): Fast, high-quality generation and editing. Best for most use cases.gemini-3-pro-image-preview(Nano Banana Pro): Highest fidelity, supports2Kand4Kresolution, complex prompt adherence, and grounding.
Common Workflows
1. Fast Generation
response = client.models.generate_content(
model='gemini-2.5-flash-image',
contents='A cute robot eating a banana',
config=types.GenerateContentConfig(
response_modalities=['IMAGE']
)
)
2. High-Quality Editing
response = client.models.generate_content(
model='gemini-3-pro-image-preview',
contents=[
types.Part.from_uri(file_uri='gs://.../shoe.jpg', mime_type='image/jpeg'),
"Change the color of the shoe to neon green."
],
config=types.GenerateContentConfig(response_modalities=['IMAGE'])
)
Comments
Markdown supported