nano-banana-edit

Edit images via RunComfy CLI with identity-preserving background and object swaps.

12|2|Updated May 18, 2026
One-click install
npx skills add https://github.com/runcomfy-com/skills --skill nano-banana-edit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nano-banana-edit
Source: https://github.com/runcomfy-com/skills/tree/main/nano-banana-edit
Command: npx skills add https://github.com/runcomfy-com/skills --skill nano-banana-edit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of performing high-quality image-to-image edits (like background swaps or localized object changes) while preserving the subject’s identity across one or many reference images.

Core Features & Use Cases

  • Identity-preserving edits: Keep subject identity, pose, and key appearance traits stable while changing the intended elements.
  • Localized spatial targeting: Apply changes to specific regions using concrete spatial language (e.g., “left object only”, “upper-right corner”).
  • Multi-image batch consistency: Edit up to 20 input images per call with locked framing via consistent aspect ratio and resolution.
  • When to route vs siblings: Use this for Nano Banana 2 edit scenarios; prefer siblings for text-in-image edits (GPT Image 2 edit), single-ref precise local edits (Flux Kontext), or pure generation (Nano Banana 2 t2i).

Quick Start

Use the nano-banana-edit skill to swap the background of a portrait while keeping the subject identity unchanged by prompting: "Keep the subject identity, pose, and clothing unchanged; convert the background into a rainy neon cyberpunk street."

Frequently Asked Questions about nano-banana-edit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform identity-preserving image edits like background swaps?

To perform identity-preserving image edits, swap or modify specified visual elements using concrete spatial prompts while the system maintains the subject's identity. It processes up to 20 input images per call with controllable aspect ratio and resolution.

Can I edit specific regions of an image using spatial prompts?

Yes, you can apply changes to specific regions using concrete spatial language in your prompts, such as left object only or upper-right corner. This targets localized object edits without altering the rest of the image.

What is the maximum number of images I can batch edit consistently?

You can batch edit up to 20 input images per call with locked framing via consistent aspect ratio and resolution. This ensures multi-image batch consistency across all processed files.

Does this image-to-image tool require the RunComfy CLI to function?

Yes, performing these identity-preserving image-to-image edits requires invoking the RunComfy CLI. The CLI calls the google/nano-banana-2/edit endpoint using an input JSON schema containing your prompt and image_urls.

What is the best way to handle text-in-image edits or pure generation tasks?

For text-in-image edits or pure generation tasks, prefer sibling skills like GPT Image 2 edit or Nano Banana 2 t2i instead. Use this tool specifically for Nano Banana 2 edit scenarios requiring identity preservation.

Why should I not use this approach for single-reference precise local edits?

For single-reference precise local edits, prefer the Flux Kontext sibling skill. This tool is optimized for multi-image batch consistency and broad identity-preserving edits rather than single-ref localized changes.