Toolpuffin

    Loading...

    Up and down to choose, Enter to open, Esc to close.

    How to Write a Prompt to Edit a Photo with AI: Say What to Change and What to Keep

    Updated December 2026

    Written by the Toolpuffin team. Tools in this guide are tested in the browser.

    AI image tools can edit a photo from a written instruction, but a vague instruction gives a vague result. A good prompt says what to change, how, and what must stay exactly as it is. This guide shows how to write one, with examples, and links to a free tool that builds the prompt for you.

    Try the tool: Photo Edit Prompt Builder

    Be direct and specific

    Google's tips for editing in Gemini say that for changing an existing image you should be direct and specific, with instructions such as changing a man's tie to green or removing the car in the background.

    Source: Google: Tips for image generation and editing in the Gemini app

    VagueClear
    Make it better.Brighten the shadows a little and make the light warmer.
    Change the background.Replace the background with an empty beach at sunset.
    Fix the old photo.Remove the scratches and the fold line, and keep the faces as they are.

    Say what must stay the same

    Google's developer guide for Gemini image editing gives a template for changing only one element: change only the element you name, and keep everything else in the image exactly the same, preserving the original style, lighting and composition.

    Source: Google Developers Blog: How to prompt Gemini 2.5 Flash Image Generation

    • Name what to keep: the face, the pose, the clothing, the framing or any text in the picture.
    • Say how strong the change should be, for example slight or clear.
    • A tool can still change more than you asked for, so always compare the result with your original.

    Change one thing at a time

    Google's best practices for Gemini image generation advise to iterate and refine: do not expect a perfect image on the first attempt, and use follow-up prompts to make small changes, such as making the lighting warmer.

    Source: Google Cloud: Gemini image generation best practices

    1. Start with the main change, such as the background or the light.
    2. Look at the result next to your original.
    3. Add a small follow-up instruction for the next change.

    Build the prompt

    The prompt builder asks for the goal, the strength of the change, the light and colour, and what must stay the same, and writes one prompt in English or Dutch. It only writes text: you attach the photo in the AI tool yourself, and different tools follow instructions with different accuracy.

    More guides