> ## Documentation Index
> Fetch the complete documentation index at: https://docs.newapi.si/llms.txt
> Use this file to discover all available pages before exploring further.

# 建立影片（Seedance）

> 此系列支援OpenAI影片生成格式（詳見連結 [影片生成Sora相容格式](/api-reference/zh-tw/%E5%BD%B1%E7%89%87%E7%94%9F%E6%88%90sora%E7%9B%B8%E5%AE%B9%E6%A0%BC%E5%BC%8F/%E5%BB%BA%E7%AB%8B%E5%BD%B1%E7%89%87)）。

用於建立影片生成任務，並透過任務 ID 查詢狀態與結果。

建立任務核心欄位：
- `model`：必填，模型名稱。
- `prompt`：選填；未傳入時，須在 `content` 中提供非空文字項。
- `content`：選填，火山方舟 content 陣列，可混排文字、圖片、影片、音訊素材。
- `function_mode`：選填，常用於全能參考等進階模式。

相容入參：

以下欄位主要用於舊版客戶端和舊協議適配。新接入請盡量採用本頁「請求範例」中的標準格式：文本與參考素材使用 `content` 陣列，生成配置使用頂層 `duration`、`ratio`、`resolution`、`fps` 等欄位。

- `mode`：`t2v / i2v / i2v_first_last / reference_images / reference_material`
- `image_url / image_urls / input_reference`
- `end_image_url / last_image_url`
- `video_urls / audio_urls`
- `seconds / duration`
- `aspect_ratio / ratio / size`
- `quality / resolution`
- `fps`
- `generate_audio / watermark`

呼叫細節：
- 當 `mode=reference_material` 或 `function_mode=omni_reference` 時，建議透過 `content` 傳遞文字與參考素材。
- `content` 文字項寫法為 `{ "type": "text", "text": "测试文字" }`。
- `content` 圖片、影片、音訊素材項分別使用 `image_url`、`video_url`、`audio_url` 物件寫法，例如 `{ "type": "image_url", "image_url": { "url": "https://example.com/ref.png" }, "role": "reference_image", "name": "1" }`。
- `role` 可標示素材用途，`name` 可供提示詞中依名稱引用。
- `ratio`、`duration`、`resolution`、`fps` 會影響最終生成配置。

Seedance 2.5 圖片、影片、音訊混合參考範例（素材 URL 為佔位符，呼叫時請替換為實際可存取的連結）：

```json
{
  "model": "sd-2-5",
  "ratio": "9:16",
  "fps": 24,
  "duration": 10,
  "content": [
    {
      "type": "text",
      "text": "使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频"
    },
    {
      "type": "image_url",
      "image_url": {
        "url": "https://demo1.png"
      },
      "role": "reference_image",
      "name": "图片1"
    },
    {
      "type": "image_url",
      "image_url": {
        "url": "https://demo2.png"
      },
      "role": "reference_image",
      "name": "图片2"
    },
    {
      "type": "image_url",
      "image_url": {
        "url": "https://demo3.png"
      },
      "role": "reference_image",
      "name": "图片3"
    },
    {
      "type": "video_url",
      "video_url": {
        "url": "https://video.mp4"
      },
      "role": "reference_video",
      "name": "视频1"
    },
    {
      "type": "audio_url",
      "audio_url": {
        "url": "https://audio.mp3"
      },
      "role": "reference_audio",
      "name": "音频1"
    }
  ]
}
```

Gemini Omni 呼叫：
- `gemini-omni` 也可透過本 Seedance 任務介面呼叫。
- `mode=t2v` 用於文生影片，`mode=r2v` 用於參考圖/參考素材生成，`mode=edit` 用於影片編輯。
- 文字可放在 `prompt` 或 `content` 的 `text` 項；圖片可放在 `image_url / image_urls / reference_images / input_reference / content`；影片可放在 `video_urls / content`。
- 時長欄位可用 `duration` 或 `seconds`，會自動匹配到 4 / 6 / 8 / 10 秒檔。

MiniMax / Hailuo 調用：
- `minimax-h3` 可透過本任務介面呼叫，支援文生影片、圖片參考和音訊參考；文字可放在 `prompt` 或 `content` 文字項，素材可放在 `content`、`image_urls`、`audio_urls` 等欄位。
- `hailuo-2.3` 可透過本任務介面呼叫，需要首幀圖片，建議在 `content` 中傳 `role=first_frame` 的 `image_url` 項。
- `minimax-h3` 常用 `duration=5~15`、`resolution=1440p`；`hailuo-2.3` 常用 `duration=6` 或 `10`、`resolution=768p`。

