Skip to main content
POST
Grok Imagine
Generate videos from images with xAI’s Grok Imagine model. Supports multiple durations and resolutions with per-request pricing.

Request Body

string
required
Model slug. Use xai/grok-imagine/image-to-video for image-to-video generation.
object
required
Input parameters for image-to-video generation.
string
HTTPS URL to receive a webhook notification when the job completes or fails.

Pricing

Base cost: 50,000 micro-cents per request ($0.50/request)
Example cost: 6 seconds, 480p = 50,000 × 6 × 1 = 300,000 micro-cents ($3.00)

Response

string
Unique identifier for the submitted job.
string
Initial job status. Always "pending" on successful submission.
string
ISO 8601 timestamp of the estimated completion time.
number
The cost of the job in micro-cents.

Code Examples