Grok Imagine Image 2.0 Edit
xai/grok-imagine-image/v2.0/editGrok Imagine Image 2.0 Edit applies prompt-guided changes using up to three input images, with flexible aspect ratios, 1K or 2K output, and selectable low or medium quality. Requests rejected under SpaceXAI's terms may still incur a provider charge.
- Image editing
- Generation
Pricing
Includes our margin. Charged per request from your balance.
Per image
- 1K
- $0.066
- 2K
- $0.088
Details
- Provider
- xAI
- Added
- Aug 11, 2026
Options
Parameters this model accepts.
- Resolutions
- auto
- 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:2
- Images per request
- Up to 4
- Input images
- Up to 3
- Input image formats
- PNG, JPEG, WEBP
- Max input image size
- 30 MB
Use it from the API
Replace $HIDE_API_KEY with a key from the Developers page. Base URL https://hide.st/api/v1.
curl https://hide.st/api/v1/images/generations \
-H "Authorization: Bearer $HIDE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "xai/grok-imagine-image/v2.0/edit",
"prompt": "A lighthouse on a rocky coast at dusk, oil painting",
"n": 1
}'