Grok Prompts for Uploaded Images
The 3 rules for editing an uploaded image
- Lead with the change. Start with the one to three details you want different: “Replace the gray wall with a sunlit brick wall.”
- Then one “keep” sentence. “Keep the same person, same face and expression, same angle and crop.” Name the things that must not move.
- Don't paste a whole new scene. A full new prompt restages the picture: the subject drifts and objects get swapped. If a fix doesn't land, change the words and point at the exact part instead of repeating “more realistic”.
These come straight from xAI's image prompting guide, which also notes that an edit opening with “keep everything” barely changes anything.
Edit without changing the face
The most-searched case. Replace the bracketed parts and keep the last sentence as is.
Replace the background with [a sunny beach at golden hour]. Keep the same person, the same face and expression, the same hair, the same pose, angle and crop.
Change the shirt to [a navy wool blazer over a white tee]. Keep the same person, same face, same expression, same lighting and the same framing.
Brighten the face with soft window light from the left and lift the shadows under the eyes. Keep the same person, same features and expression, same background and crop.
Turn this into a clean professional headshot: replace the background with a plain light-gray studio backdrop and change the top to a dark collared shirt. Keep the same face, expression, hair and head angle.
Remove the [person / sign / cup] on the right side. Keep the same main person, same face, same background details, same angle and crop.
Make it winter: light snow on the ground and on the trees, overcast sky. Keep the same person, same face and expression, same clothes, same pose and crop.
Restyle a photo
Render this as a pencil sketch with detailed shading on off-white paper. Keep the same composition, subject and pose.
Redraw this as a hand-painted anime film still with soft cel shading and a warm evening sky. Keep the same people, poses and layout.
Turn this photo into a thick-brush oil painting with visible impasto strokes and rich color. Keep the same subject, framing and light direction.
Make this look like a 1970s 35mm film photo: warm color cast, soft contrast, slight grain. Keep the same scene and framing.
Place this product on a seamless white background with a soft shadow underneath. Keep the same product, same angle, same label and colors.
Make my pet a Renaissance noble portrait: dark green velvet backdrop, gold frame edge, soft painterly light. Keep the same animal, markings and face.
Analyze or describe an uploaded image
No editing, just answers. These work with any Grok model that accepts image input.
Describe this image as a detailed image-generation prompt: subject first, then details, setting, light, colors and composition, so I can recreate it.
Write concise alt text (under 125 characters) and a longer description for screen readers for this image.
Transcribe all text in this image exactly, keeping line breaks. Then summarize it in 3 bullets.
Critique this photo like a photography teacher: composition, light, focus, color. Give 3 specific fixes for the next shot.
Identify what is in this photo (plant, object, landmark). Give your confidence, the clues you used, and what would confirm it.
This is a screenshot of an error / settings page. Explain what it means and give step-by-step instructions to fix it.
Fun prompts for your photos
Roast this photo like a stand-up comedian. Keep it playful, nothing about body or appearance I can't change.
Write 6 meme captions for this image in different formats (top/bottom text, reaction, "nobody:" format).
Turn this photo into a dramatic movie poster: add a title "[TITLE]" in bold letters at the top and a tagline at the bottom. Keep the same people and faces.
Add a small exhausted gray robot holding a coffee mug next to me, with a speech bubble saying "I'm tired, boss." Keep me exactly the same.
More meme ideas: “I'm tired, boss” template.
For developers: editing uploaded images with the xAI API
As of Dec 2, 2026, xAI's docs recommend grok-imagine-image-2.0 (Image 2.0) for images. Edits go to POST https://api.x.ai/v1/images/edits with a JSON body; the source image can be a public URL, a base64 data URI or a Files API file_id.
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 background with a sunlit brick wall. Keep the same person, same face and expression, same angle and crop.",
"image": { "url": "https://example.com/photo.jpg", "type": "image_url" },
"quality": "medium",
"resolution": "2k"
}'Notes from the docs
- The OpenAI SDK's
images.edit()is not supported (it sends multipart form data); use the xAI SDK, the Vercel AI SDK or plain HTTP. - Pin
quality: "medium"andresolution: "2k"when fine detail such as a face must stay recognizable. - Generated URLs are temporary; request
b64_jsonif you need to keep the file. - Image input for chat models: JPEG, PNG or WebP (and ICO), up to 25 MiB per image.
FAQ
Can Grok edit a photo I upload?
Yes. Attach the image and describe the change. Under the hood xAI's image model (grok-imagine-image-2.0 in the API, checked Dec 2, 2026) supports editing an existing image from a prompt, including multi-turn edits.
How do I edit an image in Grok without changing the face?
Open the prompt with the one change you want, then add a single sentence that keeps the same person, same face, same expression, angle and crop. Avoid opening with "keep everything the same" and avoid pasting a full new scene description; both make the face drift.
Why does Grok change other parts of my image?
Usually because the prompt describes a whole new scene. xAI's prompting guide says edits work best when the subject and layout are already right and you change one to three details.
Can Grok describe or analyze an uploaded image?
Yes. Grok's chat models accept image input, so you can ask it to describe a photo, read text in it, critique composition or write alt text.