Skip to Content
DocumentationModelsVideoGrok Imagine 1.5 Video

Grok Imagine 1.5 Video

Use grok-imagine-1.5-video to create video output. This page contains the complete request needed for this model.

Model facts

PropertyValue
Model IDgrok-imagine-1.5-video
EndpointPOST /api/v1/generation/create
OutputVideo
Modestext-to-video, image-to-video
PricingView current pricing

Minimal request

curl -X POST https://api.apihubs.ru/api/v1/generation/create \
  -H "Authorization: Bearer $API_STOCK_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-1.5-video",
  "input": {
    "prompt": "A cinematic scene with soft natural light"
  }
}'

The create response contains a task ID:

{
  "code": 200,
  "data": {
    "taskId": "019ca881-9503-7270-a560-f00fc2b15785",
    "status": "not_started",
    "createdAt": "2026-08-22T12:00:00.000Z"
  }
}

Parameters

Parameters belong inside the top-level input object. Unknown fields are rejected.

ParameterTypeRequiredDefaultDescription
promptstringYesVideo content description
size“16:9” | “9:16” | “1:1” | “3:2” | “2:3”No"16:9"Video aspect ratio / size
duration6 | 10 | 15 | 20 | 25 | 30No6Video duration in seconds
resolution“480p” | “720p”No"480p"Video resolution
urlsstring[]NoReference image URLs for image-to-video mode

Modes

Minimal generation

{
  "model": "grok-imagine-1.5-video",
  "input": {
    "prompt": "A cinematic scene with soft natural light"
  }
}

With urls

{
  "model": "grok-imagine-1.5-video",
  "input": {
    "prompt": "A cinematic scene with soft natural light",
    "urls": [
      "https://example.com/input.jpg"
    ]
  }
}

Constraints

  • size: allowed: 16:9, 9:16, 1:1, 3:2, 2:3.
  • duration: allowed: 6, 10, 15, 20, 25, 30.
  • resolution: allowed: 480p, 720p.

Invalid types, unsupported enum values, out-of-range numbers, and missing required fields return HTTP 400 with error.code: "invalid_input". Correct the request rather than retrying it unchanged.

Result

Poll the task or provide a top-level webhook URL in the create request:

curl https://api.apihubs.ru/api/v1/task/status/$TASK_ID \
  -H "Authorization: Bearer $API_STOCK_KEY"

A successful media task returns one or more files:

{
  "code": 200,
  "data": {
    "taskId": "019ca881-9503-7270-a560-f00fc2b15785",
    "status": "finished",
    "files": [
      {
        "fileUrl": "https://storage.api-stock.com/result.mp4",
        "fileType": "video"
      }
    ],
    "createdTime": "2026-08-22T12:00:00.000Z"
  }
}

See Tasks and webhooks for terminal statuses, retries and webhook delivery.

Grok Imagine 1.5 Video — API Hubs