← All models
xAI · Image model
Grok Imagine Image 2.0
x-ai/grok-imagine-image-2.0- Image
Grok Imagine Image 2.0 is an image generation and editing model from xAI. It is suited for creating images from text prompts and editing images from references, with low and...
Specifications
- Input
- text, image
- Output
- image
- Editing
- yes, up to 3 reference images
- Images per call
- 1
- Served by
- SpaceXAI
Request options
Validated against these values; anything else returns 400 with the allowed list.
- resolution
- 1K, 2K
- aspect_ratio
- 1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 9:19.5, 19.5:9, 9:20, 20:9, 1:2, 2:1, auto
- quality
- low, medium
Use it
POST /api/v1/images · /images/edits · MCP generate_image · edit_image · full reference
curl https://omnirail.org/api/v1/images \
-H "Authorization: Bearer $OMNIRAIL_KEY" -H "Content-Type: application/json" \
-d '{"model":"x-ai/grok-imagine-image-2.0","prompt":"a lighthouse at dawn, 35mm film","aspect_ratio":"1:1"}'