Infery.ai
← 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

FieldTypeDescription
promptrequiredstringText description of the desired image.
qualitystringenum: low, mediumQuality level of the edited image.
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.
image_urlsarrayList of URLs of the images to edit. A maximum of 3 images are supported.
num_imagesintegerNumber of images to generate.
resolutionstringenum: 1k, 2kResolution of the generated image. `1k` for standard resolution, `2k` for high resolution.
aspect_ratiostringenum: auto, 2:1, 20:9, 19.5:9, 16:9, 4:3Aspect ratio of the edited image. When set to `auto` (the default), the output preserves the aspect ratio of the first input image.
output_formatstringenum: jpeg, png, webpThe format of the generated image.

Output

FieldTypeDescription
imagesarrayThe URL of the edited image.
revised_promptThe enhanced prompt that was used to generate the image.