跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 gpt-image-edit

Gpt Image Edit

在 RunComfy 上用 OpenAI GPT Image 2 (ChatGPT Images 2.0的`/edit' end point) 来编辑图像——与模型的被记录的提示模式相捆绑,因此技能的输出比针对同一种模型的天真更尖锐. GPT 文档 图像编辑的优点(保存语言,多语种成像文字编辑,多参考可达10个图像,布局/打字精度),计划,以及何时去Nano Banana Edit / Flux Kontext / GPT Image 2 t2i取而代之. 通过当地的RunComfy CLI呼叫`runcomfy run openai/gpt-image-2/edit'。 在"gpt图像编辑","gpt-image-edit","chatgpt图像编辑","用gpt图像2编辑"上进行触发,或任何明确要求用这个模型编辑.

420784 安装量

官方网址:作者主页

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

在 RunComfy 上用 OpenAI GPT Image 2 (ChatGPT Images 2.0的`/edit' end point) 来编辑图像——与模型的被记录的提示模式相捆绑,因此技能的输出比针对同一种模型的天真更尖锐. GPT 文档 图像编辑的优点(保存语言,多语种成像文字编辑,多参考可达10个图像,布局/打字精度),计划,以及何时去Nano Banana Edit / Flux Kontext / GPT Image 2 t2i取而代之. 通过当地的RunComfy CLI呼叫`runcomfy run openai/gpt-image-2/edit'。 在"gpt图像编辑","gpt-image-edit","chatgpt图像编辑","用gpt图像2编辑"上进行触发,或任何明确要求用这个模型编辑.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:GPT Image Edit — Pro Pack on RunComfy、When to pick this model (vs siblings)、Prerequisites、Endpoints + input schema、`openai/gpt-image-2/edit`、How to invoke。 其中含规范建议的小节:边界情况。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Edit images with OpenAI GPT Image 2 (the `/edit` endpoint of ChatGPT Images 2.0) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents GPT Image Edit's strengths (preservation language, multilingual in-image text editing, multi-reference up to 10 images, layout / typography precision), the schema, and when to route to Nano Banana Edit / Flux Kontext / GPT Image 2 t2i instead. Calls `runcomfy run openai/gpt-image-2/edit` through the local RunComfy CLI. Triggers on "gpt image edit", "gpt-image-edit", "chatgpt image edit", "edit with gpt image 2", or any explicit ask to edit with this model.

GPT Image Edit — Pro Pack on RunComfyWhen to pick this model (vs siblings)PrerequisitesEndpoints + input schema`openai/gpt-image-2/edit`How to invokePrompting — what actually worksWhere it shinesSample prompts (verified to produce strong results)LimitationsExit codesHow it works

· 许可:MIT

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
gpt-image-edit
description
Edit images with OpenAI GPT Image 2 (the `/edit` endpoint of ChatGPT Images 2.0) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents GPT Image Edit's strengths (preservation language, multilingual in-image text editing, multi-reference up to 10 images, layout / typography precision), the schema, and when to route to Nano Banana Edit / Flux Kontext / GPT Image 2 t2i instead. Calls `runcomfy run openai/gpt-image-2/edit` through the local RunComfy CLI. Triggers on "gpt image edit", "gpt-image-edit", "chatgpt image edit", "edit with gpt image 2", or any explicit ask to edit with this model.
许可
MIT
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「gpt-image-edit」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-1a4350eabf88c485-Gpt-Image-Edit.html
请存为 .cursor/skills/gpt-image-edit/SKILL.md 或 .claude/skills/gpt-image-edit/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/prime-skills/runcomfy-agent-skills' --list

npx skills add 'https://github.com/prime-skills/runcomfy-agent-skills' --skill 'gpt-image-edit'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: gpt-image-edit displayName: "GPT Image Edit — Pro Pack on RunComfy" description: > Edit images with OpenAI GPT Image 2 (the `/edit` endpoint of ChatGPT Images 2.0) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents GPT Image Edit's strengths (preservation language, multilingual in-image text editing, multi-reference up to 10 images, layout / typography precision), the schema, and when to route to Nano Banana Edit / Flux Kontext / GPT Image 2 t2i instead. Calls `runcomfy run openai/gpt-image-2/edit` through the local RunComfy CLI. Triggers on "gpt image edit", "gpt-image-edit", "chatgpt image edit", "edit with gpt image 2", or any explicit ask to edit with this model. homepage: https://www.runcomfy.com license: MIT --- # GPT Image Edit — Pro Pack on RunComfy [runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=gpt-image-edit) · [Edit endpoint](https://www.runcomfy.com/models/openai/gpt-image-2/edit?utm_source=skills.sh&utm_medium=skill&utm_campaign=gpt-image-edit) · [Text-to-image sibling](https://www.runcomfy.com/models/openai/gpt-image-2/text-to-image?utm_source=skills.sh&utm_medium=skill&utm_campaign=gpt-image-edit) · [GitHub](https://github.com/agentspace-so/runcomfy-skills/tree/main/gpt-image-edit) OpenAI **GPT Image 2 — `/edit` endpoint** (ChatGPT Images 2.0 image-to-image) on the **RunComfy Model API**. Strongest in its class at preserving identity through targeted edits and rewriting embedded text in any script (Latin, kana, CJK, Cyrillic, Arabic). ```bash npx skills add agentspace-so/runcomfy-skills --skill gpt-image-edit -g ``` ## When to pick this model (vs siblings) | You want | Use | |---|---| | Edit multilingual / embedded text in image | **GPT Image Edit** | | Identity preservation through translated headline variants | **GPT Image Edit** | | Layout-precise edit (move headline, swap CTA, etc.) | **GPT Image Edit** | | Up to 10 reference images | **GPT Image Edit** | | Batch up to 20 images consistently | Nano Banana Edit | | Single-shot precise local edit, source-fidelity-first | Flux Kontext | | Generate from scratch with GPT Image 2 | sibling [`gpt-image-2`](../gpt-image-2) skill | | Batch SKU galleries with stable identity | Nano Banana Edit | ## Prerequisites 1. **RunComfy CLI** — `npm i -g @runcomfy/cli` 2. **RunComfy account** — `runcomfy login` opens a browser device-code flow. 3. **CI / containers** — set `RUNCOMFY_TOKEN=` instead of `runcomfy login`. ## Endpoints + input schema ### `openai/gpt-image-2/edit` | Field | Type | Required | Default | Notes | |---|---|---|---|---| | `prompt` | string | yes | — | Edit instruction. Lead with preservation, end with the change. | | `images` | string[] | yes | — | **Up to 10** publicly-fetchable HTTPS URLs. First is primary; rest are auxiliary. | | `size` | enum | no | `auto` | `auto` (preserve input), `1024_1024` (1:1), `1024_1536` (2:3 portrait), `1536_1024` (3:2 landscape). | `size=auto` preserves the input ratio — strongly recommended unless the edit explicitly changes framing. ## How to invoke **Single-ref preservation edit:** ```bash 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 ``` **Multilingual text rewrite (preserve everything except the headline):** ```bash 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 ``` **Multi-ref composition:** ```bash 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 ``` ## Prompting — what actually works **Lead with preservation goals.** Always: `"Keep [face / pose / clothing / brand / framing] unchanged."` Then state the change. The model honors what's stated up front. **Multilingual text — quote the characters, name the script.** `"the headline reads \"コーヒー\" in bold Japanese kana"`, `"the label says \"АРОМА\" in Cyrillic, white on black"`, `"the right-margin caption reads \"تخفيض\" in Arabic right-to-left"`. Don't paraphrase — quote. **Directional language for spatial edits.** Concrete spatial scopes work: `"move the headline from top-right to bottom-center"`, `"remove the leftmost object only"`, `"replace the watermark in the bottom-right corner"`. **Multi-ref numbering.** When passing multiple `images`, refer to them by number: `"subject from image 1, lighting from image 2, color palette from image 3"`. The model routes cues correctly. **Use `size: "auto"` to preserve input ratio.** Only override when the edit explicitly changes framing (e.g. cropping a 16:9 to 1:1). **Anti-patterns:** - Long compound edit instructions ("change A and B and C and D") → drift increases per added scope. - Missing preservation goals → model subtly rewrites the face / brand / framing. - Paraphrasing in-image text instead of quoting it → text comes out different. - Asking for `size` outside the 3 fixed values + `auto` → 422. ## Where it shines | Use case | Why GPT Image Edit | |---|---| | **Multilingual ad localization** | One source asset → many language variants of the same headline | | **Brand-safe headline / CTA swaps** | Layout precision + preservation language hold the rest stable | | **Multi-ref composition (subject from one, scene from another)** | Numbered refs route cues correctly | | **Layout-precise repositioning** | Directional language ("top-right to bottom-center") honored | | **Identity preservation across signage edits** | Strongest in class for face / brand preservation through targeted edits | ## Sample prompts (verified to produce strong results) **Background swap with full preservation (page example):** ``` Turn the background into a bright minimal white-to-soft-gray studio sweep with gentle floor shadow; add a large headline in-image that reads "OPEN STUDIO" in a bold clean sans-serif, high contrast, centered; keep the main person or product, pose, and face identity unchanged ``` **Multilingual variant:** ``` Keep the photograph, layout, lighting, 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. ``` **Multi-ref composition:** ``` Compose subject from image 1 into the kitchen from image 2. Match the warm window light and color palette of image 2. Keep subject identity (face, pose, clothing) from image 1 unchanged. ``` ## Limitations - **`size`: 3 fixed values + `auto`** — anything else 422s. - **`images`: up to 10** — first is primary, rest are auxiliary cues. - **Long compound prompts drift** — split into multiple passes when needed. - **For batch consistency across many SKU images, Nano Banana Edit (up to 20) is better.** - **Photorealism on portraits** — Nano Banana Pro wins head-to-head. ## Exit codes | 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 | Full reference: [docs.runcomfy.com/cli/troubleshooting](https://docs.runcomfy.com/cli/troubleshooting?utm_source=skills.sh&utm_medium=skill&utm_campaign=gpt-image-edit). ## How it works The skill invokes `runcomfy run openai/gpt-image-2/edit` with a JSON body matching the schema. The CLI POSTs to `https://model-api.runcomfy.net/v1/models/openai/gpt-image-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.

相关技能

文档办公

Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

Nano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

Word / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

Baidu Search

使用Baidu AI搜索引擎(BDSE)搜索网页. 用于实时信息、文件或研究专题.