Model list

Grok Imagine Video

Video · xAI · Jan 28, 2026

xai/grok-imagine-video

Adds 2–10 seconds to the end in one file.

Try it on the web

Prices

8 credits per second

What it can do

Aspect ratio
16:9, 1:1, 9:16
Length
2–10s
Results per request
1

Input fields

FieldTypeRequiredAllowed valuesDefaultDescription
videostringRequired≤ 2000 chars—Video to continue (extend); duration is the length to add: a video, as a shuut file id (POST /v1/files) or a public https URL.
promptstringOptional≤ 2000 chars—What happens in the video. Any language. Optional with frames or a video to continue.
durationnumberOptional2–106Length in seconds. Rounded to whole seconds (reported in adjustments.duration).
aspect_ratiostringOptional16:9, 1:1, 9:16—Output aspect ratio. Some models follow the start frame's shape instead.
enhance_promptbooleanOptional——Let AI expand a short prompt before the model (the model's default when omitted).

Request example

curl

curl https://shuut.ai/v1/generations \
  -H "Authorization: Bearer $SHUUT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "xai/grok-imagine-video",
  "input": {
    "prompt": "Slow push-in on a ceramic mug as steam rises, morning light",
    "video": "https://example.com/video.mp4",
    "aspect_ratio": "9:16"
  }
}'

JavaScript

const res = await fetch("https://shuut.ai/v1/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SHUUT_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    "model": "xai/grok-imagine-video",
    "input": {
      "prompt": "Slow push-in on a ceramic mug as steam rises, morning light",
      "video": "https://example.com/video.mp4",
      "aspect_ratio": "9:16"
    }
  }),
});
const generation = await res.json();
console.log(generation.id, generation.status);

Python

import os, uuid, requests

res = requests.post(
    "https://shuut.ai/v1/generations",
    headers={
        "Authorization": f"Bearer {os.environ['SHUUT_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
      "model": "xai/grok-imagine-video",
      "input": {
        "prompt": "Slow push-in on a ceramic mug as steam rises, morning light",
        "video": "https://example.com/video.mp4",
        "aspect_ratio": "9:16"
      }
    },
)
generation = res.json()
print(generation["id"], generation["status"])

Response example

{
  "object": "generation",
  "id": "8f2c1a7d9e0b",
  "model": "xai/grok-imagine-video",
  "status": "queued",
  "created_at": "2026-11-27T09:00:00Z",
  "updated_at": "2026-11-27T09:00:00Z",
  "cost": {
    "credits": 48,
    "usd": "0.48",
    "refunded_credits": 0
  },
  "outputs": [],
  "error": null,
  "webhook": null,
  "links": {
    "self": "https://shuut.ai/v1/generations/8f2c1a7d9e0b",
    "cancel": "https://shuut.ai/v1/generations/8f2c1a7d9e0b/cancel"
  }
}

See how to get status and results

Tools

Explore · SWAP · Effects · Pricing · Support · Connect with MCP · Developer API · AI Video Cost Calculator · AI Video Model Picker for Ads

Legal notices