Kling 4.0 呼叫：`kling-4.0`（720p）與 `kling-4.0-1080p` 同時支援 Seedance `content/duration/resolution/ratio/mode` 格式、`contents/settings/options` 與 OpenAI 影片格式；兩種統一影片入口可重複使用相同的請求主體。解析度必須與模型名稱一致。Kling 4.0 可直接使用 Seedance 格式 content/duration/resolution/ratio/mode，或 OpenAI 影片格式 prompt/seconds/size/input_reference；兩者都不需要額外的 contents/settings/options。mode 可選 t2v（純文字）、i2v（單張首幀）、i2v_first_last（首尾兩幀）、reference_images（一般參考圖）、reference_material（全能素材參考；音訊須使用支援此功能的路由）。省略 mode 且未指定工具時，有參考素材預設為 reference_material，沒有任何參考素材則預設為 t2v。參考模式會將素材視為一般參考圖，不會將明確指定的首尾幀默默改成參考圖；首尾幀請明確選擇 i2v 或 i2v_first_last，並省略畫面比例參數。Kling 4.0 預設同時生成音訊與影片。全能參考模式支援公開音訊 URL：/v1/videos 使用 audio_urls，Seedance 使用 content 中的 audio_url 項目；請使用支援音訊素材的路由。目前三個原生專用入口不接受參考音訊欄位。

Vidu Q4：`vidu-q4` 固定為 720p，`vidu-q4-540p` 固定為 540p，支援生成 3～16 秒影片。至少需要 1 張圖片，最多支援 15 張參考圖；參考生成可附帶最多 3 段 MP3 音訊，每段 3～12 秒、最大 50MB。不支援純文字生成、指定首尾影格或參考影片。多張圖片用於共同參考，不代表首尾位置。可透過 `POST /v1/videos`、`POST /api/v3/contents/generations/tasks`，或 Vidu 格式 `POST /ent/v2/img2video`、`POST /ent/v2/reference2video` 建立任務。建議統一入口使用 `mode=reference_images`；附帶音訊時使用 `mode=reference_material`。參考音訊可使用 `audio_urls`，Seedance 格式也可使用標準 `content` 的 `audio_url` 項；`audio` 布林欄位表示生成音訊開關，與參考音訊 URL 清單分別使用。解析度須與模型名稱一致。

### Magi-2 1080p

`magi-2-1080p` 支援 OpenAI `/v1/videos` 和 Ark `/api/v3/contents/generations/tasks` 兩種格式，分別透過對應路徑的 `GET /{task_id}` 查詢。固定為 1080p，生成時長為 4～30 秒。支援 16:9、9:16、1:1、4:3、3:4、21:9；1:1 輸出為 1440×1440。參考模式最多支援 10 張圖片、5 段影片、5 段音訊，共 20 份素材。每段影片和音訊長度為 2～30 秒，所有影片總長度不得超過 30 秒，所有音訊總長度不得超過 30 秒。圖片大小上限為 30 MB，影片為 200 MB，音訊為 15 MB。首尾影格模式不得混入其他圖片、影片或音訊參考。提示詞可依各類素材的輸入順序，使用 `<<<image_1>>>`、`<<<video_1>>>`、`<<<audio_1>>>` 引用。目前未提供獨立的 sand.ai 官方格式入口。

```json
{
  "model": "magi-2-1080p",
  "duration": 4,
  "resolution": "1080p",
  "ratio": "1:1",
  "content": [
    {
      "type": "text",
      "text": "以 <<<image_1>>> 的彩色积木为主体，参考 <<<video_1>>> 的缓慢转动及 <<<audio_1>>> 的轻柔节奏。"
    },
    {
      "type": "image_url",
      "image_url": {
        "url": "https://example.com/blocks.png"
      },
      "role": "reference_image"
    },
    {
      "type": "video_url",
      "video_url": {
        "url": "https://example.com/rotation.mp4"
      },
      "role": "reference_video"
    },
    {
      "type": "audio_url",
      "audio_url": {
        "url": "https://example.com/rhythm.wav"
      },
      "role": "reference_audio"
    }
  ]
}
```

查詢結果關注欄位：
- `items[].status`
- `items[].content.video_url` 或 `items[].video_url`
- `items[].error`
- `items[].progress`

Error fields: `error.code`, `error.message`.

```json
{
  "error": {
    "code": "invalid_request_error",
    "message": "requires at least one image in `images`"
  }
}
```



## OpenAPI

````yaml api-reference/zh-tw/openapi.json POST /api/v3/contents/generations/tasks
openapi: 3.0.0
info:
  title: NewAPIs API 參考文件
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.newapi.si
security:
  - BearerAuth: []
