Prompt Image editing Limited info

Gemini Image Edit: Replace One Object

Official Gemini example for semantic inpainting: swap only the blue sofa in a living-room photo for a brown leather chesterfield and keep everything else.

  • 🤖 Gemini
  • 🗂️ Image editing

Prompt by Google Developers Blog — Prompting Gemini 2.5 Flash Image · Original source (opens in a new tab)

Gemini Image Edit: Replace One Object — example image

The prompt

prompt
Using the provided image of a living room, change only the blue sofa to be a vintage, brown leather chesterfield sofa. Keep the rest of the room, including the pillows on the sofa and the lighting, unchanged.

What it is

The Google guide calls this semantic masking: you tell Gemini which object to change in words, and no mask is needed. Here the target is "only the blue sofa" in a living-room photo, and it becomes a vintage brown leather chesterfield. The last sentence matters most. It lists what must stay the same: the rest of the room, the pillows on the sofa and the lighting. That stops the model from redesigning the whole room. The blog shows the edited room.

مثال رسمي بيبدّل الكنباية الزرقا بصورة الصالون بكنباية جلد بنية chesterfield، وبيترك باقي الغرفة والإضاءة متل ما هي.

Examples

Prompt shown with its result in the source

Prompt
prompt
Using the provided image of a living room, change only the blue sofa to be a vintage, brown leather chesterfield sofa. Keep the rest of the room, including the pillows on the sofa and the lighting, unchanged.

Expected output: Copied verbatim from the Google Developers Blog post, which shows the result generated from this exact prompt.

Tips

  • Say "change only" and name the object by colour and type.
  • List what must stay unchanged, like the pillows and lighting in the source.