# Kling 4.0

> Kling 4.0 是快手的影片模型，可生成 3 到 30 秒、720p、1080p 或 4K 的短片。可從提示詞、首尾影格，或參考圖片、影片與音訊生成。在 Studio 中開啟 Kling 4.0，即可選擇解析度與片長，並在生成前查看價格。

Kling 4.0 是 Kuaishou 推出的 AI 影片生成模型。可透過 Kerox API 以模型 ID kuaishou/kling-4.0 呼叫，或在 Studio 中直接生成，無需撰寫程式碼。在 Kerox 上的價格為 $0.1413 / 秒，比官方價格低 10% 起，無需訂閱。

## 定價

| 模型 | ID | 計費方式 | Kerox 費率 | 折扣 |
| --- | --- | --- | --- | --- |
| Kling 4.0 | `kuaishou/kling-4.0` | 每秒 | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 | 比官方價格低 10% |

- [Kling 4.0 價格](https://kerox.ai/zh-hant/pricing#pricing-kuaishou/kling-4.0)
- [Kling 4.0 API 文件](https://kerox.ai/zh-hant/docs/models/kuaishou/kling-4.0)
- [Kling 4.0](https://kerox.ai/zh-hant/models/kuaishou/kling-4.0)

## 關於 Kling 4.0

Kling 4.0 是快手推出的影片生成模型，也是 Kling 系列的最新版本。快手將它定位為邁向專業級製作的一步，具備穩定的動態表現，且畫面與聲音相互配合。以下重點取自快手官方網站。

### 快手對 Kling 4.0 的說法

- **專為專業製作打造。** 快手表示，Kling 4.0 將影片生成提升到專業級製作水準。
- **穩定的動態表現。** 官方表示此模型在動態場景中依然穩定，影音呈現效果真實自然。
- **更多運鏡方式。** 快手列出的涵蓋範圍包括高速動作、連續運動、跟拍鏡頭、環繞鏡頭和特寫。
- **角色表現力豐富。** 官方描述此模型能捕捉細膩的臉部表情和肢體語言。
- **最多可輸入 10 張圖片。** 根據快手的製作說明，每次生成最多可使用 10 張圖片作為參考素材。

在 Kerox 上，Kling 4.0 支援 720p、1080p 和 4K 解析度，片長 3 到 30 秒，長寬比可選 16:9、9:16、1:1 或 21:9。每次請求可附上首影格和尾影格，或最多 10 張參考圖片、5 部參考影片和 3 段音訊。目前尚不支援編輯或延長現有影片。

## 如何使用 Kling 4.0

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

## 用 Kling 4.0 能創作哪些內容

- **文字生成影片。** 只需提示詞，即可生成 3 到 30 秒的影片。
- **以參考圖片引導生成影片。** 提供最多 10 張主體、產品或場景的圖片，並描述鏡頭。
- **圖片生成影片。** 從第一個影格開始生成，或同時設定第一個與最後一個影格。
- **4K 長鏡頭。** 單次生成最長 30 秒、最高 4K，足以完成一整個場景。
- **依照參考影片生成片段。** 加入參考影片作為動作依據，也可選擇讓成品沿用其原始聲音。

## Kling 4.0 與 Kerox 平台上的其他模型比較

這些模型共用同一個餘額與同一套 API。切換時只要更換模型 ID，並使用切換後模型支援的設定。起始價格請見表格。

| 模型 | 適用時機 | 起始價格 |
| --- | --- | --- |
| [Kling 4.0](https://kerox.ai/zh-hant/models/kuaishou/kling-4.0) | 可生成 3 到 30 秒的片段，解析度為 720p、1080p 或 4K。適合長片段，以及任何需要 1080p 或 4K 的情境。 | 4K: $0.4941, 720p: $0.1413, 1080p: $0.2115 |
| [Kling 4.0 Flash](https://kerox.ai/zh-hant/models/kuaishou/kling-4.0-flash) | Kling 4.0 的 Flash 模型：3 到 20 秒、720p，支援參考圖片與影片，但不支援參考音訊。適合製作草稿與大量生成。 | 720p: $0.0846 |
| [Seedance 2.5](https://kerox.ai/zh-hant/models/bytedance/seedance-2.5) | ByteDance 的影片模型，4 到 30 秒、最高 1080p，最多可使用 30 張參考圖片。適合需要大量參考素材的片段，或需要模型生成聲音（也可選擇關閉）時使用。 | 每秒約 $0.0977 起（480p） |
| [Magi-2](https://kerox.ai/zh-hant/models/sand-ai/magi-2) | Sand AI 的影片模型，最長 30 秒、1080p，並可生成聲音。適合包含對白或其他聲音的 1080p 長片段。 | 1080p: $0.1000 |
| [Seedance 2.0](https://kerox.ai/zh-hant/models/bytedance/seedance-2.0) | ByteDance 的影片模型，4 到 15 秒，可輸出 4K。適合短的 4K 片段。 | 每秒約 $0.0668 起（480p） |
| [MiniMax H3](https://kerox.ai/zh-hant/models/minimax/h3) | MiniMax 的影片模型，4 到 15 秒，解析度為 768p 或 2K。適合用其他廠商的模型測試同一個提示詞。 | 2K: $0.0650, 768p: $0.0400 |
| [Wan 3.0](https://kerox.ai/zh-hant/models/alibaba/wan-3.0) | Alibaba 的影片模型，2 到 30 秒、最高 1080p。適合短於 3 秒的片段。 | 480p: $0.0400, 720p: $0.0800, 1080p: $0.1600 |

## 常見問題

### Kling 4.0 的價格是多少？

在 Kerox 上，Kling 4.0 的價格從 $0.1413 / 秒 起，比官方價格低 10%。按次計費，生成失敗不收費。本頁的價格表列出了所有選項。

### Kling 4.0 有提供 API 嗎？

有。使用模型 ID kuaishou/kling-4.0 向 Kerox API 提交任務，再輪詢任務狀態，或在任務完成時接收 Webhook 通知。Kling 4.0 的 API 文件 列出所有參數，並附有程式碼範例。

### 不寫程式碼也能在線上使用 Kling 4.0 嗎？

可以。在 Kerox Studio 中開啟 Kling 4.0，輸入提示詞，即可直接在瀏覽器中生成。Studio 與 API 共用相同的餘額。

### 使用 Kling 4.0 需要訂閱嗎？

不需要。沒有方案，也沒有月費。最低儲值 $5，只需為實際生成的內容付費。

### 如何使用 Kling 4.0？

登入 Kerox，在 Studio 中開啟 Kling 4.0，輸入提示詞，即可在瀏覽器中生成。若要透過程式碼使用，請建立 API 金鑰，並以模型 ID kuaishou/kling-4.0 送出任務。

### Kling 4.0 是免費的嗎？

Kling 4.0 在 Kerox 上不是免費的。目前沒有免費方案或免費試用。最低儲值 $5，只需為實際生成的內容付費。

### Kling 4.0 影片最長可以生成幾秒？

單次生成的影片長度可設為 3 到 30 秒，只能設定整數秒，預設為 5 秒。Kling 4.0 Flash 最長為 20 秒。

### Kling 4.0 支援 4K 嗎？

支援。在 Kerox 上，Kling 4.0 可生成 720p、1080p 或 4K 影片。此模型依輸出秒數計費，費率由解析度決定，因此 4K 片段的費用會高於相同內容的 720p 片段。上方價格表列出各解析度的常見片段價格。

### Kling 4.0 和 Kling 4.0 Flash 有什麼差別？

差別在於影片長度、解析度與輸入。Kling 4.0 可生成 3 到 30 秒的影片，解析度為 720p、1080p 或 4K，並接受參考圖片、影片與音訊。Kling 4.0 Flash 可生成 3 到 20 秒的影片，僅限 720p，接受參考圖片與影片，但不接受音訊。兩者各有其費率；上方比較表列出兩者目前的起始價格。

### Kling 4.0 可以使用參考圖片、影片和音訊嗎？

可以。單一請求最多可包含 10 張圖片、最多 5 段總長不超過 30 秒的影片，以及最多 3 段各 5 到 30 秒的音訊。同一請求中，首影格或尾影格不能與參考檔案同時使用。使用參考影片時，將 `keep_original_sound` 設為 true，即可保留參考影片的原聲。

### 參考影片會如何影響 Kling 4.0 的價格？

它會同時影響費率與計費秒數。使用參考影片時，每秒費率較低，但計費秒數為輸出秒數，加上輸出影片與參考影片兩者中較長者的秒數。開始生成前，Studio 與 API 的估價端點會顯示這次請求的確切總價。上方的價格表列出兩種費率。


---

## 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": "kuaishou/kling-4.0",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "720p",
    "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": "kuaishou/kling-4.0",
        "input": {
            "prompt": "a red fox running through fresh snow, cinematic lighting",
            "resolution": "720p",
            "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": "kuaishou/kling-4.0",
    "input": {
      "prompt": "a red fox running through fresh snow, cinematic lighting",
      "resolution": "720p",
      "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": "kuaishou/kling-4.0",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "720p",
    "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": "kuaishou/kling-4.0",
  "input": {
    "prompt": "Show the red paper sailboat under warm copper lights",
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "images": [
      "https://cdn.kerox.ai/assets/samples/kling-4.0/paper-sail-frame.jpg"
    ]
  }
}'
```

### 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": "kuaishou/kling-4.0",
  "input": {
    "prompt": "Track the red paper sailboat as it drifts across the pool",
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "first_frame": "https://cdn.kerox.ai/assets/samples/kling-4.0/paper-sail-frame.jpg"
  }
}'
```

### 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": "kuaishou/kling-4.0",
  "input": {
    "prompt": "Circle the red paper sailboat and return to the starting view",
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "first_frame": "https://cdn.kerox.ai/assets/samples/kling-4.0/paper-sail-frame.jpg",
    "last_frame": "https://cdn.kerox.ai/assets/samples/kling-4.0/paper-sail-frame.jpg"
  }
}'
```

### 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": "kuaishou/kling-4.0",
  "input": {
    "prompt": "Use the camera motion of Video 1 for a flyover of a rocky coastline",
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "videos": [
      "https://cdn.kerox.ai/assets/samples/kling-4.0-flash/motion-reference.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": "kuaishou/kling-4.0",
  "input": {
    "prompt": "Show a dinosaur at dusk and time its roar to Audio 1",
    "resolution": "720p",
    "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 | Yes | — | at least one non-whitespace character; at least 1 characters | Text describing what to generate. | `"A lighthouse at dawn"` |
| `keep_original_sound` | boolean | No | — | true, false | Use the sound from the reference video. Requires videos. | `true` |
| `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; Model file limits: Up to five MP4 or MOV files, at most 30 seconds in total. Duration must be readable. Total reference seconds are rounded up. | 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–3 items; Model file limits: Up to three clips of 5–30 seconds each. | 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; Model file limits: JPEG or PNG. An end frame requires a first frame. Frames cannot be combined with reference media. | The image a video starts from. | `"https://example.com/start.png"` |
| `last_frame` | string | No | — | one public HTTPS URL; Model file limits: JPEG or PNG. An end frame requires a first frame. Frames cannot be combined with reference media. | The image a video ends on. Needs `first_frame`. | `"https://example.com/end.png"` |
| `aspect_ratio` | string | No | — | 16:9, 9:16, 1:1, 21:9, auto | Width to height of the output. | `"16:9"` |
| `resolution` | string | No | `"720p"` | 720p, 1080p, 4K | Output resolution tier. The exact pixels follow from it and `aspect_ratio`. | `"720p"` |
| `duration` | integer | No | `5` | 3–30 | Length of the output in whole seconds. | `5` |
| `n` | integer | No | `1` | 1 | How many outputs one task may produce. | `1` |

- last_frame requires first_frame
- keep_original_sound requires videos
- When first_frame: omit images or videos or audios
- When aspect_ratio = "auto": supply images or videos or audios

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": "kuaishou/kling-4.0",
  "status": "succeeded",
  "source": "api",
  "format": "unified",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9"
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://cdn.kerox.ai/t/task_01JD8X9B4Q2M7T8N3K5P6R1S0V/5f2b8c1e9d3a4f6b8a7c0d1e2f3a4b5c/0.mp4",
      "content_type": "video/mp4",
      "duration": 5
    }
  ],
  "outputs_deleted": false,
  "error": null,
  "cost": {
    "amount": "0.7065",
    "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 | Official / second | Kerox / second | Below official price |
| --- | --- | --- | --- |
| 4K | $0.5490 | $0.4941 | 10% |
| 720p | $0.1570 | $0.1413 | 10% |
| 1080p | $0.2350 | $0.2115 | 10% |

- **With a reference video**, bill output seconds + max(output seconds, total reference seconds) at `4K` $0.2961/s (official $0.3290); `720p` $0.0846/s (official $0.0940); `1080p` $0.1269/s (official $0.1410).

### 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": "kuaishou/kling-4.0",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "720p",
    "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": "kuaishou/kling-4.0",
  "input": {
    "prompt": "a red fox running through fresh snow, cinematic lighting",
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "videos": [
      "https://cdn.kerox.ai/assets/samples/seedance-2.0/sea-stacks-fog.mp4"
    ]
  }
}'
```

## Common usage

| Clip | Official price | Kerox | You save |
| --- | --- | --- | --- |
| 5 s · 4K | $2.7450 | $2.4705 | 10% |
| 10 s · 4K | $5.4900 | $4.9410 | 10% |
| 15 s · 4K | $8.2350 | $7.4115 | 10% |
| 5 s · 720p | $0.7850 | $0.7065 | 10% |
| 10 s · 720p | $1.5700 | $1.4130 | 10% |
| 15 s · 720p | $2.3550 | $2.1195 | 10% |
| 5 s · 1080p | $1.1750 | $1.0575 | 10% |
| 10 s · 1080p | $2.3500 | $2.1150 | 10% |
| 15 s · 1080p | $3.5250 | $3.1725 | 10% |

- **$10 gets you**: 70 seconds of 720p video

## Input schema (JSON)

### Parameters (`unified.input_schema`)

```json
{
  "type": "object",
  "allOf": [
    {
      "if": {
        "required": [
          "first_frame"
        ],
        "properties": {
          "first_frame": true
        }
      },
      "then": {
        "not": {
          "anyOf": [
            {
              "required": [
                "images"
              ],
              "properties": {
                "images": true
              }
            },
            {
              "required": [
                "videos"
              ],
              "properties": {
                "videos": true
              }
            },
            {
              "required": [
                "audios"
              ],
              "properties": {
                "audios": true
              }
            }
          ]
        }
      }
    },
    {
      "if": {
        "required": [
          "aspect_ratio"
        ],
        "properties": {
          "aspect_ratio": {
            "const": "auto"
          }
        }
      },
      "then": {
        "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",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "pattern": "\\S",
      "minLength": 1,
      "description": "Text describing what to generate.",
      "x-label-en": "Prompt",
      "x-label-zh": "提示词",
      "x-tier": "common"
    },
    "keep_original_sound": {
      "type": "boolean",
      "description": "Use the sound from the reference video. Requires videos.",
      "x-label-en": "Keep original sound",
      "x-label-zh": "保留参考视频原声",
      "x-tier": "advanced"
    },
    "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
        }
      ],
      "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": 3,
          "minItems": 1
        }
      ],
      "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",
        "21:9",
        "auto"
      ],
      "type": "string",
      "description": "Width to height of the output.",
      "x-label-en": "Aspect ratio",
      "x-label-zh": "画面比例",
      "x-tier": "common"
    },
    "resolution": {
      "enum": [
        "720p",
        "1080p",
        "4K"
      ],
      "type": "string",
      "default": "720p",
      "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": 3,
      "description": "Length of the output in whole seconds.",
      "x-label-en": "Duration",
      "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"
    ],
    "keep_original_sound": [
      "videos"
    ]
  },
  "additionalProperties": false
}
```
