Grok Searcher

Grok Imagine: Edit a Photo Without Changing the Face

Updated December 2, 2026
The most common complaint about AI photo edits is “it changed my face”. In Grok Imagine the fix is mostly about how you word the edit: lead with the change, add one sentence that keeps the rest, and edit the picture you have instead of regenerating it.
Where this comes from
The pattern below follows xAI’s own image prompting guide for grok-imagine-image-2.0, read on Dec 2, 2026. The guide is written for the API; the same wording habits apply when you edit in the Grok app, but we have not verified identical behavior there.

The edit pattern

  1. Edit, do not regenerate. If the subject and layout are already right and only one to three details need to change, edit the image. Generating a new one changes the subject.
  2. Lead with the change. The first sentence is what should be different.
  3. Add one keep sentence. Name what stays: the same face, hair, pose, angle, crop and background.
  4. Stop there. Pasting in a full new description of the scene restages it, and the subject drifts.
Likely to change the face
“Keep everything the same, but make the photo look like it was taken at sunset on a beach in a red jacket with the same woman standing there smiling softly, golden hour light, 50mm lens…”
Much safer
“Change the background to a beach at sunset and the jacket to red. Keep the same face, hair, expression, pose and framing.”

Copy-paste edit prompts

Change clothes

Replace the [current clothing] with [new clothing: material and color]. Keep the same face, hair, expression, pose, framing and background.

Change the background

Change the background to [place and light, for example a sunlit cafe window]. Keep the same person, face, pose, clothing and crop.

Change the lighting

Make the light warm late-afternoon sun from the left with soft shadows. Keep the same face, pose, clothing, background and framing.

Add one object

Add a [object] on the table in front of the person. Keep the same face, pose, clothing, background and framing; change nothing else.

Restyle without losing the face

Render this as a [pencil sketch / oil painting / anime illustration]. Keep the same face, pose, hairstyle and composition so the person is clearly recognizable.

Fix a small detail

Remove the [object] from the left edge of the frame. Keep everything else, including the face, pose, lighting and crop, exactly as it is.

Make it professional

Turn this casual photo into a clean headshot: neutral light-gray background, soft even lighting, and a dark blazer. Keep the same face, hair, expression and head angle.

When an edit does not land

The same edit through the API

curl -X POST https://api.x.ai/v1/images/edits \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -d '{
    "model": "grok-imagine-image-2.0",
    "prompt": "Replace the grey jacket with a dark green wool coat. Keep the same face, hair, pose, framing and background.",
    "image": {"url": "https://example.com/my-photo.jpg", "type": "image_url"},
    "aspect_ratio": "3:2",
    "quality": "medium"
  }'

The source image can be a public URL, a base64 data URI or a file ID from xAI’s Files API. See xAI’s image editing docs.

More image prompts

Working from your own photos? See Grok prompts for uploaded images, or browse best Grok image prompts.

Responsible use and disclaimer
Only edit photos you have the right to use, and do not present edited images of real people as unedited. Grok Searcher is not affiliated with xAI. Model behavior changes; if a tip stops working, check the linked xAI docs.

FAQ

How do I edit an image in Grok Imagine without changing the face?

Edit the existing picture instead of generating a new one. Open the prompt with the one to three things that should change, then add one sentence naming what must stay the same (the face, the angle, the crop). Do not paste a full new description of the scene.

Why does the face change when I edit?

Most often because the prompt restages the whole scene. xAI’s prompting guide says an edit that pastes in a full new prompt restages the picture, so the subject drifts. A short, targeted edit keeps the subject put.

Does “keep everything the same” work?

According to xAI’s guide, an edit that opens with “keep everything” barely moves. State the change first, then use one keep sentence that names the specifics.

Can I do this through the API?

Yes. xAI’s image editing endpoint is /v1/images/edits with a JSON body and the model grok-imagine-image-2.0. The OpenAI SDK’s images.edit() is not supported because it sends multipart form data; use the xAI SDK, the Vercel AI SDK or a direct HTTP request.

Is it okay to edit anyone’s photo?

Edit photos of yourself, or of people who have agreed. Do not use edits to impersonate someone, mislead people, or create content that targets a real person.

Free tools for this

All free tools →

Related guides