gpt-image-edit

Edit images with OpenAI GPT Image 2 via the RunComfy CLI.

12|2|Updated Aug 12, 2026
One-click install
npx skills add https://github.com/genmedia-labs/skills --skill gpt-image-edit-genmedia-labs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gpt-image-edit
Source: https://github.com/genmedia-labs/skills/tree/main/gpt-image-edit
Command: npx skills add https://github.com/genmedia-labs/skills --skill gpt-image-edit-genmedia-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @runcomfy/cli.

What problem does it solve? Editing images with AI models often produces drift: faces change, brand marks get rewritten, and in-image text comes out wrong. This Skill packages the documented prompting patterns for OpenAI GPT Image 2's /edit endpoint on RunComfy so edits preserve identity, layout, and multilingual text reliably. ## Core Features & Use Cases - Preservation-first editing: Lead prompts with preservation language to keep faces, poses, and brand marks unchanged while swapping backgrounds or objects. - Multilingual in-image text rewriting: Quote exact characters and name the script (Japanese kana, Cyrillic, Arabic, CJK) to replace headlines without altering layout. - Multi-reference composition: Pass up to 10 images and reference them by number to combine subjects, scenes, lighting, and color palettes. - Use Case: Localize one ad poster into Japanese, Arabic, and Russian variants by rewriting only the headline while keeping the photograph, layout, and brand mark identical. ## Quick Start Ask the agent to edit an image with GPT Image 2 on RunComfy, for example: replace the background of this product photo with a white studio sweep while keeping the product unchanged.

Frequently Asked Questions about gpt-image-edit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I edit an image with GPT Image 2 on RunComfy?▼

Run 'runcomfy run openai/gpt-image-2/edit' with a JSON input containing a prompt and an images array of HTTPS URLs. Lead the prompt with preservation goals like keeping the face and brand unchanged, then state the edit.

GPT Image Edit vs Nano Banana Edit vs Flux Kontext?▼

GPT Image Edit is strongest for multilingual in-image text, identity preservation, and layout-precise edits with up to 10 references. Nano Banana Edit handles batches up to 20 images, and Flux Kontext suits single-shot source-fidelity-first local edits.

How do I rewrite text inside an image in another language?▼

Quote the exact characters and name the script in the prompt, such as 'the headline reads "コーヒー" in bold Japanese kana'. Keep the rest of the image preserved by stating that layout, photograph, and brand mark stay unchanged.

How many reference images does GPT Image 2 edit support?▼

The images array accepts up to 10 publicly fetchable HTTPS URLs. The first image is primary and the rest are auxiliary; refer to them by number in the prompt, such as 'subject from image 1, lighting from image 2'.

Why does GPT Image Edit return a 422 error?▼

A 422 occurs when the size field is set to something other than auto, 1024_1024, 1024_1536, or 1536_1024. Use size auto to preserve the input ratio unless the edit explicitly changes framing.

When should I not use GPT Image Edit?▼

Avoid it for batch consistency across many SKU images, where Nano Banana Edit handles up to 20 images better, and for portrait photorealism, where Nano Banana Pro wins. Long compound edit prompts also drift, so split them into multiple passes.