# Magi-2

> Magi-2はSand AIの動画モデルです。プロンプト、最初と最後のフレーム、あるいは参照用の画像・動画・音声から、1回の生成で4〜30秒の音声付き1080p動画を出力できます。Keroxでは出力時間に応じた秒単位の課金で、音声の有無やモードを問わず一律料金です。Studioで開くか、モデルID「sand-ai/magi-2」を指定してAPIを呼び出してください。

Magi-2 は Sand AI が提供する動画生成AIです。モデル ID sand-ai/magi-2 を指定して Kerox API から呼び出すか、コードを書かずに Studio で生成できます。Kerox では$0.1000/秒から利用でき、サブスクリプションは不要です。

## 料金

| モデル | ID | 課金単位 | Kerox 料金 | 割引 |
| --- | --- | --- | --- | --- |
| Magi-2 | `sand-ai/magi-2` | 1秒あたり | 1080p: $0.1000 | — |

- [Magi-2 の料金](https://kerox.ai/ja/pricing#pricing-sand-ai/magi-2)
- [Magi-2 API ドキュメント](https://kerox.ai/ja/docs/models/sand-ai/magi-2)
- [Magi-2](https://kerox.ai/ja/models/sand-ai/magi-2)

## Magi-2 について

Magi-2は、8月のオープンソース版Magi-2 Previewに続き、2026年11月24日に公開されたSand AIのフラッグシップ動画モデルです。Sand AIは映像と音声を1つのモデルで統合的に生成します。単一のTransformerがテキスト、動画、音声をまとめて読み込むため、映像と同時にサウンドトラックも出力されます。以下はSand AIの発表記事で紹介されているポイントです。

### Sand AIが公表しているMagi-2の特徴

- **1回の生成で最大30秒の1080p動画。** Sand AIは、1回の生成で毎秒25フレーム・最大30秒の1080p動画と音声を出力します。1080p解像度は、ベース生成後のアップスケーリング処理によるものです。
- **同一モデルで音声も生成。** リップシンク付きのセリフ、効果音、環境音、音楽は後から追加されるのではなく、映像と同時に生成されます。
- **テキスト、動画、音声を単一ストリームで処理。** Sand AIによると、単一ストリームのMixture-of-Experts Transformerを採用しており、総パラメータ数は約4,800億、アクティブパラメータ数は約280億です。
- **マルチモーダル参照。** 1回の生成につき、最大10枚の画像、5本の動画、5つの音声クリップを参照として指定できます。
- **長回しでも高い安定性。** Sand AIは、指示への追従性、複雑な構図表現、そして長尺動画における空間的・時間的な一貫性を強みとして挙げています。

Sand AIは既存動画の編集機能やタイムライン制御も紹介していますが、これらはKeroxではまだ利用できません。

Kerox では、Magi-2 を使って4〜30秒の 1080p 動画を生成できます。アスペクト比は 16:9、9:16、1:1、4:3、3:4、21:9 に対応し、デフォルトで音声付きです。リクエストには、プロンプトのみ、開始フレーム（終了フレームは任意）、または参照素材（最大で画像10枚、動画5本、音声クリップ5つ）を指定できます。開始フレームを指定すると、そのアスペクト比が動画に引き継がれます。3つのモードはいずれも同じ料金です。 呼び出し方法、料金、代替モデル：[Magi-2 API ガイド](https://kerox.ai/ja/blog/magi-2-api)

## Magi-2の使い方

1. **残高をチャージ** $5 からチャージできます。サブスクリプションは不要で、残高に有効期限はありません。
2. **動画を設定** プロンプトを入力し、長さとアスペクト比を選択して、必要に応じて開始フレームや参照ファイルを追加します。この設定での料金は開始前に表示されます。
3. **生成してダウンロード** 料金は開始時に仮押さえされ、動画の完成時に確定します。生成に失敗した場合は全額返金されます。

## Magi-2で作れるもの

- **テキストから作る音声付き動画。** プロンプトだけで、自然な音声付きの 1080p 動画を最大30秒まで生成できます。
- **画像から作る動画。** 開始フレームから始めたり、開始フレームと終了フレームを指定して間の動きをモデルに補完させたりできます。
- **参照素材をもとにした動画。** 被写体、商品、ロケーションの画像を渡し、それを軸にしたシーンを描写します。
- **セリフのあるシーン。** セリフを引用符（""）で囲んで書くと、話者の口の動きに合わせてモデルが声を当てます。
- **参照音声に合わせた動画。** 声、リズム、音楽の参照音声を合計最大30秒まで追加できます。

## Magi-2とKerox上の他モデルを比較

これらはいずれも同じ残高と同じ API で利用できます。別のモデルに切り替えるには、モデル ID を変更し、そのモデルが対応する設定に合わせてください。最低料金は表に記載しています。

| モデル | おすすめのケース | 最低料金 |
| --- | --- | --- |
| [Magi-2](https://kerox.ai/ja/models/sand-ai/magi-2) | Sand AI の動画モデルです。4〜30秒の音声付き 1080p 動画に対応し、どのモードでも料金は一律です。セリフや音声を含む長尺の 1080p 動画におすすめです。 | 1080p: $0.1000 |
| [Seedance 2.5](https://kerox.ai/ja/models/bytedance/seedance-2.5) | ByteDanceの動画モデルです。480p、720p、1080pで4〜30秒の動画を生成でき、最大30枚の参照画像に対応しています。低解像度で生成したい場合や、多くの参照画像を使いたい場合におすすめです。 | 約$0.0977/秒〜（480p） |
| [Kling 4.0](https://kerox.ai/ja/models/kuaishou/kling-4.0) | Kuaishouの動画モデルです。720p、1080p、4Kで3〜30秒の動画を生成できます。4Kが必要な場合におすすめです。 | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/ja/models/alibaba/wan-3.0) | Alibabaの動画モデルです。最大1080pで2〜30秒の動画を生成できます。4秒未満の短い動画におすすめです。 | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |
| [MiniMax H3](https://kerox.ai/ja/models/minimax/h3) | MiniMaxの動画モデルです。768pまたは2Kで4〜15秒の動画を生成できます。短い2K動画におすすめです。 | 2K: $0.0650, 768p: $0.0400 |

## よくある質問

### Magi-2の料金はいくらですか？

KeroxでのMagi-2の料金は$0.1000/秒からです。生成ごとに課金され、失敗した場合は請求されません。このページの料金表にすべてのオプションを記載しています。

### Magi-2はAPIに対応していますか？

はい。モデルID「sand-ai/magi-2」を指定してKerox APIにタスクを送信し、ポーリングで確認するか、完了時にWebhookで通知を受け取れます。Magi-2のAPIドキュメントに、すべてのパラメータとコード例を記載しています。

### コードを書かずにオンラインでMagi-2を使えますか？

はい。Kerox StudioでMagi-2を開き、プロンプトを入力してブラウザ上で生成できます。StudioとAPIは同じ残高を使用します。

### Magi-2の利用にサブスクリプションは必要ですか？

いいえ。定額プランや月額料金はありません。$5からチャージでき、生成した分だけ課金されます。

### Magi-2 の使い方は？

Kerox にサインインし、Studio で Magi-2 を開いてプロンプトを入力すれば、ブラウザ上で生成できます。コードから利用する場合は、API キーを作成し、モデル ID sand-ai/magi-2 を指定してタスクを送信してください。

### Magi-2 は無料で使えますか？

Magi-2 は Kerox の有料モデルです。生成に成功するたびにこのページに記載の料金がかかり、失敗した生成は無料です。月額料金はなく、$5 のチャージから始められます。

### Magi-2で生成できる動画の長さはどれくらいですか？

1回の生成につき、4〜30秒を1秒単位で指定できます。デフォルトは5秒です。すべての動画は1080pで、出力された秒数分のみ課金されます。

### Magi-2は音声も生成できますか？

はい。音声はデフォルトでオンになっており、Sand AIが映像に合わせてリップシンク付きのセリフ、効果音、環境音、音楽を生成します。無音の動画にするには、`generate_audio`をfalseに設定するか、Studioで「音声を生成」をオフにしてください。1秒あたりの料金はどちらでも同じです。

### Magi-2のプロンプトはどのように書けばよいですか？

出来事が起こる順に、ショット単位で書き、カメラの位置も明記してください。セリフは一字一句そのまま引用符で囲み、誰が話すかも指定します。入れたい音についても描写してください。Sand AIのMagi-2 Preview向けプロンプトガイドでは、セリフを元の言語のまま記述し、動画を複数のショットに分け、カットでつなぐ構成にしています。

### Magi-1、Magi-2 Preview、Magi-2の違いは何ですか？

これらはSand AIによる3つの世代のモデルです。2025年4月にApache 2.0で公開されたMagi-1は、チャンク単位の自己回帰方式で動画を生成します。2026年8月にApache 2.0でオープンソース化されたMagi-2 Previewは、10秒の音声付き動画を生成します。2026年11月にリリースされたMagi-2は、Previewの約3倍のデータで学習されたより大規模なモデルで、音声付きの1080p動画を最大30秒まで生成します。KeroxではMagi-2を採用しています。Magi-2自体の重みはまだ公開されていませんが、Sand AIは今後オープンソース公開とテクニカルレポートの発表を予定しているとしています。


---

## Request example

Submit a task and get its id at once; get the result by polling (below) or by [webhook](https://kerox.ai/ja/docs/webhooks.md). `webhook_url` and `metadata` are optional. To use a webhook, provide your own public HTTPS address in `webhook_url`. Every field is in [Submit a task](https://kerox.ai/ja/docs/tasks.md#submit-body).

Set `KEROX_API_KEY` first. Polling requires Bash, curl and jq. For Python, run `pip install requests` first.

### cURL

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }
}'
```

### Python

```python
import os
import requests

resp = requests.post(
    "https://api.kerox.ai/v1/tasks",
    headers={
        "Authorization": f"Bearer {os.environ['KEROX_API_KEY']}",
        "Content-Type": "application/json",
    },
    json={
        "model": "sand-ai/magi-2",
        "input": {
            "prompt": "a red fox running through fresh snow, cinematic lighting",
            "resolution": "1080p",
            "duration": 5,
            "aspect_ratio": "16:9",
        },
    },
    timeout=60,
)
resp.raise_for_status()
task = resp.json()
print(task["id"], task["status"])  # Save the id for polling
```

### Node.js

```javascript
const res = await fetch('https://api.kerox.ai/v1/tasks', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.KEROX_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "sand-ai/magi-2",
    "input": {
      "prompt": "a red fox running through fresh snow, cinematic lighting",
      "resolution": "1080p",
      "duration": 5,
      "aspect_ratio": "16:9"
    }
  }),
});
const task = await res.json();
if (!res.ok) throw new Error(JSON.stringify(task));
console.log(task.id, task.status); // Save the id for polling
```

### Go

```go
package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
	"os"
	"time"
)

func main() {
	body := []byte(`{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }
}`)
	req, _ := http.NewRequest("POST", "https://api.kerox.ai/v1/tasks", bytes.NewReader(body))
	req.Header.Set("Authorization", "Bearer "+os.Getenv("KEROX_API_KEY"))
	req.Header.Set("Content-Type", "application/json")
	client := &http.Client{Timeout: 60 * time.Second}
	resp, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	out, _ := io.ReadAll(resp.Body)
	if resp.StatusCode >= 400 {
		fmt.Fprintln(os.Stderr, string(out))
		os.Exit(1)
	}
	fmt.Println(string(out))
}
```

### Reference image

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "Image 1: the lighthouse beam sweeps slowly across the water",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "images": [
      "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp"
    ]
  }
}'
```

### First frame

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "A lighthouse beam sweeps slowly across the waves",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "first_frame": "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp"
  }
}'
```

### First and last frames

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "Slowly dissolve from the coast to the cabin by the lake",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "first_frame": "https://cdn.kerox.ai/assets/samples/seedream-5.5/lighthouse-blue-hour.webp",
    "last_frame": "https://cdn.kerox.ai/assets/samples/seedream-5.0-pro/alpine-cabin-dawn.webp"
  }
}'
```

### Reference video

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "Use the camera motion of Video 1 for a flyover of a rocky coastline",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "videos": [
      "https://cdn.kerox.ai/assets/samples/seedance-2.0/sea-stacks-fog.mp4"
    ]
  }
}'
```

### Reference audio

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/tasks \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "Show a dinosaur at dusk and time its roar to Audio 1",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "audios": [
      "https://interactive-examples.mdn.mozilla.net/media/cc0-audio/t-rex-roar.mp3"
    ]
  }
}'
```

