Skip to main content

Try Grok Imagine - Image to Video in the Workbench

Run this model interactively, tune parameters, and compare outputs.
Model ID: xai-grok-imagine-video-image-to-video Generate videos from images with audio using xAI’s Grok Imagine Video model.

Example request

Use the Workbench as a request builder: configure parameters for this model in the UI, then open the API tab to copy the exact cURL or Python call.
This blocks until the video is ready (typically 5-15 minutes). Prefer Async or Async with SSE for anything beyond quick experimentation.See the video generation reference for more details.
curl -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": "<prompt>",
  "input_image": "https://hub.oxen.ai/api/repos/elau/assets/file/main/bloxy/bloxy_cropped_512x512.png"
}'

Fetch model details

The models endpoint returns the full model object, including its json_request_schema.
curl -H "Authorization: Bearer $OXEN_API_KEY" https://hub.oxen.ai/api/ai/models/xai-grok-imagine-video-image-to-video

Request parameters

Required parameters

FieldTypeDefaultDescription
promptstringText prompt describing the video to generate
input_imagestringFirst frame image for image-to-video generation Format: uri.

Optional parameters

FieldTypeDefaultDescription
resolutionstring"480p"Resolution quality of the generated video One of: 720p, 480p.
durationinteger6Duration of the video in seconds One of: 3, 6, 8, 10, 15.
aspect_ratiostring"auto"Aspect ratio for the generated image One of: auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3.