Skip to main content
Animate a starting image into video using xAI’s Grok Imagine 1.5 preview model (image-to-video).

Model

xai/grok-imagine-video-1.5-preview

Parameters

ParameterTypeRequiredDefaultAllowed ValuesDescription
promptstringYes2–3000 charsText prompt describing how to animate the starting frame
start_frame_image_urlstringYesStart frame image URL (required; I2V only)
aspect_ratiostringNo"auto""auto", "9:16", "3:4", "1:1", "4:3", "16:9", "21:9"Output aspect ratio
durationintNo115Video length in seconds
resolutionstringNo"480p", "720p"Output resolution

Example Request

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "xai/grok-imagine-video-1.5-preview",
    "input": {
      "start_frame_image_url": "https://example.com/start-frame.jpg",
      "prompt": "Camera slowly zooms in while clouds drift across the sky",
      "aspect_ratio": "16:9",
      "duration": 6,
      "resolution": "720p"
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}