gpt-image-edit

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

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/brillianodhiya/VisionScript --skill gpt-image-edit-brillianodhiya
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gpt-image-edit
Source: https://github.com/brillianodhiya/VisionScript/tree/main/.agents/skills/gpt-image-edit
Command: npx skills add https://github.com/brillianodhiya/VisionScript --skill gpt-image-edit-brillianodhiya

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 instead of relying on naive prompting. ## Core Features & Use Cases - Preservation-first editing: Lead prompts with preservation goals (face, pose, brand, framing) so targeted changes don't alter the rest of the image. - Multilingual in-image text rewriting: Quote exact characters and name the script (Japanese kana, Cyrillic, Arabic, CJK) to swap headlines and labels across language variants. - Multi-reference composition: Pass up to 10 image URLs and reference them by number to combine subject, scene, lighting, and palette from different sources. - Use Case: Localize an ad poster into Japanese by keeping the photograph, layout, and brand mark unchanged while replacing only the headline with quoted kana text. ## Quick Start Ask the AI to edit an image with GPT Image 2 on RunComfy, for example: replace the background of this portrait URL with a soft grey studio sweep while keeping the person's face and pose 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 array of up to 10 HTTPS image URLs. Lead the prompt with preservation goals, then state the change, and pass an absolute --output-dir for the result.

GPT Image Edit vs Nano Banana Edit vs Flux Kontext for image editing?▼

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

How to rewrite text inside an image in Japanese or Arabic?▼

Quote the exact characters and name the script in the prompt, such as: the headline reads "コーヒー" in bold Japanese kana, same position and font weight. Do not paraphrase the text, or the output will differ from what you intended.

What image sizes does the GPT Image 2 edit endpoint support?▼

The size parameter accepts auto, 1024_1024 (1:1), 1024_1536 (2:3 portrait), and 1536_1024 (3:2 landscape). Use auto to preserve the input ratio; any other value returns a 422 error.

Why does my GPT Image edit change the face or brand mark?▼

Missing preservation goals cause the model to subtly rewrite faces, brands, or framing. Always start the prompt with explicit preservation language like "Keep the person's face, pose, and brand mark unchanged" before stating the edit.

What are the limitations of GPT Image Edit?▼

It supports only 3 fixed sizes plus auto, up to 10 input images, and long compound prompts drift across scopes. For batch consistency across many SKU images or portrait photorealism, Nano Banana Edit or Nano Banana Pro perform better.