tags:
  - name: OpenAI格式（Chat）
  - name: OpenAI格式（Responses）
  - name: 圖片生成 Gemini 格式
  - name: 圖片生成OpenAI DALL-E 格式
  - name: 獲取模型列表
  - name: 影片生成HappyHorse與 Wan
  - name: 影片生成Kling格式
  - name: 影片生成 Omni 與 Veo 格式
  - name: 影片生成 Seedance 格式
  - name: 影片生成Sora相容格式
  - name: 影片生成 Vidu 格式
  - name: 音樂生成任務格式
paths:
  /api/v3/contents/generations/tasks:
    post:
      tags:
        - 影片生成 Seedance 格式
      summary: 建立影片（Seedance）
      description: >-
        此系列支援OpenAI影片生成格式（詳見連結
        [影片生成Sora相容格式](/api-reference/zh-tw/%E5%BD%B1%E7%89%87%E7%94%9F%E6%88%90sora%E7%9B%B8%E5%AE%B9%E6%A0%BC%E5%BC%8F/%E5%BB%BA%E7%AB%8B%E5%BD%B1%E7%89%87)）。


        用於建立影片生成任務，並透過任務 ID 查詢狀態與結果。


        建立任務核心欄位：

        - `model`：必填，模型名稱。

        - `prompt`：選填；未傳入時，須在 `content` 中提供非空文字項。

        - `content`：選填，火山方舟 content 陣列，可混排文字、圖片、影片、音訊素材。

        - `function_mode`：選填，常用於全能參考等進階模式。


        相容入參：


        以下欄位主要用於舊版客戶端和舊協議適配。新接入請盡量採用本頁「請求範例」中的標準格式：文本與參考素材使用 `content`
        陣列，生成配置使用頂層 `duration`、`ratio`、`resolution`、`fps` 等欄位。


        - `mode`：`t2v / i2v / i2v_first_last / reference_images /
        reference_material`

        - `image_url / image_urls / input_reference`

        - `end_image_url / last_image_url`

        - `video_urls / audio_urls`

        - `seconds / duration`

        - `aspect_ratio / ratio / size`

        - `quality / resolution`

        - `fps`

        - `generate_audio / watermark`


        呼叫細節：

        - 當 `mode=reference_material` 或 `function_mode=omni_reference` 時，建議透過
        `content` 傳遞文字與參考素材。

        - `content` 文字項寫法為 `{ "type": "text", "text": "测试文字" }`。

        - `content` 圖片、影片、音訊素材項分別使用 `image_url`、`video_url`、`audio_url` 物件寫法，例如
        `{ "type": "image_url", "image_url": { "url":
        "https://example.com/ref.png" }, "role": "reference_image", "name": "1"
        }`。

        - `role` 可標示素材用途，`name` 可供提示詞中依名稱引用。

        - `ratio`、`duration`、`resolution`、`fps` 會影響最終生成配置。


        Seedance 2.5 圖片、影片、音訊混合參考範例（素材 URL 為佔位符，呼叫時請替換為實際可存取的連結）：


        ```json

        {
          "model": "sd-2-5",
          "ratio": "9:16",
          "fps": 24,
          "duration": 10,
          "content": [
            {
              "type": "text",
              "text": "使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频"
            },
            {
              "type": "image_url",
              "image_url": {
                "url": "https://demo1.png"
              },
              "role": "reference_image",
              "name": "图片1"
            },
            {
              "type": "image_url",
              "image_url": {
                "url": "https://demo2.png"
              },
              "role": "reference_image",
              "name": "图片2"
            },
            {
              "type": "image_url",
              "image_url": {
                "url": "https://demo3.png"
              },
              "role": "reference_image",
              "name": "图片3"
            },
            {
              "type": "video_url",
              "video_url": {
                "url": "https://video.mp4"
              },
              "role": "reference_video",
              "name": "视频1"
            },
            {
              "type": "audio_url",
              "audio_url": {
                "url": "https://audio.mp3"
              },
              "role": "reference_audio",
              "name": "音频1"
            }
          ]
        }

        ```


        Gemini Omni 呼叫：

        - `gemini-omni` 也可透過本 Seedance 任務介面呼叫。

        - `mode=t2v` 用於文生影片，`mode=r2v` 用於參考圖/參考素材生成，`mode=edit` 用於影片編輯。

        - 文字可放在 `prompt` 或 `content` 的 `text` 項；圖片可放在 `image_url / image_urls /
        reference_images / input_reference / content`；影片可放在 `video_urls /
        content`。

        - 時長欄位可用 `duration` 或 `seconds`，會自動匹配到 4 / 6 / 8 / 10 秒檔。


        MiniMax / Hailuo 調用：

        - `minimax-h3` 可透過本任務介面呼叫，支援文生影片、圖片參考和音訊參考；文字可放在 `prompt` 或 `content`
        文字項，素材可放在 `content`、`image_urls`、`audio_urls` 等欄位。

        - `hailuo-2.3` 可透過本任務介面呼叫，需要首幀圖片，建議在 `content` 中傳 `role=first_frame` 的
        `image_url` 項。

        - `minimax-h3` 常用 `duration=5~15`、`resolution=1440p`；`hailuo-2.3` 常用
        `duration=6` 或 `10`、`resolution=768p`。


        Kling 4.0 呼叫：`kling-4.0`（720p）與 `kling-4.0-1080p` 同時支援 Seedance
        `content/duration/resolution/ratio/mode` 格式、`contents/settings/options`
        與 OpenAI 影片格式；兩種統一影片入口可重複使用相同的請求主體。解析度必須與模型名稱一致。Kling 4.0 可直接使用 Seedance
        格式 content/duration/resolution/ratio/mode，或 OpenAI 影片格式
        prompt/seconds/size/input_reference；兩者都不需要額外的
        contents/settings/options。mode 可選
        t2v（純文字）、i2v（單張首幀）、i2v_first_last（首尾兩幀）、reference_images（一般參考圖）、reference_material（全能素材參考；音訊須使用支援此功能的路由）。省略
        mode 且未指定工具時，有參考素材預設為 reference_material，沒有任何參考素材則預設為
        t2v。參考模式會將素材視為一般參考圖，不會將明確指定的首尾幀默默改成參考圖；首尾幀請明確選擇 i2v 或
        i2v_first_last，並省略畫面比例參數。Kling 4.0 預設同時生成音訊與影片。全能參考模式支援公開音訊
        URL：/v1/videos 使用 audio_urls，Seedance 使用 content 中的 audio_url
        項目；請使用支援音訊素材的路由。目前三個原生專用入口不接受參考音訊欄位。


        Vidu Q4：`vidu-q4` 固定為 720p，`vidu-q4-540p` 固定為 540p，支援生成 3～16 秒影片。至少需要 1
        張圖片，最多支援 15 張參考圖；參考生成可附帶最多 3 段 MP3 音訊，每段 3～12 秒、最大
        50MB。不支援純文字生成、指定首尾影格或參考影片。多張圖片用於共同參考，不代表首尾位置。可透過 `POST /v1/videos`、`POST
        /api/v3/contents/generations/tasks`，或 Vidu 格式 `POST
        /ent/v2/img2video`、`POST /ent/v2/reference2video` 建立任務。建議統一入口使用
        `mode=reference_images`；附帶音訊時使用 `mode=reference_material`。參考音訊可使用
        `audio_urls`，Seedance 格式也可使用標準 `content` 的 `audio_url` 項；`audio`
        布林欄位表示生成音訊開關，與參考音訊 URL 清單分別使用。解析度須與模型名稱一致。


        ### Magi-2 1080p


        `magi-2-1080p` 支援 OpenAI `/v1/videos` 和 Ark
        `/api/v3/contents/generations/tasks` 兩種格式，分別透過對應路徑的 `GET /{task_id}`
        查詢。固定為 1080p，生成時長為 4～30 秒。支援 16:9、9:16、1:1、4:3、3:4、21:9；1:1 輸出為
        1440×1440。參考模式最多支援 10 張圖片、5 段影片、5 段音訊，共 20 份素材。每段影片和音訊長度為 2～30
        秒，所有影片總長度不得超過 30 秒，所有音訊總長度不得超過 30 秒。圖片大小上限為 30 MB，影片為 200 MB，音訊為 15
        MB。首尾影格模式不得混入其他圖片、影片或音訊參考。提示詞可依各類素材的輸入順序，使用
        `<<<image_1>>>`、`<<<video_1>>>`、`<<<audio_1>>>` 引用。目前未提供獨立的 sand.ai
        官方格式入口。


        ```json

        {
          "model": "magi-2-1080p",
          "duration": 4,
          "resolution": "1080p",
          "ratio": "1:1",
          "content": [
            {
              "type": "text",
              "text": "以 <<<image_1>>> 的彩色积木为主体，参考 <<<video_1>>> 的缓慢转动及 <<<audio_1>>> 的轻柔节奏。"
            },
            {
              "type": "image_url",
              "image_url": {
                "url": "https://example.com/blocks.png"
              },
              "role": "reference_image"
            },
            {
              "type": "video_url",
              "video_url": {
                "url": "https://example.com/rotation.mp4"
              },
              "role": "reference_video"
            },
            {
              "type": "audio_url",
              "audio_url": {
                "url": "https://example.com/rhythm.wav"
              },
              "role": "reference_audio"
            }
          ]
        }

        ```


        查詢結果關注欄位：

        - `items[].status`

        - `items[].content.video_url` 或 `items[].video_url`

        - `items[].error`

        - `items[].progress`


        Error fields: `error.code`, `error.message`.


        ```json

        {
          "error": {
            "code": "invalid_request_error",
            "message": "requires at least one image in `images`"
          }
        }

        ```
      operationId: create__seedance__task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
              properties:
                model:
                  type: string
                  example: doubao-seedance-2-0-260128
                  enum:
                    - kling-4.0
                    - kling-4.0-1080p
                    - vidu-q4
                    - vidu-q4-540p
                    - magi-2-1080p
                    - sd-2-5
                    - doubao-seedance-1-0-lite-i2v-250428
                    - doubao-seedance-1-0-lite-t2v-250428
                    - doubao-seedance-1-0-pro-250528
                    - doubao-seedance-1-0-pro-fast-251015
                    - doubao-seedance-1-5-pro-251215
                    - doubao-seedance-2-0-260128
                    - doubao-seedance-2-0-fast-260128
                    - sd-2-5-4k
                    - sd-2-5-flash
                    - sd-2-5-flash-480p
                    - minimax-h3
                    - hailuo-2.3
                    - wan-3.0-prime
                    - wan-3.0-prime-1080p
                    - happyhorse-1.1
                    - happyhorse-1.1-1080p
                    - gemini-omni
                  description: >-
                    必填。模型名稱。可傳 Seedance、Kling 4.0、Vidu
                    Q4、`gemini-omni`、`minimax-h3` 或 `hailuo-2.3` 對外模型。
                prompt:
                  type: string
                  description: >-
                    可選；標準 Seedance 請求可直接在 content 的非空 text 項目中提供文字，或使用頂層
                    prompt。Kling 4.0 同樣適用，無需 contents/settings/options。
                  example: 参考素材生成一段剧情短视频
                content:
                  type: array
                  description: >-
                    選填。火山方舟 content 陣列，依順序混排文字與素材項目。文字項使用 `{ "type": "text",
                    "text": "..." }`；圖片、影片、音訊項分別使用
                    `image_url`、`video_url`、`audio_url` 物件，並在其中放入 `url`，可搭配
                    `role`（如
                    `reference_image`、`reference_video`、`reference_audio`）和
                    `name` 供文字引用。
                  items:
                    type: object
                    required:
                      - type
                    properties:
                      type:
                        type: string
                        enum:
                          - text
                          - image_url
                          - video_url
                          - audio_url
                        description: 內容項類型。
                      text:
                        type: string
                        description: 文字內容，僅在 type=text 時使用。
                      image_url:
                        oneOf:
                          - type: string
                          - type: object
                            properties:
                              url:
                                type: string
                        description: 圖片 URL，建議使用物件寫法：`{"url":"https://..."}`。
                      video_url:
                        oneOf:
                          - type: string
                          - type: object
                            properties:
                              url:
                                type: string
                        description: 影片 URL，推薦物件寫法：`{"url":"https://..."}`。
                      audio_url:
                        oneOf:
                          - type: string
                          - type: object
                            properties:
                              url:
                                type: string
                        description: 音訊 URL，推薦物件寫法：`{"url":"https://..."}`。
                      role:
                        type: string
                        description: >-
                          素材用途標識，常見值如
                          reference_image、reference_video、reference_audio。
                      name:
                        type: string
                        description: 素材名稱，可供文字提示詞引用或區分多個素材。
                contents:
                  type: array
                  minItems: 1
                  description: Kling 4.0 舊信封相容陣列，標準 Seedance 請求無需提供；直接使用 content。
                  items:
                    type: object
                    required:
                      - type
                    properties:
                      type:
                        type: string
                        enum:
                          - prompt
                          - reference_image
                          - reference_video
                          - first_frame
                          - last_frame
                      text:
                        type: string
                        description: type=prompt 時的文字描述。
                      url:
                        type: string
                        format: uri
                        description: 參考素材或首尾幀的可存取 URL。
                settings:
                  type: object
                  description: 舊信封相容性設定；標準 Seedance 直接使用頂層 duration/resolution/ratio，無需提供。
                  properties:
                    duration:
                      type: integer
                      minimum: 4
                      maximum: 30
                      example: 4
                    resolution:
                      type: string
                      enum:
                        - 720p
                        - 1080p
                    aspect_ratio:
                      type: string
                      enum:
                        - '21:9'
                        - '16:9'
                        - '9:16'
                        - '1:1'
                options:
                  type: object
                  maxProperties: 0
                  description: 舊信封相容欄位；標準 Seedance 請求無需提供。
                function_mode:
                  type: string
                  description: 選填。進階功能模式，例如 `omni_reference` 用於全方位參考。
                mode:
                  type: string
                  description: >-
                    選用。相容模式欄位，例如
                    `t2v`、`i2v`、`i2v_first_last`、`reference_images`、`reference_material`；`gemini-omni`
                    支援 `t2v`、`r2v`、`edit`。Kling 4.0 可直接使用 Seedance 格式的
                    content/duration/resolution/ratio/mode，或 OpenAI 影片格式的
                    prompt/seconds/size/input_reference；兩者都不需要額外的
                    contents/settings/options。mode 可選
                    t2v（純文字）、i2v（單張首幀）、i2v_first_last（首尾兩幀）、reference_images（一般參考圖）、reference_material（全能素材參考；音訊須使用支援此功能的路由）。省略
                    mode 且未明確指定工具時，有參考素材則預設為 reference_material，沒有任何參考素材則預設為
                    t2v。參考模式使用一般參考圖的角色，不會將明確指定的首尾幀默默改為參考圖；若要使用首尾幀，請明確選擇 i2v 或
                    i2v_first_last，並省略畫面比例參數。Kling 4.0
                    預設同步生成音訊與影片。全能參考模式支援公開網路音訊 URL：/v1/videos 使用
                    audio_urls，Seedance 使用 content 中的 audio_url
                    項目；須使用支援音訊素材的路由。目前三個原生專用端點不接受參考音訊欄位。
                  example: reference_material
                  x-kling-modes:
                    - t2v
                    - i2v
                    - i2v_first_last
                    - reference_images
                    - reference_material
                image_url:
                  type: string
                  description: 選填。單張參考圖 URL。
                image_urls:
                  type: array
                  items:
                    type: string
                  description: 選填。多張參考圖 URL 列表。
                input_reference:
                  type: string
                  description: 選填。兼容參考輸入欄位。
                end_image_url:
                  type: string
                  description: 選填。末幀參考圖 URL。
                last_image_url:
                  type: string
                  description: 選填。末幀參考圖 URL 別名。
                video_urls:
                  type: array
                  items:
                    type: string
                  description: 選填。參考影片 URL 列表。
                audio_urls:
                  type: array
                  items:
                    type: string
                    format: uri
                  description: 選填。參考音訊 URL 列表。
                seconds:
                  oneOf:
                    - type: number
                    - type: string
                  description: 選填。影片長度（秒）；與 `duration` 相容。
                duration:
                  oneOf:
                    - type: number
                    - type: string
                  description: 選填。影片長度（秒）；與 `seconds` 相容。
                aspect_ratio:
                  type: string
                  description: 選填。長寬比，例如 `16:9`。
                ratio:
                  type: string
                  description: 選填。畫幅比例別名，如 `16:9`。
                size:
                  type: string
                  description: 選填。解析度或尺寸相容欄位。
                quality:
                  type: string
                  description: 選填。生成品質設定。
                resolution:
                  type: string
                  description: 選填。輸出解析度。
                fps:
                  type: number
                  description: 選填。影格率。
                generate_audio:
                  type: boolean
                  description: 選填。是否產生音訊。
                watermark:
                  type: boolean
                  description: 選填。是否添加浮水印。
            examples:
              kling_4_seedance_reference_material:
                summary: Kling 4.0 720p Seedance · 預設素材參考
                value:
                  model: kling-4.0
                  mode: reference_material
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                  ratio: '16:9'
              kling_4_seedance_t2v:
                summary: Kling 4.0 720p Seedance · 純文字
                value:
                  model: kling-4.0
                  mode: t2v
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                  ratio: '16:9'
              kling_4_seedance_i2v:
                summary: Kling 4.0 720p Seedance · 首幀圖生
                value:
                  model: kling-4.0
                  mode: i2v
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
              kling_4_seedance_i2v_first_last:
                summary: Kling 4.0 720p Seedance · 首尾幀
                value:
                  model: kling-4.0
                  mode: i2v_first_last
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
                    - type: image_url
                      image_url:
                        url: https://example.com/last-frame.jpg
                      role: last_frame
              kling_4_seedance_reference_images:
                summary: Kling 4.0 720p Seedance · 參考圖片
                value:
                  model: kling-4.0
                  mode: reference_images
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                  ratio: '16:9'
              kling_4_seedance_reference_material_1080p:
                summary: Kling 4.0 1080p Seedance · 預設素材參考
                value:
                  model: kling-4.0-1080p
                  mode: reference_material
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                  ratio: '16:9'
              kling_4_seedance_t2v_1080p:
                summary: Kling 4.0 1080p Seedance · 純文字
                value:
                  model: kling-4.0-1080p
                  mode: t2v
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                  ratio: '16:9'
              kling_4_seedance_i2v_1080p:
                summary: Kling 4.0 1080p Seedance · 首幀圖生
                value:
                  model: kling-4.0-1080p
                  mode: i2v
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
              kling_4_seedance_i2v_first_last_1080p:
                summary: Kling 4.0 1080p Seedance · 首尾影格
                value:
                  model: kling-4.0-1080p
                  mode: i2v_first_last
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
                    - type: image_url
                      image_url:
                        url: https://example.com/last-frame.jpg
                      role: last_frame
              kling_4_seedance_reference_images_1080p:
                summary: Kling 4.0 1080p Seedance · 參考圖片
                value:
                  model: kling-4.0-1080p
                  mode: reference_images
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                  ratio: '16:9'
              kling_4_ark_contents:
                summary: Kling 4.0 720p 參考生成（相容於舊版封套）
                value:
                  model: kling-4.0
                  mode: reference_material
                  contents:
                    - type: prompt
                      text: A cinematic product shot with natural motion
                    - type: reference_image
                      url: https://example.com/product.jpg
                    - type: reference_video
                      url: https://example.com/motion.mp4
                  settings:
                    duration: 4
                    resolution: 720p
                    aspect_ratio: '16:9'
                  options: {}
              kling_4_reference_audio:
                summary: Kling 4.0 720p 萬用參考音訊 URL
                value:
                  model: kling-4.0
                  mode: reference_material
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference.mp3
                      role: reference_audio
                  ratio: '16:9'
              kling_4_ark_contents_1080p:
                summary: Kling 4.0 1080p 參考生成（舊信封相容）
                value:
                  model: kling-4.0-1080p
                  mode: reference_material
                  contents:
                    - type: prompt
                      text: A cinematic product shot with natural motion
                    - type: reference_image
                      url: https://example.com/product.jpg
                    - type: reference_video
                      url: https://example.com/motion.mp4
                  settings:
                    duration: 4
                    resolution: 1080p
                    aspect_ratio: '16:9'
                  options: {}
              kling_4_reference_audio_1080p:
                summary: Kling 4.0 1080p 全能參考音訊 URL
                value:
                  model: kling-4.0-1080p
                  mode: reference_material
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference.mp3
                      role: reference_audio
                  ratio: '16:9'
              vidu_q4_seedance_720p_reference:
                summary: Vidu Q4 720p 多圖 / 音訊參考
                value:
                  model: vidu-q4
                  duration: 3
                  resolution: 720p
                  mode: reference_material
                  content:
                    - type: text
                      text: 保持参考图中的主体与色彩，镜头缓慢推进，主体自然运动。
                    - type: image_url
                      image_url:
                        url: https://example.com/reference-1.jpg
                      role: reference_image
                    - type: image_url
                      image_url:
                        url: https://example.com/reference-2.jpg
                      role: reference_image
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference-1.mp3
                      role: reference_audio
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference-2.mp3
                      role: reference_audio
              vidu_q4_seedance_540p_reference:
                summary: Vidu Q4 540p 多圖 / 音訊參考
                value:
                  model: vidu-q4-540p
                  duration: 3
                  resolution: 540p
                  mode: reference_material
                  content:
                    - type: text
                      text: 保持参考图中的主体与色彩，镜头缓慢推进，主体自然运动。
                    - type: image_url
                      image_url:
                        url: https://example.com/reference-1.jpg
                      role: reference_image
                    - type: image_url
                      image_url:
                        url: https://example.com/reference-2.jpg
                      role: reference_image
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference-1.mp3
                      role: reference_audio
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference-2.mp3
                      role: reference_audio
              magi_2_1080p_seedance:
                summary: Magi-2 1080p 圖片/影片/音訊參考
                value:
                  model: magi-2-1080p
                  duration: 4
                  resolution: 1080p
                  ratio: '1:1'
                  content:
                    - type: text
                      text: >-
                        以 <<<image_1>>> 的彩色积木为主体，参考 <<<video_1>>> 的缓慢转动及
                        <<<audio_1>>> 的轻柔节奏。
                    - type: image_url
                      image_url:
                        url: https://example.com/blocks.png
                      role: reference_image
                    - type: video_url
                      video_url:
                        url: https://example.com/rotation.mp4
                      role: reference_video
                    - type: audio_url
                      audio_url:
                        url: https://example.com/rhythm.wav
                      role: reference_audio
              seedance_sd25_mixed_content:
                summary: Seedance 2.5 圖片/影片/音訊混合參考
                value:
                  model: sd-2-5
                  ratio: '9:16'
                  fps: 24
                  duration: 10
                  content:
                    - type: text
                      text: 使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频
                    - type: image_url
                      image_url:
                        url: https://demo1.png
                      role: reference_image
                      name: 图片1
                    - type: image_url
                      image_url:
                        url: https://demo2.png
                      role: reference_image
                      name: 图片2
                    - type: image_url
                      image_url:
                        url: https://demo3.png
                      role: reference_image
                      name: 图片3
                    - type: video_url
                      video_url:
                        url: https://video.mp4
                      role: reference_video
                      name: 视频1
                    - type: audio_url
                      audio_url:
                        url: https://audio.mp3
                      role: reference_audio
                      name: 音频1
              seedance_tasks_reference_material:
                summary: Seedance content 任務
                value:
                  model: doubao-seedance-1-0-lite-i2v-250428
                  mode: reference_material
                  prompt: 测试文字
                  content:
                    - type: text
                      text: 测试文字
                    - type: image_url
                      image_url:
                        url: >-
                          https://imageproxy.zhongzhuan.chat/api/proxy/image/9979f1a754b3571d5e8bdcc397eedf53.png
                      role: reference_image
                      name: '1'
                    - type: video_url
                      video_url:
                        url: >-
                          https://imageproxy.zhongzhuan.chat/api/proxy/video/1979f1a754b3571d5e8bdcc397eedf53.mp4
                      role: reference_video
                      name: '2'
                    - type: audio_url
                      audio_url:
                        url: >-
                          https://imageproxy.zhongzhuan.chat/api/proxy/video/3979f1a754b3571d5e8bdcc397eedf53.mp3
                      role: reference_audio
                      name: '3'
                  duration: 5
                  size: 1280x720
              minimax_h3_tasks_content:
                summary: MiniMax H3 content 任務
                value:
                  model: minimax-h3
                  prompt: A cinematic product video with smooth camera motion
                  content:
                    - type: text
                      text: >-
                        Use the product image as reference and match the rhythm
                        of the audio.
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                      name: product
                    - type: audio_url
                      audio_url:
                        url: https://example.com/music.mp3
                      role: reference_audio
                      name: music
                  duration: 8
                  resolution: 1440p
                  ratio: '16:9'
                  generate_audio: true
              hailuo_2_3_tasks_first_frame:
                summary: Hailuo 2.3 首幀圖生影片
                value:
                  model: hailuo-2.3
                  prompt: >-
                    The camera slowly pushes in, natural motion and cinematic
                    lighting.
                  content:
                    - type: text
                      text: >-
                        The camera slowly pushes in, natural motion and
                        cinematic lighting.
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
                      name: first
                  duration: 10
                  resolution: 768p
                  ratio: '16:9'
              canvas_ark_tier:
                summary: 固定解析度影片任務
                value:
                  model: wan-3.0-prime
                  content:
                    - type: text
                      text: Gentle waves rolling onto a beach.
                  duration: 5
                  ratio: '16:9'
              gemini_omni_seedance_t2v:
                summary: Gemini Omni t2v
                value:
                  model: gemini-omni
                  mode: t2v
                  prompt: A cinematic product video with smooth camera motion
                  duration: 8
                  size: 1280x720
              gemini_omni_seedance_r2v:
                summary: Gemini Omni r2v
                value:
                  model: gemini-omni
                  mode: r2v
                  content:
                    - type: text
                      text: Keep the product consistent and create a short ad video
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                  duration: 8
                  size: 1280x720
              gemini_omni_seedance_edit:
                summary: Gemini Omni edit
                value:
                  model: gemini-omni
                  mode: edit
                  content:
                    - type: text
                      text: Change the outfit color while keeping the motion natural
                    - type: video_url
                      video_url:
                        url: https://example.com/input.mp4
                    - type: image_url
                      image_url:
                        url: https://example.com/style.jpg
                  duration: 8
                  size: 1280x720
      responses:
        '200':
          description: 任務建立成功
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                properties:
                  id:
                    type: string
                    example: task_xxx
                    description: 任務 ID。
                  status:
                    type: string
                    description: 任務狀態。
                    enum:
                      - queued
                      - running
                      - succeeded
                      - failed
                  created_at:
                    type: string
                    description: 建立時間 (Unix 秒)。
                  items:
                    type: string
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: 任務 ID。
                        status:
                          type: string
                          description: 任務狀態，常見為 `queued`、`running`、`succeeded`、`failed`。
                        content:
                          type: object
                          properties:
                            video_url:
                              type: string
                              description: 影片結果位址。
                        video_url:
                          type: string
                          description: 影片結果位址。
                        error:
                          type: string
                          description: 失敗時的錯誤訊息。
                        progress:
                          type: string
                          description: 任務進度。
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        使用 Bearer Token 認證。
        格式: `Authorization: Bearer sk-xxxxxx`

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.