About Grok Imagine - Image to Video
Generate videos from images with audio using xAI's Grok Imagine Video model.
Ready to build with Grok Imagine - Image to Video?
Try Grok Imagine - Image to Video in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.
curl -sSf -X POST https://hub.oxen.ai/api/ai/videos/generate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OXEN_API_KEY" \
-d '{
"model": "xai-grok-imagine-video-image-to-video",
"prompt": "A cat sitting on a chair",
"input_image": "https://hub.oxen.ai/api/repos/ox/Oxen-AI-Assets/file/main/images/ox_zoom_out_1926_1076.png",
"aspect_ratio": "16:9",
"duration": 6,
"resolution": "480p"
}'Request parameters
Every field Grok Imagine - Image to Video accepts in the request body. See the API reference for response formats.
POST
https://hub.oxen.ai/api/ai/videos/generate| Field | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | — | |
input_image | stringuri | Yes | — | First frame image for image-to-video generation |
aspect_ratio | string | No | "16:9" | auto1:116:99:164:33:43:22:3 |
duration | integer | No | 6 | Range: 3 – 15 |
resolution | string | No | "480p" | 720p480p |