nano-banana-edit

We need to translate the given text from English to Spanish, preserving the name "nano-banana-edit" and other technical terms. The text describes an agent skill for editing images with Google Nano Banana 2 on RunComfy. We must not include the name unless it appears in the source text, but it does appear: "nano-banana-edit" is in the first line? Actually the first line says "Name to preserve: nano-banana-edit" but that's instruction, not part of the text. The text itself contains "Nano Banana Edit's strengths" and "nano banana edit" etc. So we preserve those. Also preserve "RunComfy", "Google Nano Banana 2", "GPT Image 2 edit", "Flux Kontext", "Nano Banana 2 t2i", "runcomfy run google/nano-banana-2/edit", "RunComfy CLI". Translate the rest naturally. The text: "Edit images with Google Nano Banana 2 (image-to-image edit endpoint) on RunComfy.

npx skills add https://github.com/doany-ai/skills --skill nano-banana-edit

Nano Banana Edit — Pro Pack on RunComfy

runcomfy.com · Edit endpoint · GitHub

Google Nano Banana 2 Edit — the image-to-image edit endpoint of the Gemini-family flash-tier image model — hosted on the RunComfy Model API. Up to 20 input images per call for batch edits and multi-reference variation.

npx skills add agentspace-so/runcomfy-skills --skill nano-banana-edit -g

When to pick this model (vs siblings)

You wantUse
Preserve subject identity, swap background or clothingNano Banana Edit
Edit up to 20 images consistently in one batchNano Banana Edit
Localize edit to "X only" with spatial languageNano Banana Edit
Edit multilingual text inside the image (signs, labels)GPT Image 2 edit
Single ref + precise local edit ("she's now holding X")Flux Kontext
Generate a new image from scratchNano Banana 2 t2i (sibling skill)

If the user said "nano banana edit" / "edit with nano banana" explicitly, route here regardless.

Prerequisites

  1. RunComfy CLInpm i -g @runcomfy/cli
  2. RunComfy accountruncomfy login opens a browser device-code flow.
  3. CI / containers — set RUNCOMFY_TOKEN=<token> instead of runcomfy login.

Endpoints + input schema

google/nano-banana-2/edit

FieldTypeRequiredDefaultNotes
promptstringyesEdit instruction. Lead with preservation, end with the change.
image_urlsarrayyes1–20 publicly-fetchable HTTPS URLs.
number_of_imagesintno11–4 outputs per call.
seedintnoReproducibility.
aspect_ratioenumnoautoauto (follows input) or fixed ratios — lock for batch consistency.
resolutionenumno1K0.5K / 1K / 2K / 4K.
output_formatenumnopngpng / jpeg / webp.
safety_toleranceintno41 (strict) – 6 (permissive).
limit_generationsboolnoIf true, restricts each round to one output.
enable_web_searchboolnofalseWeb grounding (extra cost / latency).

How to invoke

Single-image background swap, identity preserved:

runcomfy run google/nano-banana-2/edit \
  --input '{
    "prompt": "Keep the subject identity, pose, and clothing unchanged. Convert the background into a rainy neon cyberpunk street.",
    "image_urls": ["https://.../portrait.jpg"]
  }' \
  --output-dir <absolute/path>

Batch edit with locked framing:

runcomfy run google/nano-banana-2/edit \
  --input '{
    "prompt": "Replace the watermark in the bottom-right with the text \"AURA\" in clean white sans-serif. Keep everything else exactly as in the input.",
    "image_urls": ["https://.../sku-1.jpg", "https://.../sku-2.jpg", "https://.../sku-3.jpg"],
    "aspect_ratio": "1:1",
    "resolution": "1K"
  }' \
  --output-dir <absolute/path>

Targeted spatial edit ("left object only"):

runcomfy run google/nano-banana-2/edit \
  --input '{
    "prompt": "Remove the leftmost object only. Keep the right two objects, the table, and the lighting unchanged.",
    "image_urls": ["https://.../still-life.jpg"]
  }' \
  --output-dir <absolute/path>

Prompting — what actually works

Preservation first, change last. Always lead with "Keep [identity / pose / clothing / brand / framing] unchanged." Then state the change in one clean sentence. Models honor what's stated up front; tail-end preservations get ignored.

Localize with spatial language. "background only", "the left object", "the upper-right corner", "above the headline" — concrete spatial scopes are honored. "make it more X" is vague and drifts.

