Selective Image Inpainting and Editing

Modify specific parts of an image without regenerating the entire composition.

Prompt · 3 variables

I want to modify only a specific part of the uploaded image. The target area to modify is: {{target_area}}. I want to change it to: {{desired_change}}. Please write an English image editing/inpainting prompt that modifies only that specific spot rather than regenerating the entire image.

Please format the result into three lines of English: Line 1: A precise sentence indicating the exact area/object to modify. Line 2: A descriptive sentence specifying what to add or replace in that spot. Line 3: A detailed list of elements, styles, lighting, and composition that must remain strictly unchanged. Below these three lines, provide a brief two-line summary explaining what is modified and what is preserved.

In Line 3, explicitly retain the art style, lighting direction, composition, and color palette described in the original image description below. Do not introduce new objects or people not mentioned in the original, and do not invent narratives or unprompted backgrounds. Do not include real people, trademarks, or logos. If the request appears to require more than one modification, isolate them into single-step iterations: apply only the first modification in this prompt, and list subsequent changes below as sequential next steps.

Original Image Description: """ {{original_description}} """

Copy, then paste here · ChatGPT and Claude open with the prompt filled in Open in ChatGPT ↗Open in Claude ↗Open in Gemini ↗ Edit in builder Download classroom card

Why it is written this way

Task
I want to modify only a specific part of the uploaded image. The target area to modify is: {{target_area}}. I want to change it to: {{desired_change}}. Please write an English image editing/inpainting prompt that modifies only that specific spot rather than regenerating the entire image.
Format
Please format the result into three lines of English: Line 1: A precise sentence indicating the exact area/object to modify. Line 2: A descriptive sentence specifying what to add or replace in that spot. Line 3: A detailed list of elements, styles, lighting, and composition that must remain strictly unchanged. Below these three lines, provide a brief two-line summary explaining what is modified and what is preserved.
Constraints
In Line 3, explicitly retain the art style, lighting direction, composition, and color palette described in the original image description below. Do not introduce new objects or people not mentioned in the original, and do not invent narratives or unprompted backgrounds. Do not include real people, trademarks, or logos. If the request appears to require more than one modification, isolate them into single-step iterations: apply only the first modification in this prompt, and list subsequent changes below as sequential next steps.
Input
Original Image Description: """ {{original_description}} """

When asking an AI to edit an image, simply typing "change only this part" often fails. Without explicit boundaries, generative models do not know what counts as background versus foreground, and end up regenerating the entire scene from scratch—destroying the original lighting, framing, and mood.

The Task section establishes strict operational boundaries. Separating the target area from the desired change clarifies that this is an inpainting task, not a full redraw. The structured three-line format ensures clarity, with the third line being the most vital: without explicit negative constraints and preservation instructions, no tool will keep the surrounding scene intact.

The Constraints section specifies what must be locked down: style, lighting, composition, and color palette. These four elements degrade most frequently during inpainting. Enforcing a single-change-per-step rule prevents compounding errors, allowing you to isolate and adjust individual edits systematically.

Finally, enclosing the original description in triple quotation marks (""") prevents the AI from interpreting descriptive words (like "bright" or "plant") as new direct commands.

Unfamiliar terms? See Aha AI: prompt, output-format

Compared with a bad example

Common bad example

Change only the plant in the back of this image to some books.

A simple request like this typically outputs an entirely new image with altered desk positioning, different lighting angles, and subtle changes to the main subject. Once the original composition is lost, it is nearly impossible to recreate the exact initial aesthetic.

Variations

When changing only the background

When changing only the background

I want to replace only the background of the uploaded image while keeping the main subject completely intact. The new background should be: {{desired_change}}. The main subject's position, scale, angle, and cast shadow direction must be strictly preserved. Provide a one-line English prompt describing the background replacement, followed by a second English line detailing all elements to keep unchanged. If the lighting angle of the new background contradicts the existing subject's shadows, point out the discrepancy first and propose an aligned lighting setup.

Background swaps look unnatural if the light source conflicts with existing shadows. This variant explicitly locks shadow directions and asks the model to detect lighting mismatches.

When iterative edits drifted too far from the original

When iterative edits drifted too far from the original

After multiple rounds of edits, the image has drifted significantly from the original version. The original image was: {{original_description}}. The only change I actually want to retain right now is: {{desired_change}}. Please write an English prompt that resets back to the original base image and applies only this single intended modification. Summarize briefly which unintended changes crept in during previous revisions so they can be avoided.

Repeated inpainting accumulates unintended artifacts. This resets the canvas to the baseline and cleanly re-applies only the target change.

Model notes

Attach the reference image first before sending the prompt. For tools with brush-based inpainting, use the first line to guide your selection mask and enter the second and third lines into the fill prompt box.

Different tools handle inpainting differently: some use a brush/mask interface (e.g., Midjourney Vary Region, Photoshop Generative Fill), while others use text-guided selective editing. For brush-based tools, use Line 1 only to determine your selection mask, and paste Lines 2 and 3 into the fill prompt field.

Related prompts

Last updated 2026-09-02 · Found a mistake? Let us know