High-quality image generation with Grok Imagine
input.image_urls is required and must be an array containing a single URL string pointing to the reference image. Please provide the URL of the uploaded file; accepted types: image/jpeg, image/png, image/webp; max size: 10.0MB.
input.size is optional for both modes. Supported values: 2:3, 3:2, 1:1, 16:9, 9:16.
All API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEYGrok Imagine Image model identifier
grok-imagine-image Webhook callback URL for result notifications
"https://your-domain.com/callback"
Input parameters for generation. For image-to-image, input.image_urls is required.