Grok (xAI)
Grok Imagine Image Generation
High-quality image generation with Grok Imagine
POST
Documentation Index
Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Grok Imagine Image Generation
Generate high-quality images using the Grok Imagine model. Supports text-to-image and image-to-image generation with optional aspect ratios.input.size is optional. Supported values: 2:3, 3:2, 1:1, 9:16, 16:9.
For image-to-image, input.image_urls is required.
array(URL)
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.
Available Models
- grok-imagine-image - Text-to-image and image-to-image generation
Authorizations
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_KEY
Body
application/json
Grok Imagine Image model identifier
Available options:
grok-imagine-image Webhook callback URL for result notifications
Example:
"https://your-domain.com/callback"
Input parameters for generation. For image-to-image, input.image_urls is required.