Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す
テキストから動画xAI

Grok Imagine Video

APIドキュメント
x-ai/grok-imagine-video

Grok Imagine Video by xAI makes a 1 to 15 second video with native audio at 480p or 720p from text, a first frame or up to 7 reference images, and edits or extends videos. Call it from this page, through /v1/run, or with the xAI Videos API at SandBase.

モデルを試す

プレイグラウンド

Playground を開く
入力
Describe the scene, motion, camera and sound. Required without images.

PNG、JPEG、WebP、GIF · 最大 20 MiB

Optional image to start the video from (upload or public HTTPS URL).
115
Output length in seconds (1-15, up to 10 with reference images). Billed per second. 範囲: 1 から 15 まで。
480p or 720p.
Output aspect ratio. Omit it to use 16:9, or the first frame's shape when you give one.
詳細設定

PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 7

Up to 7 images of characters, objects or styles to keep. Cannot be combined with a first frame; up to 10 seconds.
Per run$0.4
結果
待機中

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

Grok Imagine Video

Grok Imagine Video is xAI's previous video model. It makes a 1 to 15 second clip with native audio at 480p or 720p from a prompt, a first frame, or up to 7 reference images, and it can also edit or extend an existing video. For 1080p and last frames, use Grok Imagine Video 1.5.

Use the form on this page, call x-ai/grok-imagine-video through /v1/run, or call the xAI API below with model: grok-imagine-video. Both bill the same as xAI.

Inputs

Pick one: text only, a first frame, or reference images (a first frame and reference images cannot be combined).

FieldTypeDefaultNotes
promptstring—Scene, motion, camera and sound. Required for text only.
imageimage—First frame.
reference_imagesimage list, up to 7—Characters, objects or styles to keep. Up to 10 seconds.
durationinteger 1–158Output length in seconds.
resolution480p / 720p480pSets the per-second rate.
aspect_ratio16:99:161:14:33:43:22:321:95:216:9, or the first frame's shapeOutput shape.

To edit or extend a video, use the Video Edit and Video Extend models, or /videos/edits and /videos/extensions in the xAI API.

xAI API

SandBase implements xAI's Images and Videos API under https://api.sandbase.ai/grok/v1. Requests and responses match xAI's API reference field by field, so the xAI SDK or any OpenAI-style HTTP client works after you change the base URL and use your SandBase API key.

xAISandBase
Base URLhttps://api.x.ai/v1https://api.sandbase.ai/grok/v1
CreatePOST /videos/generationsPOST /videos/generations
Edit a videoPOST /videos/editsPOST /videos/edits
Extend a videoPOST /videos/extensionsPOST /videos/extensions
RetrieveGET /videos/{request_id}GET /videos/{request_id}
modelgrok-imagine-videogrok-imagine-video
curl https://api.sandbase.ai/grok/v1/videos/extensions \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-video",
    "prompt": "The fox keeps running into the forest",
    "video": {"url": "https://example.com/fox.mp4"},
    "duration": 4
  }'

The response is {"request_id": "..."}. Poll GET /grok/v1/videos/{request_id} every 5 to 10 seconds. pending means keep polling; done returns video.url, video.duration and usage.cost_in_usd_ticks (the charge in units of 1/10,000,000,000 USD); failed and expired are final and are not billed. Media can be public HTTPS or data: URLs. output and storage_options are not supported. Edits keep the source length and resolution; extensions add 2 to 10 seconds and return the full video.

Billing

Per output second: $0.05 at 480p, $0.07 at 720p. Each input image adds $0.002. Failed runs are not billed.

Request480p720p
Generate 8s (default)$0.40$0.56
Generate 15s$0.75$1.05
Edit, per source second$0.06$0.08
Extend by N secondsN × $0.05 + $0.01 per second of the sourceN × $0.07 + $0.01 per second of the source

One mode at a time

Learn more