Grok Imagine Image

Edit images precisely with xAI's Grok Imagine model

Input

Fields marked * are required. Review the price before generating.

Text description of the desired image.

List of URLs of the images to edit. A maximum of 3 images are supported.

Uploading a file needs an account. Create accountJPEG, PNG, WebP · up to 25 MB

Number of images to generate.

Aspect ratio of the edited image. When set to auto (the default), the output preserves the aspect ratio of the first input image.

Resolution of the generated image. 1k for standard resolution, 2k for high resolution.

Additional settings

The format of the generated image.

Price$0.04 / run

You sign up first. Your settings are kept.

API code for this input

Complete the required fields and fix input errors to see API code.

How to use Grok Imagine Image

Getting started

Explore a visual direction with clear subject, composition and lighting instructions.

Review your result

Review faces, lettering and edge detail; compare edits against the original images.

Inputs and settings

Text mode requires prompt. Choose aspect_ratio for the layout, resolution as 1k or 2k and num_images from 1–4.

Select editing mode to provide image_urls. Choose output_format as jpeg, png or webp; use auto aspect ratio there when preserving the first image’s proportions.