Grok Imagine Image 2.0

Edit images with xAi's Grok Imagine 2.0 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 5 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. Standard auto uses the nearest supported ratio of the first reference.

Resolution of the generated image: 1k, 1.5k, or 2k.

Additional settings

The format of the generated image.

Quality level of the edited image. auto lets xAI choose; it currently uses medium for editing.

Price$0.13 / 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 2.0

Getting started

Test a composition before selecting output quality and resolution for delivery.

Review your result

Compare fine detail and lettering at full size; in edits, inspect unintended changes.

Inputs and settings

Provide prompt. Choose quality as low or medium separately from resolution, which supports 1k and 2k; num_images permits 1–4 outputs.

Use aspect_ratio and output_format for delivery. Add image_urls only in editing mode, and describe both the change and the details to keep.