Grok Imagine Image
Edit images precisely with xAI's Grok Imagine model
Input
Fields marked * are required. Review the price before generating.
API code for this input
Complete the required fields and fix input errors to see API code.
How to use Grok Imagine Image
Getting started
Explore a visual direction with clear subject, composition and lighting instructions.
Review your result
Review faces, lettering and edge detail; compare edits against the original images.
Inputs and settings
Text mode requires prompt. Choose aspect_ratio for the layout, resolution as 1k or 2k and num_images from 1–4.
Select editing mode to provide image_urls. Choose output_format as jpeg, png or webp; use auto aspect ratio there when preserving the first image’s proportions.