Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cnemri avatar

Nano Banana Build

  • 62 installs
  • 124 repo stars
  • Updated February 6, 2026
  • cnemri/google-genai-skills

Guides generating and editing images in Python with Gemini 2.5 Flash Image and Gemini 3 Pro Image (Nano Banana), covering style transfer and character consistency.

About

Provides code patterns for image generation and editing via the google-genai SDK using Gemini's Nano Banana image models. A developer uses it to build text-to-image, style-transfer, or character-consistency features in Python.

  • Fast Flash model vs 2K/4K Pro image model
  • Text-to-image, editing, style transfer, virtual try-on

Nano Banana Build by the numbers

  • 62 all-time installs (skills.sh)
  • Ranked #861 of 1,335 Generative Media skills by installs in the Skillselion catalog
  • Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cnemri/google-genai-skills --skill nano-banana-build

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs62
repo stars124
Last updatedFebruary 6, 2026
Repositorycnemri/google-genai-skills

What it does

Guides generating and editing images in Python with Gemini 2.5 Flash Image and Gemini 3 Pro Image (Nano Banana), covering style transfer and character consistency.

Files

SKILL.mdMarkdownGitHub ↗

Nano 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](references/model_capabilities.md): Comparison of Gemini 2.5 vs 3 Pro, resolutions, and token costs.
  • [Image Generation](references/image_generation.md): Text-to-Image, Interleaved Text/Image.
  • [Image Editing](references/image_editing.md): Subject Customization, Style Transfer, Multi-turn Editing.
  • [Thinking Process](references/thinking_process.md): Understanding thoughts and signatures (Gemini 3 Pro).
  • [Recipes](references/recipes.md): Extensive collection of examples (Logos, Stickers, Mockups, Comics, etc.).
  • [Source Code](references/source_code.md): 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, supports 2K and 4K resolution, 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'])
)

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.