← All models
Grok Imagine Image 2.0
grok-imagine-image-v2.0
Image generationby xai
Edit images with xAi's Grok Imagine 2.0 model.
images
Details
- Accepts
- text + image
Pricing
- Price
- 0.021 cr / second
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| promptrequired | string | Text description of the desired image. |
| quality | stringenum: low, medium | Quality level of the edited image. |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
| image_urls | array | List of URLs of the images to edit. A maximum of 3 images are supported. |
| num_images | integer | Number of images to generate. |
| resolution | stringenum: 1k, 2k | Resolution of the generated image. `1k` for standard resolution, `2k` for high resolution. |
| aspect_ratio | stringenum: auto, 2:1, 20:9, 19.5:9, 16:9, 4:3… | Aspect ratio of the edited image. When set to `auto` (the default), the output preserves the aspect ratio of the first input image. |
| output_format | stringenum: jpeg, png, webp | The format of the generated image. |
Output
| Field | Type | Description |
|---|---|---|
| images | array | The URL of the edited image. |
| revised_prompt | — | The enhanced prompt that was used to generate the image. |
