All skills
cnemri avatar

/nano-banana-build

@ce49e83

Generate and edit high-quality images using Gemini 2.5 Flash Image and Gemini 3 Pro Image (Nano Banana). Supports Text-to-Image, Style Transfer, Virtual Try-On, and Character Consistency.

Use this Skill: https://skilld.dev/gh/cnemri/google-genai-skills/nano-banana-build

This session only. Nothing lands on disk.

SKILL.md

≈52 tokens always: the name and description. ≈475 when used: this file. ≈3.3k more on demand in 6 files.

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: 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, 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'])
)

Source: SKILL.md on GitHub

1 warning10d4 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    The skill is a comprehensive collection of reference documentation and code recipes for using Google's Gemini image models through the official Python SDK. It provides guidance on image generation, editing, and model comparison, referencing official Google source code repositories.

  • Socket10d

    No alerts

  • Snyk10d

    Risk: LOW · No issues

  • Runlayer7mo

    7/7 files flagged

Signed by skilld at ce49e83. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 8 months ago

README badge

README badge for cnemri/google-genai-skills/nano-banana-build