- Grok Imagine Image
- Edit
Endpoint:
POST https://fal.run/xai/grok-imagine-image
Endpoint ID: xai/grok-imagine-imageTry it in the Playground
Run this model interactively with your own prompts.
Quick Start
Input Schema
string
required
Text description of the desired image.
integer
default:"1"
Number of images to generate. Default value:
1Range: 1 to 4AspectRatioEnum
default:"1:1"
Aspect ratio of the generated image. Default value:
"1:1"Possible values: 2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:2ResolutionEnum
default:"1k"
Resolution of the generated image.
1k for standard resolution, 2k for high resolution. Default value: "1k"Possible values: 1k, 2kOutputFormatEnum
default:"jpeg"
The format of the generated image. Default value:
"jpeg"Possible values: jpeg, png, webpboolean
default:"false"
If
True, the media will be returned as a data URI and the output data won’t be available in the request history.Output Schema
list<ImageFile>
required
The URL of the generated image.
string
required
The enhanced prompt that was used to generate the image.
Input Example
Output Example
Related
- Grok Imagine Image — Image Generation
Limitations
num_imagesrange: 1 to 4resolutionrestricted to:1k,2koutput_formatrestricted to:jpeg,png,webp