Try Grok Imagine - Text to Image in the Workbench
Run this model interactively, tune parameters, and compare outputs.
xai-grok-imagine-image
Grok Imagine text-to-image is part of xAI’s Grok Imagine suite, a multimodal creative stack supporting text-to-image generation with strong prompt adherence, cinematic aesthetics, style adaptation (including anime), and advanced world/physics understanding. It excels in believable lighting, coherent composition, and production-ready outputs suitable for video game ads and creative workflows. This endpoint specifically handles text-to-image generation.
Example request
- Sync
- Async
- Async with SSE
See the image generation reference for more details.
- Minimal
- All parameters
Fetch model details
The models endpoint returns the full model object, including itsjson_request_schema.
Request parameters
Required parameters
| Field | Type | Default | Description |
|---|---|---|---|
prompt | string | "Minimalist ox silhouette dissolving into golden particle streams, sumi-e brushwork meets generative art, zen simplicity with data-driven particle flow, lunar new year energy captured in motion" | Prompt for generated image |
Optional parameters
| Field | Type | Default | Description |
|---|---|---|---|
aspect_ratio | string | "16:9" | Aspect ratio for the generated image One of: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3. |
output_format | string | "webp" | Format of the output images One of: webp, jpg, png. |