运行时依赖
安装命令
点击复制技能文档
🎨 GPT Image Edit — Pro Pack 在 RunComfy runcomfy.com · docs · Edit endpoint · Text-to-image 兄弟模型 OpenAI GPT Image 2 — /edit 端点(ChatGPT Images 2.0 图生图)位于 RunComfy Model API。同类最强,能在针对性编辑中保留身份,并重写任意文字(拉丁、假名、CJK、西里尔、阿拉伯)。 何时选它(vs 兄弟模型) 你需要:
- 多语言/内嵌文字编辑 → GPT Image Edit ✓
- 身份保留(换标题变体) → GPT Image Edit ✓
- 布局精准编辑(移动标题、替换 CTA 等) → GPT Image Edit ✓
- 最多 10 张参考图 → GPT Image Edit ✓
- 批量 20 张图一致性 → GPT Image Edit ✓
Nano Banana Edit:单次精准局部编辑,保真优先 Flux Kontext:用 GPT Image 2 兄弟模型 gpt-image-2 skill 从零生成
前置条件 RunComfy CLI — npm i -g @runcomfy/cli RunComfy 账号 — runcomfy login 打开浏览器设备码流程 CI / 容器 — 设 RUNCOMFY_TOKEN= 代替 runcomfy login
端点 + 输入模式 openai/gpt-image-2/edit 字段 | 类型 | 必需 | 默认 | 说明 prompt | string | 是 | — | 编辑指令。先写保留,再写改动 images | string[] | 是 | — | 最多 10 张公开 HTTPS URL,首张为主图 size | enum | 否 | auto | auto(保持原比例)、1024_1024、1024_1536、1536_1024
调用示例 单图保留编辑: runcomfy run openai/gpt-image-2/edit \ --input '{ "prompt": "Keep the person'\''s face, pose, and brand mark unchanged. Replace the background with a soft warm-grey studio sweep and a gentle floor shadow.", "images": ["https://.../portrait.jpg"] }' \ --output-dir <绝对路径>
多语言文字重写(仅换标题): runcomfy run openai/gpt-image-2/edit \ --input '{ "prompt": "Keep the photograph, layout, and brand mark exactly as in the input. Replace only the in-image headline. The new headline reads \"今日のおすすめ\" in bold Japanese kana, same position and font weight as before.", "images": ["https://.../poster-en.jpg"] }' \ --output-dir <绝对路径>
多图合成: runcomfy run openai/gpt-image-2/edit \ --input '{ "prompt": "Compose subject from image 1 into the room from image 2. Match the lighting and color palette of image 2. Keep image 1 subject identity (face, pose, clothing) unchanged.", "images": ["https://.../subject.jpg", "https://.../room.jpg"] }' \ --output-dir <绝对路径>
提示技巧
- 先写保留目标,再写改动
- 多语言文本用引号并注明脚本
- 空间编辑用具体方位词
- 多图用编号引用
- size 用 auto 保持比例,除非主动裁切
高光场景
- 多语言广告本地化:一图多语标题
- 品牌安全标题/CTA 替换:布局精准+保留语言
- 多图合成:编号引用精准路由
- 标识身份保留:同类最强