コンテンツへスキップ

Grok Imagine Video 1.5 Reference to Video

統合

モデルID xai/grok-imagine-video/v1.5/reference-to-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/v1.5/reference-to-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",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# 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.65 650 APIクレジット 実行前にファイルを計測します このページで実行

APIキーを取得
xAI 参照画像から動画 参照入力リップシンク1–15 s720pまで #stylized#transform#lipsync

<IMAGE_0>、<IMAGE_1>のタグを付けた最大7枚の画像と、最大15秒のクリップに対応するVersion 1.5 reference-to-video

xAI · 動画

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須 88 / 4096

作成する動画を指定するプロンプト。<IMAGE_0>、<IMAGE_1>以降のタグで参照を識別します。

•必須 reference_image_urls
ファイルをドロップ、または · 7まで

動画のスタイルと内容の指針となる参照画像URL。1~7枚を指定し、プロンプト内で<IMAGE_0>、<IMAGE_1>以降のタグを使用して参照します。

resolution デフォルト 480p

出力動画の解像度です。

aspect_ratio デフォルト 16:9

結果の動画のアスペクト比。

デフォルト 8

秒単位で表す動画の長さ。

詳細設定 enable_safety_checker
POST /run/xai/grok-imagine-video/v1.5/reference-to-video?wait=20 見積もり → $0.65
# 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/v1.5/reference-to-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",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# 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にのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

Grok Imagine Video 1.5 Reference to Videoについて

`reference_image_urls`内の1〜7枚の参照画像とプロンプトから動画を生成します。テキスト内で各画像を<IMAGE_0>や<IMAGE_1>のようなタグで参照します。以前の参照モデルと比べ、`duration`は最大15秒(デフォルト8)に対応します。出力は480pまたは720pで、アスペクト比は16:9〜9:16です。

パラメータ

正式名称またはネイティブ名のいずれか一方を送信してください。両方は送信しないでください。 正式名称

名前型 デフォルト許可される値 説明
prompt必須
型string
≤ 4,096文字
作成する動画を指定するプロンプト。<IMAGE_0>、<IMAGE_1>以降のタグで参照を識別します。
reference_image_urls必須 images
型url[] · image
≤ 7項目
動画のスタイルと内容の指針となる参照画像URL。1~7枚を指定し、プロンプト内で<IMAGE_0>、<IMAGE_1>以降のタグを使用して参照します。
duration任意
型integer
デフォルト8
1 – 15
秒単位で表す動画の長さ。
resolution任意
型enum
デフォルト480p
480p720p
出力動画の解像度です。
aspect_ratio任意
型enum
デフォルト16:9
16:94:33:21:12:33:49:16
結果の動画のアスペクト比。
enable_safety_checker任意
型boolean
デフォルトtrue
呼び出し元に権限がある場合、false に設定するとスクリーニングを緩和できます。
必須 正式名称(こちらも使用可能)

ファイルパラメータには、公開されたhttps:// URL、10 MBまでのdata: URI、またはアップロードしたファイルのfile_urlを指定します。 ファイル

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "xai/grok-imagine-video/v1.5/reference-to-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": 650,
    "usd": "0.65",
    "charged": 650,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "reference_image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "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はストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、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/ja/developers/models/xai/grok-imagine-video/v1.5/reference-to-video.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt