ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Grok Imagine Extend Video

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id xai/grok-imagine-video/extend-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/xai/grok-imagine-video/extend-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ᠵᠠᠨᡳ ᡥᠠᠯᠠᠮᠠ ᡥᡡᠯᠠᠨᡳ ᡶᡳᠯᡝ: $0.52 520 API ᠺᠷᡝᡩᡳᠲ ᠰᡳᠨᡳ ᡶᡳᠯᡝ ᠵᠠᠯᡤᠠᠨ ᠠᠰᡠᠮᠪᡳᠨᡳ ᠠᠯᡳᠮᠪᡳ ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
xAI ᠰᡠᠨᡤᠠ ᡩᡝ ᠰᡠᠨᡤᠠ 2–10 ᠰ #video-edit#v2v#grok#xai

ᡝᠮᡠ ᠣᠷᡳᠮᠣ MP4 ᠪᡳᠳᡝᠨ ᠪᡝ 2 ᡩᡝ 10 ᠰᡝᠯᡝᠨ ᠵᠠᠯᡳᠨᡩᡠᠮᡝ, ᡳᠨᡠ ᡠᠯᡥᡳ ᡩᡝ ᠵᡠᠯᡤᡝᠨ ᠵᠠᠯᡳᠨ ᠪᡝ ᡥᡡᠯᡠᠨ ᡳ ᡶᡠᠯᡤᡳᠶᡝᠨ ᡩᡝ ᠵᠠᠯᡳᠨᡩᡠᠮᡝ

xAI · ᠰᡠᠨᡤᠠ

ᡳᠨᡝ ᡝᠮᡠᠨᡳᠩᡤᡝ ᡝᡵᡝᠮᡝ ᡩᡝ

ᡝᡵᡝ ᠵᡠᠯᡝᠨ ᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠪᠠᠶᠠᠨᠠᠮᡝ ᠠᠮᡪᠠᠯᠠ ᡶᡳᠯᡝᠮᡝ ᠪᡝᠶᡝᠮᡝ᠃ API ᠵᡳᡵᡤᠠᡳ ᡤᠠᡳᡥᠠᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠵᠠᠯᠠᠨᠠᠮᡝ ᠪᡠᠶᡝᠮᡝ ᠮᡠᠰᡝᡳ ᠰᡠᠯᡠᠨᡩᡝ ᠪᠠᠶᠠᠨᠠᠮᡝ᠂ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠶᠠᠨ 7 ᡥᠠᠨ ᠰᠠᡳᠨᠠᠮᡝ᠃

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

ᠵᠠᡴᡠᠨᡳ ᠵᡠᠯᡝ ᡩᡝᡵᡤᡳ ᡩᡝᠪᡝᠰᡠᠮᡝ ᠵᡠᠯᡤᡝ ᠪᡠᠶᡝᠮᡝ᠈ ᡳᠨᡳ ᡤᡳᠰᡠᠨ ᠪᠠᡳ ᡝᠨᡝᠩᡤᡳ ᠠᠮᠪᡳ

•ᡴᠠᠷᠠᡴᡡ 88 / 4096

ᠰᡠᠨᡤᠠ ᡳ ᡩᡝᠯᡤᡳ ᠠᡵᠠᡵᠠ ᠪᡝ ᠵᠠᠯᠠᡵᠠᠮᠪᡝ ᡳ ᡥᡡᠯᠠᠨ.

•ᡴᠠᠷᠠᡴᡡ video_url
ᠪᡠᠮᠪᡳ ᡝᠮᡠ ᡩᠠᡵᠠᠮᡝ

ᠰᡠᠨᡤᠠ ᡳ URL, 2–15 ᠰᡝᡴᡠᠨᡩ ᡳ ᠵᡠᠯᡝ. MP4 ᠵᠠᠰᠠᡵᡝ ᡩᡝ ᠮᠠᠨᠵᡠ ᠪᡳ: H.264, H.265 ᠨᡝ AV1.

ᠵᡠᠯᡝ 6

ᠵᠠᠯᠠᡵᠠᠨ ᠵᡠᠯᡝ, ᠰᡝᡴᡠᠨᡩ ᡩᡝ ᠸᡝᠰᡳᠨ.

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ enable_safety_checker
POST /run/xai/grok-imagine-video/extend-video?wait=20 ᠵᠠᠯᡳᠨ → $0.52
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/xai/grok-imagine-video/extend-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ ᠪᡝ ᠵᠠᠯᠠᠨᠠᠮᡝ

ᡳᠨᡝ ᠵᠠᠯᠠᠨ ᡝᡵᡝ ᠪᡠᡵᡝᠪᡝᡵᡳ ᡩᡝ ᠪᡳᠮᡝ᠈ Doitong API ᡩᡝ ᠵᡝᠯᡤᡳ ᡩᠠᡵᠠᠮᡝ᠈ Remember ᠵᡠᠯᡝᠮᡝ ᡤᡳᠯᠠᠮᡝ localStorage ᡩᡝ ᠰᡠᠯᡝᠮᡝ ᠪᡳᠮᡝ API ᠵᠠᠯᠠᠨ ᠠᠪᠠᠮᡝ

Grok Imagine Extend Video ᡠᡵᡝᠮᡝ

`video_url` ᡩᡝ ᡝᠮᡤᡳᠯᡝᡥᡝ ᠪᡳᠳᡝᠨ ᡳ ᡩᡠᠯᡝᠮᡝ ᡩᡝ ᡥᡝᠰᡝ ᠪᡝ ᡝᠮᡤᡳᠯᡝᠮᡝ. MP4 (H.264, H.265 ᡳᠨᡠ AV1) ᠪᡳ ᡳᠨᡠ 2 ᡩᡝ 15 ᠰᡝᠯᡝᠨ. `prompt` ᡳ ᡳᠨᡠ ᡤᡝᠯᡳᠮᡝ ᠵᡠᠯᡤᡝᠨ ᠪᡝ ᡥᡡᠯᡝᠮᡝ, `duration` 2 ᡩᡝ 10 ᠰᡝᠯᡝᠨ (ᠠᠶᠠᠨ 6) ᠪᡝ ᠵᠠᠯᡳᠨᡩᡠᠮᡝ. ᠵᠠᠯᡳᠨ ᡩᡝ ᠠᠨᡝᠨ ᠪᡳᠳᡝᠨ ᡳᠨᡠ ᡶᡠᠯᡤᡳᠶᡝᠨ ᠪᡝ ᡝᠮᡠ ᠪᡳᠳᡝᠨ ᡩᡝ ᡠᠯᡥᡳᠮᡝ.

ᠵᠠᡴᡠᠨ

ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ ᠵᡝᠯᡤᡳ ᠠᠪᠠᠮᠪᡳ᠈ ᠨᡝᠮᡝ ᠮᡠᠰᡝ ᡠᠯᠠᠮᠪᡳ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
promptᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝstring
≤ 4,096 ᠵᡳᠪᡝᠨ
ᠰᡠᠨᡤᠠ ᡳ ᡩᡝᠯᡤᡳ ᠠᡵᠠᡵᠠ ᠪᡝ ᠵᠠᠯᠠᡵᠠᠮᠪᡝ ᡳ ᡥᡡᠯᠠᠨ.
video_urlᡴᠠᠷᠠᡴᡡ video
ᡠᠯᠠᠮᡝurl · video
ᠰᡠᠨᡤᠠ ᡳ URL, 2–15 ᠰᡝᡴᡠᠨᡩ ᡳ ᠵᡠᠯᡝ. MP4 ᠵᠠᠰᠠᡵᡝ ᡩᡝ ᠮᠠᠨᠵᡠ ᠪᡳ: H.264, H.265 ᠨᡝ AV1.
durationᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ6
2 – 10
ᠵᠠᠯᠠᡵᠠᠨ ᠵᡠᠯᡝ, ᠰᡝᡴᡠᠨᡩ ᡩᡝ ᠸᡝᠰᡳᠨ.
enable_safety_checkerᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝboolean
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝtrue
ᠠᠰᡠᡵᠠᠮᡝ ᠠᠨᡩᠠ ᠪᡳᠮᡝ ᠰᠠᡳᠨ᠈ ᠵᡠᠴᡝᠨ ᠵᡠᠰᡝ ᠠᠰᡠᡵᠠᠮᡝ᠉
ᡴᠠᠷᠠᡴᡡ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ᠈ ᠮᡠᠰᡝ ᡝᠮᡠ ᠠᠪᠠᠮᠪᡳ

ᠪᡠᠮᠪᡳᠯᡝᠰᡝ ᡝᠮᡠ ᡤᡝᠮᡠᠨᡳ https:// URL᠈ 10 MB ᡩᡝ ᡩᡝᠷᡤᡳ data: URI ᠵᡝᡵᡤᡳ ᡝᠮᡝ᠈ ᡳᠨᡝ ᠪᡠᠮᠪᡳᠯᡝᠰᡝᠨᡳ file_url ᠠᠪᠠᠮᠪᡳ ᠪᡠᠮᠪᡳ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-video/extend-video",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 520,
    "usd": "0.52",
    "charged": 520,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ᡤᡝᠯᡝᠮᡝ ᡥᡡᠯᡤᡠᠨᡳ ᡳᠨᡠᡝᠯᡝᡥᡝ outputs[].url ᠰᡠᠯᡠᠨ ᡩᡝ ᠰᡳᡵᡝ ᡶᡳᠯᡝ᠈ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠪᠠᠯᡳ ᠵᡝᠮᡤᡳᠨ GB-ᠪᡳᠶᠠ ᠵᡝᠮᡤᡳᠨ ᠪᡝ ᡝᠮᡠᠯᡝᠮᡝ ᠠᠪᠠᠯᡳ 7 ᡥᠠᠨ ᠰᡳᠯᡤᠠᠨ ᡩᡝ᠈ ᠰᡳᠨᡳ ᠪᠠᠯᠠᠨᠰᡳ ᠵᡠᠶᡝᡵᡝᠨ ᠠᠪᠠᠯᡳ ?storage= ᡩᡝ ᡝᠵᡝᠨ ᡥᠠᠯᠠᠮᡝ᠉
ᡝᠮᡠ ᡤᡳᠰᡠᠨ ᡝᠮᡠ ᠮᠣᡩᡝᠯ ᡩᡝtype, url, content_type, width, height ᠮᠠᠩᡤᡳ duration᠈ ᠵᠠᠯᠠᠨ᠈ ᠪᡠᠵᡠᠮᠪᡳ ᠮᠠᠩᡤᡳ ᠵᡝᡵᡤᡳ ᡩᡝᠨᡳ᠈ output ᠮᠣᡩᡝᠯᡳᠨᡳ ᡝᠮᡠ ᠵᠠᠯᠠᠨ
ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᡳᠰᡠᠨ
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}ᠵᡠᠯᡝ ᠰᡠᠨᡤᠠ ᡳ ᠠᠮᠠᠯᠠᡥᠠ ᠨᡝ ᠵᠠᠯᠠᡵᠠᠨ ᠪᡝ ᠨᡝᠮᡝ ᠵᠠᠯᠠᡥᠠ ᠰᡠᠨᡤᠠ.

ᡝᠯᡤᡳ ᡩᠠᠯᡳᠨ: ᠰᡠᠨᡤᠠ ᡩᡝ ᠰᡠᠨᡤᠠ

AI ᠠᡤᡝᠨᡨᡳ ᡠᠴᡠᠷᡳ᠈ ᡝᡵᡝ ᡩᡝᠪᡝᡵᡳ Markdown ᠰᡳᠨᡩᠠᡵᡳ https://doitong.com/mnc/developers/models/xai/grok-imagine-video/extend-video.md. ᡝᡵᡝ ᠮᠣᡩᡝᠯ ᠵᠠᡴᡠᠨ ᠰᡠᠯᡠᠮᡝ https://doitong.com/developers/llms.txt