Loading...
Loading...
Compare original and translation side by side
npx skills add agentspace-so/runcomfy-skills --skill nano-banana-edit -gnpx skills add agentspace-so/runcomfy-skills --skill nano-banana-edit -g| You want | Use |
|---|---|
| Preserve subject identity, swap background or clothing | Nano Banana Edit |
| Edit up to 20 images consistently in one batch | Nano Banana Edit |
| Localize edit to "X only" with spatial language | Nano 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 scratch | Nano Banana 2 t2i (sibling skill) |
| 需求场景 | 推荐使用 |
|---|---|
| 保留主体身份、替换背景或服装 | Nano Banana Edit |
| 一次性批量编辑最多20张图片并保持一致性 | Nano Banana Edit |
| 使用空间语言将编辑定位到“仅X区域” | Nano Banana Edit |
| 编辑图像中的多语言文本(标识、标签) | GPT Image 2 edit |
| 单参考图+精准局部编辑(“让她手持X”) | Flux Kontext |
| 从头生成新图像 | Nano Banana 2 t2i(同系列工具) |
npm i -g @runcomfy/cliruncomfy loginRUNCOMFY_TOKEN=<token>runcomfy loginnpm i -g @runcomfy/cliruncomfy loginRUNCOMFY_TOKEN=<token>runcomfy logingoogle/nano-banana-2/editgoogle/nano-banana-2/edit| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| string | yes | — | Edit instruction. Lead with preservation, end with the change. |
| array | yes | — | 1–20 publicly-fetchable HTTPS URLs. |
| int | no | 1 | 1–4 outputs per call. |
| int | no | — | Reproducibility. |
| enum | no | | |
| enum | no | | |
| enum | no | | |
| int | no | 4 | 1 (strict) – 6 (permissive). |
| bool | no | — | If true, restricts each round to one output. |
| bool | no | false | Web grounding (extra cost / latency). |
| 字段 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| string | 是 | — | 编辑指令。先说明需保留的内容,再描述修改需求。 |
| array | 是 | — | 1–20个可公开访问的HTTPS图片链接。 |
| int | 否 | 1 | 每次调用生成1–4张输出图片。 |
| int | 否 | — | 用于生成结果的可复现性。 |
| enum | 否 | | |
| enum | 否 | | |
| enum | 否 | | |
| int | 否 | 4 | 1(严格)– 6(宽松)。 |
| bool | 否 | — | 如果设为true,每轮仅生成一张输出图片。 |
| bool | 否 | false | 基于网络信息生成(会增加成本和延迟)。 |
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>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>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>runcomfy run google/nano-banana-2/edit \
--input '{
"prompt": "保留主体的身份、姿势和服装不变。将背景转换为雨夜中的霓虹赛博朋克街道。",
"image_urls": ["https://.../portrait.jpg"]
}' \
--output-dir <absolute/path>runcomfy run google/nano-banana-2/edit \
--input '{
"prompt": "将右下角的水印替换为干净的白色无衬线字体\"AURA\"。其余内容完全保持与输入一致。",
"image_urls": ["https://.../sku-1.jpg", "https://.../sku-2.jpg", "https://.../sku-3.jpg"],
"aspect_ratio": "1:1",
"resolution": "1K"
}' \
--output-dir <absolute/path>runcomfy run google/nano-banana-2/edit \
--input '{
"prompt": "仅移除最左侧的物体。保留右侧两个物体、桌子和光线不变。",
"image_urls": ["https://.../still-life.jpg"]
}' \
--output-dir <absolute/path>"Keep [identity / pose / clothing / brand / framing] unchanged."aspect_ratioresolution"保留[身份/姿势/服装/品牌/画幅]不变。"aspect_ratioresolution| Use case | Why Nano Banana Edit |
|---|---|
| SKU gallery — same product on different backgrounds | Batch of 20, identity-preserved, framing locked |
| Influencer / spokesperson background swaps | Strong identity preservation across edits |
| Localized object removal / addition | Spatial language honored |
| A/B variants for ad creative | Seed lock + multiple |
| Brand-asset relocalization | Same composition with text / palette swap |
| 使用场景 | 选择Nano Banana Edit的原因 |
|---|---|
| SKU图库——同款产品搭配不同背景 | 支持20张批量处理、保留主体身份、锁定画幅 |
| 网红/代言人背景替换 | 多次编辑中能很好地保留主体身份 |
| 局部物体移除/添加 | 可识别空间语言定位编辑范围 |
| 广告创意A/B变体 | 支持种子锁定+多输出数量设置 |
| 品牌资产本地化调整 | 保留构图,仅替换文字/配色 |
Keep the subject identity unchanged. Convert the background into a rainy
neon cyberpunk street.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.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.保留主体身份不变。将背景转换为雨夜中的霓虹赛博朋克街道。完全保留瓶子、标签和光线与输入一致。仅将标签上的品牌文字从"ALPHA"替换为"AURA",保持相同字体粗细、居中对齐、黑底白字。针对每张输入图片:保留主体的姿势和身份不变。将背景转换为柔和的暖灰色工作室背景,并添加微弱的地面阴影。主体在画面中的位置比例与输入图片保持一致。| code | meaning |
|---|---|
| 0 | success |
| 64 | bad CLI args |
| 65 | bad input JSON / schema mismatch |
| 69 | upstream 5xx |
| 75 | retryable: timeout / 429 |
| 77 | not signed in or token rejected |
| 代码 | 含义 |
|---|---|
| 0 | 成功 |
| 64 | CLI参数错误 |
| 65 | 输入JSON错误/schema不匹配 |
| 69 | 上游服务5xx错误 |
| 75 | 可重试:超时/429限流 |
| 77 | 未登录或令牌被拒绝 |
runcomfy run google/nano-banana-2/edithttps://model-api.runcomfy.net/v1/models/google/nano-banana-2/edit.runcomfy.net.runcomfy.com--output-dirCtrl-Cruncomfy run google/nano-banana-2/edithttps://model-api.runcomfy.net/v1/models/google/nano-banana-2/edit.runcomfy.net.runcomfy.com--output-dirCtrl-Cruncomfy login~/.config/runcomfy/token.jsonRUNCOMFY_TOKEN--inputmodel-api.runcomfy.net*.runcomfy.net*.runcomfy.comruncomfy login~/.config/runcomfy/token.jsonRUNCOMFY_TOKEN--inputmodel-api.runcomfy.net*.runcomfy.net*.runcomfy.com