Skip to content
DevPlainly
Prompt Library

Gemini Image Editing Prompts: Fix AI Images Fast

Copy-ready Gemini prompts to edit an image you already have: swap the background, remove objects, fix text, go vertical, and what to do when it gets stuck.

Published
Reading time
5 min read
Contents
  1. The golden rule: say what stays the same
  2. Backgrounds and objects
  3. Text, light and format
  4. Style and combining images
  5. When Gemini gets stuck
  6. FAQ
  7. Can Gemini edit an image created with ChatGPT?
  8. Why does Gemini change parts of the image I didn't mention?
  9. Is Gemini free for image editing?
  10. Should I edit in the same chat or start a new one?
  11. Further reading

Generating a good image is half the job. The other half is the small fixes: a different background, one object too many, the wrong color, a version that fits a vertical video. Starting over in a generator wastes attempts and often loses what you liked about the first image.

Gemini is good at this second half. You upload the image you already have, describe one change, and keep everything else. This page has the editing prompts I use, plus what to do when Gemini stops cooperating.

Nil's note

My workflow is ChatGPT first, for the base image, then Gemini for the edits. Sometimes Gemini doesn't understand what I'm asking, or it gets stuck and returns the same image without changing anything. When that happens I either fix it by hand or wait until my ChatGPT limit resets and go back to it.

The golden rule: say what stays the same

An editing prompt has two parts, and most bad results come from leaving out the second one:

  1. The one change you want, as specific as possible: what, where, and how it should look.
  2. What must not change: the subject, the composition, the style, the colors, the text.

Asking for one change per message also helps. If you ask for three things at once and one goes wrong, you've lost all three.

Backgrounds and objects

Replace the backgroundGemini

Replace the background of this image with [new background, e.g. a plain light gray studio wall]. Keep [the subject, e.g. the laptop and the coffee mug] exactly the same: same position, size, lighting and colors. Match the shadows to the new background.

Naming the subject explicitly tells Gemini what to protect while it rebuilds everything behind it.

Remove an objectGemini

Remove the [object] from the [position, e.g. bottom right corner] of this image and fill the space naturally with the [surrounding surface, e.g. wooden desk]. Don't change anything else in the image.

Saying where the object is and what should fill the space avoids a smudge or a strange new object.

Change a colorGemini

Change the color of the [element, e.g. hoodie the person is wearing] from [current color] to [new color]. Keep the fabric texture, the lighting and everything else in the image the same.

Pointing to one element by its position and current color keeps the change local.

Text, light and format

Fix or replace textGemini

In this image, replace the text "[current text]" with "[new text]". Keep the same font style, size, color and position. Don't change anything else.

Quoting the exact old and new text is the clearest instruction you can give an image model.

Change the lighting or time of dayGemini

Make this scene look like it's [time of day, e.g. late evening], with warm light coming from [direction, e.g. a desk lamp on the left]. Keep the composition, the objects and the style unchanged.

Lighting edits work best when you describe the light source, not just the mood.

Reframe a wide image as verticalGemini

Turn this image into a vertical 9:16 version. Keep the main subject centered and unchanged, and extend the scene naturally above and below it so nothing important is cut off.

Extending the image instead of cropping keeps the subject whole for TikTok, Shorts or Reels.

Style and combining images

Apply a style to an existing imageGemini

Redraw this image in the style of [style, e.g. a flat vector illustration with thick outlines]. Keep the same layout, the same objects in the same positions and the same color palette.

Asking it to keep the layout means you get the same picture in a new look, not a new picture.

Put a subject into another sceneGemini

Take the [subject] from the first image and place it in the scene from the second image, [position, e.g. on the table in the foreground]. Match the lighting and perspective of the second image. Don't change the subject's shape or colors.

Uploading two images and naming each one removes the guesswork about what goes where.

When Gemini gets stuck

Sometimes an edit simply doesn't happen. These are the patterns I see and what usually fixes them:

What happensWhy it usually happensWhat to try
It returns the same imageThe chat got long and the request is ambiguousStart a new chat, upload the latest version, ask for one change
It changes everythingThe prompt didn't say what to keepAdd "Keep everything else exactly the same" and name the subject
It ignores where you pointedThe position was vagueUse clear positions: "top left corner", "the mug on the right"
It refuses the editThe request touches a real person, a brand or a policy limitRephrase without the person or brand, or do it by hand

If two or three tries don't work, stop spending attempts. For small fixes, a manual edit in any image editor is often faster: removing a spot, adding text or cropping takes a minute. For bigger changes, go back to the generator you used for the base image with a fresh prompt.

FAQ

Can Gemini edit an image created with ChatGPT?

Yes. Upload the image file to Gemini and describe the change. It doesn't matter which tool created the original.

Why does Gemini change parts of the image I didn't mention?

Image models regenerate the picture rather than editing pixels like a photo editor. Telling it explicitly what must stay the same, and asking for one change at a time, keeps those side effects small.

Is Gemini free for image editing?

Gemini offers image editing on its free tier with usage limits that change over time. Check the current limits in the Gemini app if you plan to edit many images in one day.

Should I edit in the same chat or start a new one?

Use the same chat for a few quick changes. If results start getting worse or the image stops changing, start a new chat and upload the latest version.

Further reading

Written by Nil Martinez

Developer · DAM & DAW student

Developer studying multiplatform (DAM) and web (DAW) application development. I work every day with TypeScript, Angular, React, Java, Python, FastAPI, MySQL and Docker on Kubuntu, and I write about the tools I actually use.

How I test and write each guideGitHub

Keep reading