# Magi-2

> Magi-2 是 Sand AI 的影片模型：單次生成可產出 4 到 30 秒、含音訊的 1080p 影片，可從提示詞、首尾影格，或參考圖片、影片和音訊生成。在 Kerox 上依輸出秒數計費，所有模式不論有無音訊都採用同一費率。你可以在 Studio 中開啟，或使用模型 ID sand-ai/magi-2 呼叫 API。

Magi-2 是 Sand AI 推出的 AI 影片生成模型。可透過 Kerox API 以模型 ID sand-ai/magi-2 呼叫，或在 Studio 中直接生成，無需撰寫程式碼。在 Kerox 上的價格為 $0.1000 / 秒 起，無需訂閱。

## 定價

| 模型 | ID | 計費方式 | Kerox 費率 | 折扣 |
| --- | --- | --- | --- | --- |
| Magi-2 | `sand-ai/magi-2` | 每秒 | 1080p: $0.1000 | — |

- [Magi-2 價格](https://kerox.ai/zh-hant/pricing#pricing-sand-ai/magi-2)
- [Magi-2 API 文件](https://kerox.ai/zh-hant/docs/models/sand-ai/magi-2)
- [Magi-2](https://kerox.ai/zh-hant/models/sand-ai/magi-2)

## 關於 Magi-2

Magi-2 是 Sand AI 的旗艦影片模型，繼 8 月推出開源的 Magi-2 Preview 之後，於 2026 年 11 月 24 日正式發表。Sand AI 在同一個模型中同時生成畫面與聲音：單一 Transformer 會一併讀取文字、影片和音訊，因此生成的片段會直接附帶完整音軌。以下重點整理自 Sand AI 的發表文章。

### Sand AI 對 Magi-2 的介紹

- **單次生成最長 30 秒的 1080p 影片。** Sand AI 單次生成即可產出最長 30 秒、每秒 25 個影格的 1080p 影片與音訊。基礎生成完成後，會再將解析度提升至 1080p。
- **聲音由同一個模型生成。** 嘴型同步的對白、音效、環境音和音樂都與畫面一起生成，而不是事後再加上。
- **文字、影片和音訊共用同一條資料流。** Sand AI 表示，這是一個單流混合專家（mixture-of-experts）Transformer，總參數約 480B，啟用參數約 28B。
- **多模態參考。** 單次生成最多可參考 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 段參考音訊。使用首影格時，影片會沿用該影格的長寬比。三種模式的價格相同。 呼叫方式、費用與替代方案：[Magi-2 API 指南](https://kerox.ai/zh-hant/blog/magi-2-api)

## 如何使用 Magi-2

1. **儲值** 最低儲值金額為 $5。不需訂閱，餘額也不會過期。
2. **設定影片** 輸入提示詞，選擇影片長度和長寬比，需要時再加入首影格或參考檔案。開始前會先顯示依目前設定計算的生成費用。
3. **生成並下載** 開始生成時會先預留款項，影片完成後再結算。生成失敗會全額退款。

## 用 Magi-2 能創作哪些內容

- **以文字生成有聲影片。** 只需一段提示詞，就能生成最長 30 秒、帶有自然聲音的 1080p 影片。
- **以圖片生成影片。** 可以只提供首個影格，也可以同時指定首尾影格，由模型補上中間的動作。
- **以參考圖片引導影片。** 傳入主體、產品或場景的圖片，再描述周圍的畫面。
- **有對白的場景。** 在引號中寫下對白，模型會為對白配音，並與說話者的口型同步。
- **依照參考聲音生成的片段。** 加入參考音訊，可用於人聲、節奏或一段音樂，總長最多 30 秒。

## Magi-2 與 Kerox 平台上的其他模型比較

這些模型都使用同一個餘額和同一個 API。要切換時，請更改模型 ID，並使用切換後模型支援的設定。起始價格列於表格中。

| 模型 | 適用時機 | 起始價格 |
| --- | --- | --- |
| [Magi-2](https://kerox.ai/zh-hant/models/sand-ai/magi-2) | Sand AI 的影片模型，影片長度 4 到 30 秒，解析度為 1080p 並附聲音，所有模式同一費率。適合需要對白或聲音的 1080p 長片段。 | 1080p: $0.1000 |
| [Seedance 2.5](https://kerox.ai/zh-hant/models/bytedance/seedance-2.5) | ByteDance 的影片模型，影片長度 4 到 30 秒，解析度可選 480p、720p 或 1080p，最多支援 30 張參考圖片。適合需要較低解析度或大量參考圖片時使用。 | 每秒約 $0.0977 起（480p） |
| [Kling 4.0](https://kerox.ai/zh-hant/models/kuaishou/kling-4.0) | Kuaishou 的影片模型，影片長度 3 到 30 秒，解析度可選 720p、1080p 或 4K。適合需要 4K 時使用。 | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Wan 3.0](https://kerox.ai/zh-hant/models/alibaba/wan-3.0) | Alibaba 的影片模型，影片長度 2 到 30 秒，解析度最高 1080p。適合短於 4 秒的片段。 | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |
| [MiniMax H3](https://kerox.ai/zh-hant/models/minimax/h3) | MiniMax 的影片模型，可生成 4 到 15 秒、768p 或 2K 的影片。想製作 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 影片最長可以多長？

單次可生成 4 到 30 秒的影片，以整秒為單位，預設為 5 秒。所有片段皆為 1080p，並只依輸出的秒數計費。

### Magi-2 會生成聲音嗎？

會。預設會生成音訊：Sand AI 會隨畫面一起生成對白、音效、環境音和音樂，且對白會與嘴型同步。若要無聲片段，請將 `generate_audio` 設為 false，或在 Studio 中關閉「Generate audio」。不論是否生成音訊，每秒價格都相同。

### Magi-2 的提示詞該怎麼寫？

依照事件發生的順序逐個鏡頭撰寫，並說明攝影機的位置。將台詞逐字放在引號中，並註明由誰說出。也要描述你想要的聲音。Sand AI 為 Magi-2 Preview 提供的提示詞指南建議對白保留原本的語言，並將片段拆成數個鏡頭，鏡頭之間直接切換。

### Magi-1、Magi-2 Preview 和 Magi-2 有什麼不同？

它們是 Sand AI 的三代模型。Magi-1 於 2025 年 4 月以 Apache 2.0 授權發布，以自迴歸方式逐段生成影片。Magi-2 Preview 於 2026 年 8 月以 Apache 2.0 授權開源，可生成 10 秒的有聲片段。Magi-2 於 2026 年 11 月推出，是規模更大的模型，訓練資料約為 Preview 的三倍，可生成最長 30 秒的 1080p 有聲影片。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/zh-hant/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/zh-hant/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/zh-hant/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/zh-hant/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/zh-hant/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/zh-hant/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
}
```
