---
title: creative_generate_video_batch
description: 動画生成ジョブを 1 件から 12 件まで一括で投入します。
canonical_url: https://orchestor.io/docs/mcp/tools/creative/creative_generate_video_batch
markdown_url: https://orchestor.io/docs/mcp/tools/creative/creative_generate_video_batch.md
contentType: reference
---

# creative_generate_video_batch

Creative フラグが有効なワークスペースで、動画生成ジョブを並行して投入します。書き込み権限とユーザー承認が必要です。HTTP エンドポイントは `POST /v1/creative/video/batch` です。

## パラメーター

| パラメーター | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `context` | string | いいえ | 用途を示す 500 文字以内の補足。 |
| `requests` | array または object | はい | 1〜12 件の `{index, params}`、または `{"ref":"sandbox:batch.json#/requests"}`。 |
| `requests[].index` | integer | はい | バッチ内で一意の 0 以上の整数。 |
| `requests[].params.model` | string | はい | Creative ルーターのモデル ID。 |
| `requests[].params.prompt` | string または object | モデルによる | プロンプト。または `{"ref":"sandbox:batch.json#/prompt"}` と `{"ref":"preset:/command"}`。 |
| `requests[].params.count` | integer | いいえ | `1` 固定。既定値は `1`。 |

`get_cost` を指定すると入力エラーが返ります。`creative_estimate` は再利用可能な見積もり参照を返さないため、`params.ref` を指定した項目には `unsupported_quote_ref` が返ります。

サンドボックスの参照先は接続中のワークスペースです。パスを `/home/user` からの相対パスか絶対パスで指定します。ファイルの上限は 1 MiB です。`preset:/command` は Creative スキル本文の最初の `text` コードブロックを読み取ります。

各 `medias` 項目には `value` と `role` を指定します。`value` はワークスペース内のアップロードの `media_id` または完了したジョブの ID です。`folder_id` を使う場合は Creative プロジェクトの `default_folder_id` を指定してください。

`duration` は秒単位の整数で、動画ルーターの `duration_seconds` に変換されます。
`medias` は `start_image`、`end_image`、`video`、`audio` と、複数参照用の `image_references`、`video_references`、`audio_references` を受け付けます。
生成ルーター固有の設定は `params` に直接指定します。アルファ版では `preset_id` を指定すると、該当項目にエラーが返ります。

```json
{
  "requests": [
    { "index": 0, "params": { "model": "veo-3.1", "prompt": "海岸に朝日が昇る" } }
  ]
}
```

## 承認と結果

最初の MCP 呼び出しで返るプランをユーザーに提示します。承認後に同じ引数を再送し、`tools/call` の `params._meta` に `approval_receipt` と、プランの `request.idempotencyKey` を `idempotency_key` として指定します。HTTP では `Idempotency-Key` ヘッダーを指定します。

`jobs` には `index`、`job_id`、`status` が入り、`errors` には `index`、`code`、`message` が入ります。ジョブ作成後に処理キューへの登録が失敗した場合は、同じ `index` が両方に含まれます。戻ったジョブ ID を保存し、[creative_jobs_wait](https://orchestor.io/docs/mcp/tools/creative/creative_jobs_wait.md) で状態を確認します。再送時は元のキーと入力を再利用します。

[Creative](https://orchestor.io/docs/mcp/tools/creative.md) · [ツール](https://orchestor.io/docs/mcp/tools.md)

---

[Documentation index](https://orchestor.io/docs/llms.txt)
