infery
← All models

Grok Imagine Image

grok-imagine-image

Image generationby xAI

Grok Imagine Image is xAI's fast text-to-image model with strong text rendering and style versatility. Use Grok Imagine Image with an API.

images

Details

Accepts
text + image

Pricing

Price
2.5 cr / image

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
promptrequiredstringText description of the desired 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: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_formatstringenum: jpeg, png, webpThe format of the generated image.
image_passthroughbooleanSend edit references and return provider images without resizing or re-encoding, preserving transparency and metadata. The returned native format may differ from output_format.
enable_safety_checkerbooleanAuthorized callers may set false to request relaxed screening.
imagestringInput image for editing. When provided, the model edits this image based on the prompt. Supports jpg, jpeg, png, webp.

Output

FieldTypeDescription
imagesarrayThe URL of the edited image.
revised_prompt—The enhanced prompt that was used to generate the image.