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.

referencesimage_editing.md

≈517 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Image Editing

Nano Banana models support advanced image-to-image capabilities.

Subject Customization

Change the style or attributes of a subject while preserving its identity.

with open("dog.jpg", "rb") as f:
    image_bytes = f.read()

response = client.models.generate_content(
    model='gemini-2.5-flash-image',
    contents=[
        types.Part.from_bytes(data=image_bytes, mime_type="image/jpeg"),
        "Create a pencil sketch of this dog wearing a cowboy hat."
    ],
    config=types.GenerateContentConfig(response_modalities=["IMAGE"])
)

Style Transfer

Apply the style of one image to the content of another.

response = client.models.generate_content(
    model='gemini-2.5-flash-image',
    contents=[
        types.Part.from_uri(file_uri="gs://.../style_ref.png", mime_type="image/png"),
        "Using the concepts and colors from this image, generate a kitchen with the same aesthetic."
    ],
    config=types.GenerateContentConfig(response_modalities=["IMAGE"])
)

Multi-turn Editing (Chat)

Iteratively refine an image in a chat session.

chat = client.chats.create(
    model='gemini-2.5-flash-image',
    config=types.GenerateContentConfig(response_modalities=['TEXT', 'IMAGE'])
)

# First turn
response = chat.send_message("Create an image of a perfume bottle.")
image_data = response.candidates[0].content.parts[1].inline_data.data

# Second turn (pass previous image back)
response = chat.send_message([
    types.Part.from_bytes(data=image_data, mime_type="image/png"),
    "Make the bottle purple."
])

Multiple Reference Images

Combine elements from multiple images.

response = client.models.generate_content(
    model='gemini-3-pro-image-preview',
    contents=[
        types.Part.from_uri(file_uri="gs://.../person.jpg", mime_type="image/jpeg"),
        types.Part.from_uri(file_uri="gs://.../background.png", mime_type="image/png"),
        "Generate an image of the person from the first image standing in the background from the second 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