> ## 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/cn/视频生成sora兼容格式/创建视频)）。

用于创建视频生成任务，并通过任务 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/cn/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/cn/视频生成sora兼容格式/创建视频)）。


        用于创建视频生成任务，并通过任务 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.