Prompting Qwen-Image-Edit for stable results

Dec 5, 2025

If an edit feels unpredictable, the instruction is usually too vague. The goal is to be explicit about what changes and what must stay the same. Below are four patterns that consistently improve stability.

Pattern 1: action + target + constraints

Say the action, the exact target, and the constraints in one sentence.

Example:

Replace the background with pure white, keep the product appearance, color, and details unchanged.

Why it works: the model can focus on a single action while preserving the rest.

Pattern 2: multi-step edits

Complex changes should be split into smaller steps to reduce drift.

Example:

  1. Change the background to a soft studio gray, keep the product unchanged.
  2. Replace the product material with brushed metal, keep the structure and lighting direction unchanged.

Pattern 3: text edits

Text edits need exact wording and layout constraints.

Example:

Change the title text "Spring Sale" to "Summer Sale", keep font style, size, color, and position unchanged.

Pattern 4: material swaps

Specify the material finish and lighting so the replacement looks natural.

Example:

Replace the material with matte black metal, keep engraving lines, shadows, and overall shape unchanged.

Quick checklist

  • Be specific about the part you want to change.
  • Restate constraints in every step.
  • Quote text to avoid ambiguity.
  • Split edits when the target is complex.

Use these patterns as building blocks, then adapt them to your own scene. The clearer the constraints, the more stable the results.

Qwen-Image Team

Qwen-Image Team