Skip to main content
Generate high-quality AI videos using xAI’s Grok Imagine 1.5 model. This is the successor to Grok Imagine Video and supports text-to-video and image-to-video with up to 7 reference images and durations up to 30 seconds.

Model

xai/grok-imagine-1.5-video

Modes

ModeHow to activateDescription
Text-to-video (T2V)Omit start_frame_image_urlGenerate video from a text prompt. Optionally pass up to 7 reference images via image_urls
Image-to-video (I2V)Provide start_frame_image_urlAnimate a starting frame into video. Optionally pass additional reference images via image_urls (max 7 total across both fields)

Parameters

ParameterTypeRequiredDefaultAllowed ValuesDescription
promptstringYes2–3000 charsVideo generation prompt
start_frame_image_urlstringNonullStart frame image URL for I2V mode
image_urlsstring[]Nonull1–7 URLsReference image URLs for style, subject, or scene guidance
aspect_ratiostringNo"auto""auto", "9:16", "3:4", "1:1", "4:3", "16:9", "21:9"Output aspect ratio
durationintNo130Video length in seconds
resolutionstringNo"480p", "720p"Output resolution
video_presetstringNo"custom""custom", "spicy", "fun", "normal"Generation style preset
Video presets:
PresetStyle
customDefault generation
spicyExtremely spicy/nsfw
funExtremely crazy/fun
normalNormal style

Example Request

Text to Video

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-1.5-video",
    "input": {
      "prompt": "A futuristic cityscape at sunset with flying cars",
      "duration": 10,
      "resolution": "720p",
      "aspect_ratio": "16:9",
      "video_preset": "custom"
    }
  }'

Image to Video

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-1.5-video",
    "input": {
      "prompt": "Camera slowly zooms in while clouds drift across the sky",
      "start_frame_image_url": "https://example.com/start-frame.jpg",
      "duration": 6,
      "resolution": "720p",
      "aspect_ratio": "16:9"
    }
  }'

Text to Video with Reference Images

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-1.5-video",
    "input": {
      "prompt": "The character walks through a neon-lit alley at night",
      "image_urls": [
        "https://example.com/character-ref.jpg",
        "https://example.com/style-ref.jpg"
      ],
      "duration": 15,
      "resolution": "720p",
      "aspect_ratio": "16:9"
    }
  }'

Response

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