Skip to main content
Generate and edit images using Grok Imagine 2.0, the quality-focused Grok image model. The API produces exactly one output image per task.
The enable_pro parameter has been removed. Select this model explicitly for quality. For faster generation, use xai/grok-imagine-image.

Model

Parameters

Text-to-image and image-edit requests each generate exactly one image. Providing image_urls activates editing but does not change the selected model.

Example requests

Text to image

Image editing

Response