## Parameters

The [parameter names](https://kerox.ai/ja/docs/models.md) mean the same on every model.

| Parameter | Type | Required | Default | Values | Description | Example |
| --- | --- | --- | --- | --- | --- | --- |
| `prompt` | string | No | — | at least one non-whitespace character; 1–15000 characters | Text describing what to generate. | `"A lighthouse at dawn"` |
| `images` | string \| string[] | No | — | one public HTTPS URL; one string or an array of 1–10 items | Images for the model to draw on, in the order the prompt refers to them. | `"https://example.com/photo.png"` |
| `videos` | string \| string[] | No | — | one public HTTPS URL; one string or an array of 1–5 items; At least 2 seconds per clip and at most 30 seconds total for this media type. Video and audio are counted separately. | Videos for the model to draw on, in the order the prompt refers to them. | `"https://example.com/clip.mp4"` |
| `audios` | string \| string[] | No | — | one public HTTPS URL; one string or an array of 1–5 items; At least 2 seconds per clip and at most 30 seconds total for this media type. Video and audio are counted separately. | Audio clips for the model to draw on, in the order the prompt refers to them. | `"https://example.com/music.wav"` |
| `first_frame` | string | No | — | one public HTTPS URL | The image a video starts from. | `"https://example.com/start.png"` |
| `last_frame` | string | No | — | one public HTTPS URL | The image a video ends on. Needs `first_frame`. | `"https://example.com/end.png"` |
| `aspect_ratio` | string | No | — | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Width to height of the output. | `"16:9"` |
| `resolution` | string | No | `"1080p"` | 1080p | Output resolution tier. The exact pixels follow from it and `aspect_ratio`. | `"1080p"` |
| `duration` | integer | No | `5` | 4–30 | Length of the output in whole seconds. | `5` |
| `seed` | integer | No | — | 0–2147483647 | The same seed and input give a similar result. | `0` |
| `generate_audio` | boolean | No | `true` | true, false | Whether the video comes with generated sound (voice, effects, music). | `true` |
| `n` | integer | No | `1` | 1 | How many outputs one task may produce. | `1` |

- last_frame requires first_frame
- When first_frame: omit images or videos or audios
- Supply a prompt for text or reference generation. With a first frame the prompt is optional. With a first frame the video follows the frame's aspect ratio and `aspect_ratio` has no effect; the other modes use 16:9 when it is omitted.
- Only output seconds are billed. Reference media and the audio switch do not change the price.

Use a public HTTPS URL directly for images, audio and video. For local media, upload with `POST /v1/files` and pass the returned `url`. For upload MIME and size limits, see [Files & inputs](https://kerox.ai/ja/docs/files.md#presigned).

Not supported yet: `watermark`.

## Polling and output

Poll `GET /v1/tasks/{id}`, or pass `webhook_url` when you submit and receive the same task object when it finishes: see [Webhooks](https://kerox.ai/ja/docs/webhooks.md) for the setup. Output files expire at `expires_at` (7 days after completion), so download anything you want to keep. See every task field in [Tasks & polling](https://kerox.ai/ja/docs/tasks.md#submit-response).

Set `TASK_ID` to the `id` returned on submission. The script waits up to 10 minutes, prints `error` on failure and downloads every `outputs[].url` on success.

```bash
(
  set -eu
  # Set TASK_ID to the id returned by the submit request.
  : "${TASK_ID:?Set TASK_ID}"
  deadline=$((SECONDS + 600))
  while (( SECONDS < deadline )); do
    task=$(curl --fail-with-body --silent --show-error --max-time "$((deadline - SECONDS))" https://api.kerox.ai/v1/tasks/"$TASK_ID" \
      -H "Authorization: Bearer $KEROX_API_KEY")
    case $(jq -er .status <<< "$task") in
      succeeded)
        if ! jq -e '.outputs | length > 0' <<< "$task" >/dev/null; then
          echo "Result files are unavailable." >&2
          exit 1
        fi
        i=0
        while IFS= read -r url; do
          file_path=${url%%\?*}
          filename="output-${i}.${file_path##*.}"
          curl --fail-with-body --silent --show-error --max-time 120 "$url" -o "$filename"
          printf "%s\n" "$filename"
          i=$((i + 1))
        done < <(jq -r '.outputs[].url' <<< "$task")
        exit 0 ;;
      failed) jq -c .error <<< "$task" >&2; exit 1 ;;
      processing) sleep 2 ;;
      *) echo "Unexpected task status." >&2; exit 1 ;;
    esac
  done
  echo "Poll timed out. Keep TASK_ID to check again later." >&2
  exit 1
)
```

### Success response JSON

Actual charges depend on your account price and task result.

```json
{
  "id": "task_01JD8X9B4Q2M7T8N3K5P6R1S0V",
  "object": "task",
  "model": "sand-ai/magi-2",
  "status": "succeeded",
  "source": "api",
  "format": "unified",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9"
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://cdn.kerox.ai/t/task_01JD8X9B4Q2M7T8N3K5P6R1S0V/5f2b8c1e9d3a4f6b8a7c0d1e2f3a4b5c/0.mp4",
      "content_type": "video/mp4",
      "width": 1920,
      "height": 1080,
      "duration": 5
    }
  ],
  "outputs_deleted": false,
  "error": null,
  "cost": {
    "amount": "0.5000",
    "currency": "USD",
    "status": "settled"
  },
  "metadata": null,
  "warnings": [],
  "created_at": "2026-11-20T08:00:00Z",
  "started_at": "2026-11-20T08:00:01Z",
  "completed_at": "2026-11-20T08:01:10Z",
  "expires_at": "2026-11-27T08:01:10Z"
}
```

## Pricing

| Tier | Kerox / second |
| --- | --- |
| 1080p | $0.1000 |

### Estimate before submitting

The returned `amount` is what submitting would hold. An estimate creates no task and charges nothing. When `exact` is `false`, the final charge may differ from the hold.

### Without a reference video

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/estimate \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }
}'
```

### With a reference video

```bash
curl --fail-with-body -X POST https://api.kerox.ai/v1/estimate \
  -H "Authorization: Bearer $KEROX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sand-ai/magi-2",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "1080p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "videos": [
      "https://cdn.kerox.ai/assets/samples/seedance-2.0/sea-stacks-fog.mp4"
    ]
  }
}'
```

## Common usage

| Clip | Kerox |
| --- | --- |
| 5 s · 1080p | $0.5000 |
| 10 s · 1080p | $1.0000 |
| 15 s · 1080p | $1.5000 |

- **$10 gets you**: 100 seconds of 1080p video

## Input schema (JSON)

### Parameters (`unified.input_schema`)

```json
{
  "type": "object",
  "allOf": [
    {
      "if": {
        "required": [
          "first_frame"
        ],
        "properties": {
          "first_frame": true
        }
      },
      "else": {
        "required": [
          "prompt"
        ],
        "properties": {
          "prompt": true
        }
      },
      "then": {
        "not": {
          "anyOf": [
            {
              "required": [
                "images"
              ],
              "properties": {
                "images": true
              }
            },
            {
              "required": [
                "videos"
              ],
              "properties": {
                "videos": true
              }
            },
            {
              "required": [
                "audios"
              ],
              "properties": {
                "audios": true
              }
            }
          ]
        }
      }
    }
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "prompt": {
      "type": "string",
      "pattern": "\\S",
      "maxLength": 15000,
      "minLength": 1,
      "description": "Text describing what to generate.",
      "x-label-en": "Prompt",
      "x-label-zh": "提示词",
      "x-tier": "common"
    },
    "images": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^https://"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          },
          "maxItems": 10,
          "minItems": 1
        }
      ],
      "description": "Images for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference images",
      "x-label-zh": "参考图",
      "x-tier": "common"
    },
    "videos": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^https://"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          },
          "maxItems": 5,
          "minItems": 1
        }
      ],
      "x-constraints": {
        "min_clip_seconds": 2,
        "max_total_seconds": 30
      },
      "description": "Videos for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference videos",
      "x-label-zh": "参考视频",
      "x-tier": "advanced"
    },
    "audios": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^https://"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^https://"
          },
          "maxItems": 5,
          "minItems": 1
        }
      ],
      "x-constraints": {
        "min_clip_seconds": 2,
        "max_total_seconds": 30
      },
      "description": "Audio clips for the model to draw on, in the order the prompt refers to them.",
      "x-label-en": "Reference audio",
      "x-label-zh": "参考音频",
      "x-tier": "advanced"
    },
    "first_frame": {
      "type": "string",
      "pattern": "^https://",
      "description": "The image a video starts from.",
      "x-label-en": "First frame",
      "x-label-zh": "首帧",
      "x-tier": "common"
    },
    "last_frame": {
      "type": "string",
      "pattern": "^https://",
      "description": "The image a video ends on. Needs `first_frame`.",
      "x-label-en": "Last frame",
      "x-label-zh": "尾帧",
      "x-tier": "advanced"
    },
    "aspect_ratio": {
      "enum": [
        "16:9",
        "9:16",
        "1:1",
        "4:3",
        "3:4",
        "21:9"
      ],
      "type": "string",
      "description": "Width to height of the output.",
      "x-label-en": "Aspect ratio",
      "x-label-zh": "画面比例",
      "x-tier": "common"
    },
    "resolution": {
      "enum": [
        "1080p"
      ],
      "type": "string",
      "default": "1080p",
      "description": "Output resolution tier. The exact pixels follow from it and `aspect_ratio`.",
      "x-label-en": "Resolution",
      "x-label-zh": "分辨率",
      "x-tier": "common"
    },
    "duration": {
      "type": "integer",
      "default": 5,
      "maximum": 30,
      "minimum": 4,
      "description": "Length of the output in whole seconds.",
      "x-label-en": "Duration",
      "x-label-zh": "时长",
      "x-tier": "common"
    },
    "seed": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": 0,
      "description": "The same seed and input give a similar result.",
      "x-label-en": "Seed",
      "x-label-zh": "随机种子",
      "x-tier": "advanced"
    },
    "generate_audio": {
      "type": "boolean",
      "default": true,
      "description": "Whether the video comes with generated sound (voice, effects, music).",
      "x-label-en": "Generate audio",
      "x-label-zh": "生成声音",
      "x-tier": "common"
    },
    "n": {
      "type": "integer",
      "const": 1,
      "default": 1,
      "description": "How many outputs one task may produce.",
      "x-label-en": "Number of outputs",
      "x-label-zh": "生成数量",
      "x-tier": "advanced"
    }
  },
  "x-unsupported": [
    "watermark"
  ],
  "dependentRequired": {
    "last_frame": [
      "first_frame"
    ]
  },
  "additionalProperties": false
}
```
