← Back to all generators
xai/grok-imagine-image-2
OfficialView on Replicate →
xAI's Grok Imagine Image 2.0 — text-to-image generation and editing with a quality control and output up to 2k
Capabilities
Reference Images
Cost
Community model (estimated from hardware time)
Input Parameters
| Name | Type | Description | Default | Constraints |
|---|---|---|---|---|
prompt* | string | Text prompt for image generation or editing | — | — |
aspect_ratio | string | Aspect ratio of the generated image. Ignored when editing an image. | "1:1" | 1:116:99:164:33:43:22:32:11:219.5:99:19.520:99:20auto |
image | string(uri) | Input image for editing. When provided, the model edits this image based on the prompt. Supports jpg, jpeg, png, webp. | — | — |
quality | string | Generation quality. 'medium' produces the best results, 'low' is faster and cheaper. | "medium" | lowmedium |
resolution | string | Resolution of the generated image. | "2k" | 1k2k |
promptrequiredstringText prompt for image generation or editing
aspect_ratiostringAspect ratio of the generated image. Ignored when editing an image.
Default:
"1:1"1:116:99:164:33:43:22:32:11:219.5:99:19.520:99:20auto
imagestringInput image for editing. When provided, the model edits this image based on the prompt. Supports jpg, jpeg, png, webp.
qualitystringGeneration quality. 'medium' produces the best results, 'low' is faster and cheaper.
Default:
"medium"lowmedium
resolutionstringResolution of the generated image.
Default:
"2k"1k2k
Version:
1ef875bf1bfeUpdated: 9/20/2026540 runs
cinemasetfree