Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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 ru
.claude/skills/aiskillstore-gpt-image-edit/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 263% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 161% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 365% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 118% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 48% | 0% |
runcomfy.com · Edit endpoint · Text-to-image sibling · GitHub
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).
bashnpx skills add agentspace-so/runcomfy-skills --skill gpt-image-edit -g
| 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 skill | | Batch SKU galleries with stable identity | Nano Banana Edit |
npm i -g @runcomfy/cliruncomfy login opens a browser device-code flow.RUNCOMFY_TOKEN=<token> instead of runcomfy login.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.
Single-ref preservation edit:
bashruncomfy 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 <absolute/path>
Multilingual text rewrite (preserve everything except the headline):
bashruncomfy 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 <absolute/path>
Multi-ref composition:
bashruncomfy 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 <absolute/path>
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:
size outside the 3 fixed values + auto → 422.| 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 |
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 unchangedMultilingual 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.size: 3 fixed values + auto — anything else 422s.images: up to 10 — first is primary, rest are auxiliary cues.| 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.
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.
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. 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.model-api.runcomfy.net (request submission) and *.runcomfy.net / *.runcomfy.com (download whitelist for generated outputs). No telemetry, no callbacks.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 4,827 | 3,878 | -20% | 1 | 1 | 0% | 869 | 3,157 | +263% | 0 | 0 | — |
case-02 | fail→pass | 7,190 | 4,978 | -31% | 1 | 1 | 0% | 1,272 | 3,319 | +161% | 0 | 0 | — |
case-03 | fail→pass | 3,771 | 4,253 | +13% | 1 | 1 | 0% | 713 | 3,318 | +365% | 0 | 0 | — |
case-04 | fail→pass | 6,961 | 3,367 | -52% | 1 | 1 | 0% | 1,344 | 2,926 | +118% | 0 | 0 | — |
case-05 | fail→pass | 11,387 | 2,641 | -77% | 1 | 1 | 0% | 1,882 | 2,787 | +48% | 0 | 0 | — |
case-06 | fail→pass | 8,752 | 1,723 | -80% | 1 | 1 | 0% | 1,423 | 2,653 | +86% | 0 | 0 | — |
case-07 | fail→pass | 6,014 | 4,070 | -32% | 1 | 1 | 0% | 1,089 | 3,169 | +191% | 0 | 0 | — |
case-08 | fail→pass | 5,019 | 3,062 | -39% | 1 | 1 | 0% | 965 | 2,984 | +209% | 0 | 0 | — |
case-09 | fail→pass | 9,798 | 3,401 | -65% | 1 | 1 | 0% | 1,940 | 3,062 | +58% | 0 | 0 | — |
case-10 | fail→pass | 6,842 | 2,635 | -61% | 1 | 1 | 0% | 1,132 | 2,833 | +150% | 0 | 0 | — |
case-11 | pass→pass | 5,535 | 2,404 | -57% | 1 | 1 | 0% | 860 | 2,774 | +223% | 0 | 0 | — |
case-12 | pass→pass | 8,439 | 4,021 | -52% | 1 | 1 | 0% | 1,524 | 3,158 | +107% | 0 | 0 | — |
case-13 | fail→pass | 11,597 | 5,032 | -57% | 1 | 1 | 0% | 2,056 | 3,276 | +59% | 0 | 0 | — |
case-18 | fail→pass | 8,194 | 1,851 | -77% | 1 | 1 | 0% | 1,451 | 2,689 | +85% | 0 | 0 | — |
case-14 | fail→pass | 6,387 | 1,415 | -78% | 1 | 1 | 0% | 1,111 | 2,590 | +133% | 0 | 0 | — |
case-15 | pass→pass | 10,482 | 2,226 | -79% | 1 | 1 | 0% | 1,801 | 2,696 | +50% | 0 | 0 | — |
case-16 | pass→pass | 10,678 | 4,218 | -60% | 1 | 1 | 0% | 1,784 | 3,209 | +80% | 0 | 0 | — |
case-17 | pass→pass | 4,634 | 4,609 | -1% | 1 | 1 | 0% | 887 | 3,226 | +264% | 0 | 0 | — |
case-19 | fail→pass | 9,817 | 1,506 | -85% | 1 | 1 | 0% | 1,580 | 2,552 | +62% | 0 | 0 | — |
case-20 | fail→pass | 11,726 | 3,707 | -68% | 1 | 1 | 0% | 1,826 | 3,017 | +65% | 0 | 0 | — |
case-21 | fail→pass | 10,950 | 3,577 | -67% | 1 | 1 | 0% | 1,733 | 2,971 | +71% | 0 | 0 | — |
case-22 | pass→pass | 9,924 | 4,163 | -58% | 1 | 1 | 0% | 1,671 | 3,115 | +86% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +73 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.