Batch consistency — when editing a series, lock aspect_ratio and resolution. Use the same prompt grammar across the batch so each output reads as a sibling, not a remix.

Iterate small. If a one-pass edit drifts, split into two: pass 1 changes background only, pass 2 swaps the subject's outfit. Cleaner edits, same total cost (assuming similar resolution).

Multi-image variation — pass up to 20 inputs to get a coherent batch. Useful for SKU galleries, A/B testing, character sheet variations.

Anti-patterns:

  • Long compound instructions ("change A and B and C and D") — drift increases per added scope.
  • Edit instructions written in passive voice ("the background should be changed") — be imperative.
  • Missing preservation goals — model will subtly rewrite the face / brand.
  • Aspect ratios that don't match input — causes crops or stretches.

Where it shines

Use caseWhy Nano Banana Edit
SKU gallery — same product on different backgroundsBatch of 20, identity-preserved, framing locked
Influencer / spokesperson background swapsStrong identity preservation across edits
Localized object removal / additionSpatial language honored
A/B variants for ad creativeSeed lock + multiple number_of_images
Brand-asset relocalizationSame composition with text / palette swap

Sample prompts (verified to produce strong results)

Background swap (page example):

Keep the subject identity unchanged. Convert the background into a rainy
neon cyberpunk street.

Targeted text replacement:

Keep the bottle, label, and lighting exactly as in the input.
Replace only the brand text on the label from "ALPHA" to "AURA",
same font weight, centered, white on black.

Multi-image batch consistency:

For each input image: keep the subject's pose and identity unchanged.
Convert the background to a soft warm-grey studio sweep with subtle
floor shadow. Center the subject at the same fraction of frame as the
input.

Limitations

  • 1–20 input images per call — the first is treated as primary; the rest provide auxiliary cues.
  • 1–4 outputs per call.
  • Long compound prompts drift — split into multiple passes.
  • Web search adds latency + cost — only enable on demand.
  • For multilingual in-image text edits, GPT Image 2 edit wins.

Exit codes

codemeaning
0success
64bad CLI args
65bad input JSON / schema mismatch
69upstream 5xx
75retryable: timeout / 429
77not signed in or token rejected

Full reference: docs.runcomfy.com/cli/troubleshooting.

How it works

The skill invokes runcomfy run google/nano-banana-2/edit with a JSON body matching the schema. The CLI POSTs to https://model-api.runcomfy.net/v1/models/google/nano-banana-2/edit, polls the request, fetches the result, and downloads any .runcomfy.net/.runcomfy.com URL into --output-dir. Ctrl-C cancels the remote request before exit.

Security & Privacy

  • Token storage: runcomfy login writes the API token to ~/.config/runcomfy/token.json with mode 0600 (owner-only read/write). Set RUNCOMFY_TOKEN env var to bypass the file entirely in CI / containers.
  • Input boundary: the user prompt is passed as a JSON string to the CLI via --input. The CLI does NOT shell-expand the prompt; it transmits the JSON body directly to the Model API over HTTPS. No shell injection surface from prompt content.
  • Third-party content: image / mask / video URLs you pass are fetched by the RunComfy model server, not by the CLI on your machine. Treat external URLs as untrusted; image-based prompt injection is a known risk for any image-edit / video-edit model.
  • Outbound endpoints: only model-api.runcomfy.net (request submission) and *.runcomfy.net / *.runcomfy.com (download whitelist for generated outputs). No telemetry, no callbacks.
  • Generated-file size cap: the CLI aborts any single download > 2 GiB to prevent disk-fill from a malicious or runaway model output.

Más skills de doany-ai

