Grok Imagine Image to Image: Edit and Restyle Your Photos

Last verified: October 19, 2026

Grok Imagine image-to-image editing takes one or more photos that you upload, plus a written prompt, and returns a new image with the change you asked for. The model reads what is in the source image before it makes the edit. That means your prompt can refer to things already in the frame, like the jacket, the desk or the person on the left, without describing the whole scene again.

You write edits in plain language. Describe the change, and Grok Imagine applies it to the source. If you upload more than one photo, a single instruction can use all of them in one request.

The form has only a few controls: Upload Images, the Prompt box with its Enhance Prompt helper, and Generate. All of your direction goes into the prompt, so the wording is what you need to get right. The tips and fixes further down this page are about that wording.

Explore more image to image

Grok Imagine Image Editing at a Glance

What goes into a run and what comes out of it.

Input

Up to 5 images (JPG, JPEG, PNG or WEBP, up to 10 MB each) + a text prompt of up to 2,048 characters

Output

1 image per run

Tips for Better Grok Imagine Photo Edits

Lead with the Change, Then Say What Stays

Start the prompt with the edit itself. Then add one sentence that keeps the same subject, angle, crop and prop placement. xAI's own example swaps a metal watch strap for brown leather with cream stitching, then keeps the same wrist, shirt cuff, angle and desk. All of your direction goes through the Prompt box, so that second sentence is your main way of marking off what must not change.

Keep Each Edit to One to Three Details

A good edit changes one to three details. If your list is longer, run the most important change first and leave the rest for later runs. That way each result answers a short, specific request you can check it against.

Check the Subject Before the Styling

When a result comes back, first check whether its subject matches the subject in your prompt. Look at palette, film grain and styling only after that. Use your first runs to get the subject right and save the finishing touches for later, because polishing the look of the wrong subject means doing the work twice.

How to Edit an Image with Grok Imagine

Four steps from source photo to finished image.

Editing a Photo vs. Other Ways to Get the Image

When editing with Grok Imagine fits the job, and when another route is the better start.

You have no picture yet Editing needs a source photo to work from, so it only becomes an option once you have a picture. Generating a new image from a text prompt is the recommended route when there is no picture yet. Choose the edit when you already have a photo worth keeping, and generate from text when you would be starting from an empty frame anyway.
The subject in your photo is wrong An edit works on the subject already in your source, so it suits photos whose subject and layout are right and only need some details changed. Generating a new image is the suggested route when the subject itself is wrong: a different object, a missing key element, or the wrong number of things. Edit when the photo's subject is right. When it shows the wrong object or the wrong count, a new generation or a better source photo is the stronger starting point.
Still image or motion Every run produces a still image, which suits deliverables like product shots, portraits and artwork. The Text To Video workflow of the same model generates a video from a written prompt. Stay with image editing when the deliverable is a picture, and move to Text To Video when it needs motion.
Edit with Grok Imagine when you already have a photo whose subject is right. Generate from text when there is no picture yet or the subject is wrong, and switch to Text To Video when you need motion.

Common Grok Imagine Editing Problems and Fixes

Fixes for problems you may run into when editing photos with Grok Imagine.

I keep asking for "more realistic" and the result only gets worse

Repeating a general fix like "more realistic" tends to add new texture to the wrong part of the picture. Change the wording and name the exact part that looks off, for example that the leather should show creases where the strap bends. Then run it again, rewriting only the detail that failed and leaving the rest of your prompt as it was.

My photo won't upload

Upload Images only accepts files that meet its format, file-size and minimum-size limits. Check your file against those limits in the upload question below. Then re-export it: convert it to an accepted format, compress it if it is too heavy, or use a larger original if it is too small. Add it again. Nothing else in your setup needs to change.

The prompt box won't let me type any more

The Prompt box has a character limit, listed in the Prompt step above. If you hit it, cut any description of things already visible in your photo, since the source supplies them. Keep the change you want and the sentence about what stays, then click Generate.

Frequently Asked Questions

Which image files can I upload, and how large can they be?

Upload Images accepts JPG, JPEG, PNG and WEBP files. Each image must be at least 300×300 pixels and no larger than 10 MB. You can add one to five images per run, and at least one is required.

Do I need a prompt, or is uploading a photo enough?

You need both. The Prompt field is required: the upload gives Grok Imagine the material, and the prompt tells it what to do with that material. A rough line is enough to start, and Enhance Prompt can help you expand it.

How much does an edit cost?

Once you're signed in, the credit cost of the run appears above the Generate button, so you can see it before you start the edit.

How should I word the prompt when I upload several photos?

Describe the finished picture rather than the files: who or what appears, where they are, the mood and the light. xAI's multi-image example does this. It seats every subject together on the grass in a sunny park, in natural daylight with warm tones, and ends with a line that rules out extra figures: "No additional people or animals." It also helps to say what each photo contributes, such as the person, the product or the setting, so the roles are clear.

Can I edit the image Grok Imagine gives me a second time?

Yes. Download the result and add it in Upload Images as the source for your next run. Multi-turn editing, where you refine an image over several edits in a row, is part of Grok Imagine's editing documentation.