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
image_urlsstring[]YesImage URLs to animate. The first URL is used as the start frame; additional URLs are reserved for future use.
promptstringYesText prompt describing how to animate the starting frame (min length 1)
aspect_ratiostringNo"1:1""9:16", "16:9", "1:1", "4:3", "3:4", "3:2", "2:3"Output aspect ratio
durationintNo6115Video length in seconds
resolutionstringNo"720p""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": {
      "image_urls": [
        "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"
  }
}