image-edit
doany-ai
Editar imágenes en RunComfy: esta habilidad es un enrutador inteligente que empareja la intención del usuario con el modelo de edición adecuado en el catálogo de RunComfy. Selecciona Nano Banana Edit (lote de hasta 20, con preservación de identidad por defecto), OpenAI GPT Image 2 Edit (reescritura de texto en imagen multilingüe, composición multirreferencia, precisión de diseño), Flux Kontext Pro (edición local de alta fidelidad con una sola referencia) o Z-Image Turbo Inpaint (edición precisa de región guiada por máscara). Agrupa los patrones de indicaciones documentados de cada modelo para que la habilidad obtenga...
creativeimagemedia
seedance-v2
doany-ai
We need to translate the given text from English to Spanish. The text is a description of an agent skill for generating video using ByteDance Seedance 2.0 Pro on RunComfy. We must preserve the name "seedance-v2" and other technical terms like "ByteDance Seedance 2.0 Pro", "RunComfy", "HappyHorse 1.0", "Wan 2.7", "Kling", "CLI", etc. Also preserve numbers, URLs, and protocol names. Do not add any extra commentary or labels. The translation should be natural Spanish. The text inside <text> is: "Generate cinematic short-form video with ByteDance Seedance 2.0 Pro on RunComfy. Documents Seedance 2.0 Pro's strengths (multi-modal references — up to 9 images, 3 videos, 3 audio — synchronized in-pass audio with natural lip-sync, cinematic motion refinement), the 4–15s duration schema, and when to route to HappyHorse 1.0
videocreativemedia
kling-3-0
doany-ai
Generación de video Kling 3.0 en RunComfy. Kling 3.0 (también llamado Kling V3.0) es el modelo de video multishot de tercera generación de Kuaishou Technology, con audio sincronizado nativo e identidad de personaje consistente entre tomas. Esta habilidad cubre los seis endpoints de Kling 3.0, abarcando tres niveles de renderizado (Standard, Pro, 4K) y dos modos (texto a video, imagen a video). Ejecuta runcomfy run kling/kling-3.0/ / a través de la CLI local de RunComfy. Se activa con "kling", "kling 3.0", "kling v3", "kling pro",...
videocreativemedia
face-swap
doany-ai
Swap a face / character into video or images on RunComfy via the `runcomfy` CLI. Routes across community Wan 2-2 Animate (audio-driven character animation + identity swap), GPT Image 2 Edit (single-shot precise face swap on still images via reference composition), Nano Banana Edit (batch identity-preserving swap), Flux Kontext (single-ref high-fidelity local face edit), and Kling 2-6 Motion Control Pro (transfer motion from one performance onto a target character). Picks the right model for...
creativevideoimage
video-outpainting
doany-ai
We need to translate the given text from English to Spanish. The text describes a video outpainting skill. We must preserve the name "video-outpainting" but it's not in the text; the text mentions "video outpainting" and "video outpainting" as terms. The instruction says: "Do not include the name unless it appears in the source text." The name "video-outpainting" does not appear in the source text; only "video outpainting" (without hyphen) appears. So we should not add the hyphenated version. We translate the text inside <text> only. We need to preserve product names, protocol names, URLs, numbers, technical terms. "RunComfy", "runcomfy CLI", "Wan 2-7 edit-video", "ComfyUI" are proper names/technical terms, keep as is. "9:16", "16:9" are numbers/ratios, keep. "hero delivery" might be a term, but we can translate as "entrega del héroe
videocreativemedia
ai-avatar-video
doany-ai
Create AI avatar, talking-head, and lip-sync videos on RunComfy via the `runcomfy` CLI. Routes across ByteDance OmniHuman (audio-driven full-body avatar), Wan-AI Wan 2-7 (audio-driven mouth sync via `audio_url` on a portrait), HappyHorse 1.0 (Arena #1 t2v / i2v with in-pass audio), and Seedance v2 Pro (multi-modal cinematic with reference audio + reference subject). Picks the right model for the user's actual intent — UGC voiceover, virtual presenter, dubbed product demo, lip-synced...
videocreativemedia
flux-kontext
doany-ai
Edita imágenes con Flux 1 Kontext Pro (el modelo de edición local precisa de imágenes de Black Forest Labs) en RunComfy — incluye los patrones de prompting documentados del modelo para que la habilidad obtenga resultados más precisos que un prompting ingenuo contra el mismo modelo. Documenta las fortalezas de Flux Kontext (ediciones locales precisas con una sola referencia, fuerte control de prompting, salidas consistentes de alta fidelidad), el esquema (una sola imagen + prompt), y cuándo redirigir a Nano Banana Edit / GPT Image 2 edit / Flux 2 Klein en su lugar. Llama...
creativeimagedocument
relight
doany-ai
Relight a still image — change the lighting setup, color temperature, direction, or mood — on RunComfy via the `runcomfy` CLI. Routes to Qwen Edit 2509's dedicated `relight` LoRA endpoint for purpose-built relighting, with fallback to identity-preserving edit endpoints (Nano Banana 2 Edit, GPT Image 2 Edit, FLUX Kontext Pro) when prose lighting language is enough. Use for product relighting (studio softbox → window light), portrait mood shift (overcast → golden hour), or color-grade change....
creativeimagemedia