> ## 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.

# Create video (Seedance)

> This series supports OpenAI video generation formats (see the link [Video generation Sora compatible formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).

Used to create video generation tasks and query status and results via task ID.

Core fields for task creation:
- `model`: Required. Model name.
- `prompt`: Optional; if not provided, `content` must include a non-empty text item.
- `content`: Optional, the Volcano Ark content array, mixing text, image, video, and audio materials.
- `function_mode`: Optional. Commonly used for advanced modes such as Omni-Reference.

Compatible input parameters:

The following fields are mainly used for compatibility with legacy clients and older protocols. For new integrations, please use the standard format in the “Request Example” on this page whenever possible: use the `content` array for text and reference materials, and use top-level `duration`, `ratio`, `resolution`, `fps`, and other fields for generation configuration.

- `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`

Call details:
- When using `mode=reference_material` or `function_mode=omni_reference`, it is recommended to pass text and reference materials via `content`.
- `content` text items are written as `{ "type": "text", "text": "测试文字" }`.
- `content` image, video, and audio material items use the `image_url`, `video_url`, and `audio_url` object formats respectively, for example `{ "type": "image_url", "image_url": { "url": "https://example.com/ref.png" }, "role": "reference_image", "name": "1" }`.
- `role` can be used to identify the purpose of the material, and `name` can be referenced by name in prompts.
- `ratio`, `duration`, `resolution`, and `fps` will affect the final generation configuration.

Seedance 2.5 Mixed image, video, and audio reference example (the asset URLs are placeholders; replace them with actual accessible links when calling):

```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 invocation:
- `gemini-omni` can also be invoked through this Seedance task API.
- `mode=t2v` is used for text-to-video, `mode=r2v` for generation with reference images/reference materials, and `mode=edit` for video editing.
- Text can be placed in the `text` item of `prompt` or `content`; images can be placed in `image_url / image_urls / reference_images / input_reference / content`; videos can be placed in `video_urls / content`.
- The duration field can use `duration` or `seconds`, and will be automatically mapped to the 4 / 6 / 8 / 10 second options.

MiniMax / Hailuo Invocation:
- `minimax-h3` can be invoked through this task API and supports text-to-video, image reference, and audio reference; text can be placed in the `prompt` or `content` text fields, and assets can be placed in fields such as `content`, `image_urls`, and `audio_urls`.
- `hailuo-2.3` can be invoked through this task API. A first-frame image is required. It is recommended to pass the `image_url` item of `role=first_frame` in `content`.
- `minimax-h3` commonly uses `duration=5~15` and `resolution=1440p`; `hailuo-2.3` commonly uses `duration=6` or `10` and `resolution=768p`.

 Kling 4.0 requests: `kling-4.0` (720p) and `kling-4.0-1080p` both support the Seedance `content/duration/resolution/ratio/mode` format, `contents/settings/options`, and the OpenAI video format; the two unified video endpoints can reuse the same request body. The resolution must match the model name. Kling 4.0 can use either the Seedance format with content/duration/resolution/ratio/mode, or the OpenAI video format with prompt/seconds/size/input_reference; neither requires additional contents/settings/options. The mode can be t2v (text only), i2v (single first frame), i2v_first_last (first and last frames), reference_images (standard reference images), or reference_material (all-purpose reference materials; audio requires a route that supports this capability). If mode is omitted and no explicit tool is specified, reference_material is used by default when reference materials are provided; otherwise, t2v is used. Reference modes treat inputs as standard reference images and do not silently reinterpret explicitly provided first and last frames as reference images. For first and last frames, explicitly select i2v or i2v_first_last and omit the aspect ratio parameter. Kling 4.0 generates audio and video together by default. All-purpose reference mode supports public audio URLs: use audio_urls with /v1/videos, and the audio_url item in content with Seedance; a route that supports audio materials is required. The three native dedicated endpoints currently do not accept reference audio fields.

Vidu Q4: `vidu-q4` is fixed at 720p, and `vidu-q4-540p` is fixed at 540p. Supports generating videos from 3 to 16 seconds. At least 1 image is required, with up to 15 reference images supported. Reference generation can include up to 3 MP3 audio clips, each 3 to 12 seconds long and up to 50 MB. Pure text-to-video, specified first and last frames, and reference videos are not supported. Multiple images are used as joint references and do not indicate first or last frame positions. Tasks can be created via `POST /v1/videos`, `POST /api/v3/contents/generations/tasks`, or the Vidu formats `POST /ent/v2/img2video` and `POST /ent/v2/reference2video`. For the unified endpoint, `mode=reference_images` is recommended; use `mode=reference_material` when including audio. Reference audio can use `audio_urls`. The Seedance format can also use the `audio_url` field of the standard `content`; the `audio` Boolean field controls audio generation and is used separately from the reference audio URL list. The resolution must match the model name.

### Magi-2 1080p

`magi-2-1080p` supports both the OpenAI `/v1/videos` and Ark `/api/v3/contents/generations/tasks` formats. Query each format using the corresponding path's `GET /{task_id}`. Resolution is fixed at 1080p, with a generation duration of 4–30 seconds. Supported aspect ratios are 16:9, 9:16, 1:1, 4:3, 3:4, and 21:9; 1:1 output is 1440×1440. Reference mode supports up to 10 images, 5 video clips, and 5 audio clips, for a total of 20 assets. Each video and audio clip must be 2–30 seconds long. The combined duration of all videos must not exceed 30 seconds, and the combined duration of all audio must not exceed 30 seconds. The size limit is 30 MB for images, 200 MB for videos, and 15 MB for audio. First-and-last-frame mode cannot be combined with other image, video, or audio references. Prompts can use `<<<image_1>>>`, `<<<video_1>>>`, and `<<<audio_1>>>` to reference assets in the order they were provided for each type. There is currently no separate entry point for the official sand.ai format.

```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"
    }
  ]
}
```

Key fields in query results:
- `items[].status`
- `items[].content.video_url` or `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/en/openapi.json POST /api/v3/contents/generations/tasks
openapi: 3.0.0
info:
  title: Overseas Expansion Camp API Reference Documentation
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.newapi.si
security:
  - BearerAuth: []
tags:
  - name: OpenAI format (Chat)
  - name: OpenAI Format (Responses)
  - name: Gemini Format for Image Generation
  - name: Image generationOpenAI DALL-E format
  - name: List models
  - name: Video generationHappyHorse and Wan
  - name: Video generation Kling format
  - name: Video generation Omni and Veo formats
  - name: Video generation Seedance
  - name: Video generation Sora compatible formats
  - name: Video generation Vidu
  - name: Music generation task format
paths:
  /api/v3/contents/generations/tasks:
    post:
      tags:
        - Video generation Seedance
      summary: Create video (Seedance)
      description: >-
        This series supports OpenAI video generation formats (see the link
        [Video generation Sora compatible
        formats](/api-reference/en/video-generation-sora-compatible-format/create-video)).


        Used to create video generation tasks and query status and results via
        task ID.


        Core fields for task creation:

        - `model`: Required. Model name.

        - `prompt`: Optional; if not provided, `content` must include a
        non-empty text item.

        - `content`: Optional, the Volcano Ark content array, mixing text,
        image, video, and audio materials.

        - `function_mode`: Optional. Commonly used for advanced modes such as
        Omni-Reference.


        Compatible input parameters:


        The following fields are mainly used for compatibility with legacy
        clients and older protocols. For new integrations, please use the
        standard format in the “Request Example” on this page whenever possible:
        use the `content` array for text and reference materials, and use
        top-level `duration`, `ratio`, `resolution`, `fps`, and other fields for
        generation configuration.


        - `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`


        Call details:

        - When using `mode=reference_material` or
        `function_mode=omni_reference`, it is recommended to pass text and
        reference materials via `content`.

        - `content` text items are written as `{ "type": "text", "text": "测试文字"
        }`.

        - `content` image, video, and audio material items use the `image_url`,
        `video_url`, and `audio_url` object formats respectively, for example `{
        "type": "image_url", "image_url": { "url": "https://example.com/ref.png"
        }, "role": "reference_image", "name": "1" }`.

        - `role` can be used to identify the purpose of the material, and `name`
        can be referenced by name in prompts.

        - `ratio`, `duration`, `resolution`, and `fps` will affect the final
        generation configuration.


        Seedance 2.5 Mixed image, video, and audio reference example (the asset
        URLs are placeholders; replace them with actual accessible links when
        calling):


        ```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 invocation:

        - `gemini-omni` can also be invoked through this Seedance task API.

        - `mode=t2v` is used for text-to-video, `mode=r2v` for generation with
        reference images/reference materials, and `mode=edit` for video editing.

        - Text can be placed in the `text` item of `prompt` or `content`; images
        can be placed in `image_url / image_urls / reference_images /
        input_reference / content`; videos can be placed in `video_urls /
        content`.

        - The duration field can use `duration` or `seconds`, and will be
        automatically mapped to the 4 / 6 / 8 / 10 second options.


        MiniMax / Hailuo Invocation:

        - `minimax-h3` can be invoked through this task API and supports
        text-to-video, image reference, and audio reference; text can be placed
        in the `prompt` or `content` text fields, and assets can be placed in
        fields such as `content`, `image_urls`, and `audio_urls`.

        - `hailuo-2.3` can be invoked through this task API. A first-frame image
        is required. It is recommended to pass the `image_url` item of
        `role=first_frame` in `content`.

        - `minimax-h3` commonly uses `duration=5~15` and `resolution=1440p`;
        `hailuo-2.3` commonly uses `duration=6` or `10` and `resolution=768p`.

         Kling 4.0 requests: `kling-4.0` (720p) and `kling-4.0-1080p` both support the Seedance `content/duration/resolution/ratio/mode` format, `contents/settings/options`, and the OpenAI video format; the two unified video endpoints can reuse the same request body. The resolution must match the model name. Kling 4.0 can use either the Seedance format with content/duration/resolution/ratio/mode, or the OpenAI video format with prompt/seconds/size/input_reference; neither requires additional contents/settings/options. The mode can be t2v (text only), i2v (single first frame), i2v_first_last (first and last frames), reference_images (standard reference images), or reference_material (all-purpose reference materials; audio requires a route that supports this capability). If mode is omitted and no explicit tool is specified, reference_material is used by default when reference materials are provided; otherwise, t2v is used. Reference modes treat inputs as standard reference images and do not silently reinterpret explicitly provided first and last frames as reference images. For first and last frames, explicitly select i2v or i2v_first_last and omit the aspect ratio parameter. Kling 4.0 generates audio and video together by default. All-purpose reference mode supports public audio URLs: use audio_urls with /v1/videos, and the audio_url item in content with Seedance; a route that supports audio materials is required. The three native dedicated endpoints currently do not accept reference audio fields.

        Vidu Q4: `vidu-q4` is fixed at 720p, and `vidu-q4-540p` is fixed at
        540p. Supports generating videos from 3 to 16 seconds. At least 1 image
        is required, with up to 15 reference images supported. Reference
        generation can include up to 3 MP3 audio clips, each 3 to 12 seconds
        long and up to 50 MB. Pure text-to-video, specified first and last
        frames, and reference videos are not supported. Multiple images are used
        as joint references and do not indicate first or last frame positions.
        Tasks can be created via `POST /v1/videos`, `POST
        /api/v3/contents/generations/tasks`, or the Vidu formats `POST
        /ent/v2/img2video` and `POST /ent/v2/reference2video`. For the unified
        endpoint, `mode=reference_images` is recommended; use
        `mode=reference_material` when including audio. Reference audio can use
        `audio_urls`. The Seedance format can also use the `audio_url` field of
        the standard `content`; the `audio` Boolean field controls audio
        generation and is used separately from the reference audio URL list. The
        resolution must match the model name.


        ### Magi-2 1080p


        `magi-2-1080p` supports both the OpenAI `/v1/videos` and Ark
        `/api/v3/contents/generations/tasks` formats. Query each format using
        the corresponding path's `GET /{task_id}`. Resolution is fixed at 1080p,
        with a generation duration of 4–30 seconds. Supported aspect ratios are
        16:9, 9:16, 1:1, 4:3, 3:4, and 21:9; 1:1 output is 1440×1440. Reference
        mode supports up to 10 images, 5 video clips, and 5 audio clips, for a
        total of 20 assets. Each video and audio clip must be 2–30 seconds long.
        The combined duration of all videos must not exceed 30 seconds, and the
        combined duration of all audio must not exceed 30 seconds. The size
        limit is 30 MB for images, 200 MB for videos, and 15 MB for audio.
        First-and-last-frame mode cannot be combined with other image, video, or
        audio references. Prompts can use `<<<image_1>>>`, `<<<video_1>>>`, and
        `<<<audio_1>>>` to reference assets in the order they were provided for
        each type. There is currently no separate entry point for the official
        sand.ai format.


        ```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"
            }
          ]
        }

        ```


        Key fields in query results:

        - `items[].status`

        - `items[].content.video_url` or `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: >-
                    Required. The model name. Supported external models include
                    Seedance, Kling 4.0, Vidu Q4, `gemini-omni`, `minimax-h3`,
                    and `hailuo-2.3`.
                prompt:
                  type: string
                  description: >-
                    Optional; standard Seedance requests can provide text
                    directly in a non-empty text item in content, or use the
                    top-level prompt. The same applies to Kling 4.0;
                    contents/settings/options are not required.
                  example: 参考素材生成一段剧情短视频
                content:
                  type: array
                  description: >-
                    Optional. The Volcano Ark content array, which interleaves
                    text and media items in order. Text items use `{ "type":
                    "text", "text": "..." }`; image, video, and audio items use
                    `image_url`, `video_url`, and `audio_url` objects
                    respectively, with `url` placed inside them. These can be
                    used together with `role` (such as `reference_image`,
                    `reference_video`, and `reference_audio`) and `name` for
                    text references.
                  items:
                    type: object
                    required:
                      - type
                    properties:
                      type:
                        type: string
                        enum:
                          - text
                          - image_url
                          - video_url
                          - audio_url
                        description: Content item type.
                      text:
                        type: string
                        description: Text content, used only when type=text.
                      image_url:
                        oneOf:
                          - type: string
                          - type: object
                            properties:
                              url:
                                type: string
                        description: >-
                          Image URL. Recommended object format:
                          `{"url":"https://..."}`.
                      video_url:
                        oneOf:
                          - type: string
                          - type: object
                            properties:
                              url:
                                type: string
                        description: >-
                          Video URL. Recommended object syntax:
                          `{"url":"https://..."}`.
                      audio_url:
                        oneOf:
                          - type: string
                          - type: object
                            properties:
                              url:
                                type: string
                        description: >-
                          Audio URL. Recommended object format:
                          `{"url":"https://..."}`.
                      role:
                        type: string
                        description: >-
                          Asset usage identifier. Common values include
                          reference_image, reference_video, and reference_audio.
                      name:
                        type: string
                        description: >-
                          Asset name, can be referenced in text prompts or used
                          to distinguish between multiple assets.
                contents:
                  type: array
                  minItems: 1
                  description: >-
                    Kling 4.0 legacy envelope compatibility array. Not required
                    for standard Seedance requests; use content directly.
                  items:
                    type: object
                    required:
                      - type
                    properties:
                      type:
                        type: string
                        enum:
                          - prompt
                          - reference_image
                          - reference_video
                          - first_frame
                          - last_frame
                      text:
                        type: string
                        description: The text description when `type=prompt`.
                      url:
                        type: string
                        format: uri
                        description: >-
                          Accessible URL of reference materials or the
                          first/last frames.
                settings:
                  type: object
                  description: >-
                    Legacy envelope compatibility settings; standard Seedance
                    uses the top-level duration/resolution/ratio directly and
                    does not need to be provided.
                  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: >-
                    Legacy envelope compatibility field; not required for
                    standard Seedance requests.
                function_mode:
                  type: string
                  description: >-
                    Optional. Advanced feature mode, such as `omni_reference`
                    for all-in-one reference.
                mode:
                  type: string
                  description: >-
                    Optional. Compatibility-mode fields, such as `t2v`, `i2v`,
                    `i2v_first_last`, `reference_images`, and
                    `reference_material`; `gemini-omni` supports `t2v`, `r2v`,
                    and `edit`. Kling 4.0 can use the Seedance format directly:
                    content/duration/resolution/ratio/mode, or the OpenAI video
                    format: prompt/seconds/size/input_reference. Neither
                    requires additional contents/settings/options. The mode can
                    be t2v (text only), i2v (single first frame), i2v_first_last
                    (first and last frames), reference_images (standard
                    reference images), or reference_material (all-purpose
                    reference materials; audio requires a route that supports
                    this capability). If mode is omitted and no tool is
                    explicitly specified, reference_material is the default when
                    reference materials are provided; t2v is the default when
                    none are provided. Reference modes use the standard
                    reference-image role and do not silently reinterpret
                    explicitly specified first and last frames as reference
                    images. For first and last frames, explicitly select i2v or
                    i2v_first_last, and omit the aspect-ratio parameter. Kling
                    4.0 generates audio and video together by default.
                    All-purpose reference mode supports publicly accessible
                    audio URLs: use audio_urls with /v1/videos, and the
                    audio_url item in content with Seedance. A route that
                    supports audio materials is required. The three native
                    dedicated endpoints do not currently accept reference-audio
                    fields.
                  example: reference_material
                  x-kling-modes:
                    - t2v
                    - i2v
                    - i2v_first_last
                    - reference_images
                    - reference_material
                image_url:
                  type: string
                  description: Optional. URL of a single reference image.
                image_urls:
                  type: array
                  items:
                    type: string
                  description: Optional. A list of URLs for multiple reference images.
                input_reference:
                  type: string
                  description: Optional. Compatible with reference input fields.
                end_image_url:
                  type: string
                  description: Optional. The URL of the last-frame reference image.
                last_image_url:
                  type: string
                  description: Optional. URL alias for the last frame reference image.
                video_urls:
                  type: array
                  items:
                    type: string
                  description: Optional. List of reference video URLs.
                audio_urls:
                  type: array
                  items:
                    type: string
                    format: uri
                  description: Optional. List of reference audio URLs.
                seconds:
                  oneOf:
                    - type: number
                    - type: string
                  description: >-
                    Optional. Video duration in seconds; compatible with
                    `duration`.
                duration:
                  oneOf:
                    - type: number
                    - type: string
                  description: >-
                    Optional. Video duration in seconds; compatible with
                    `seconds`.
                aspect_ratio:
                  type: string
                  description: Optional. Aspect ratio, such as `16:9`.
                ratio:
                  type: string
                  description: Optional. Aspect ratio aliases, such as `16:9`.
                size:
                  type: string
                  description: Optional. Field for resolution or dimension compatibility.
                quality:
                  type: string
                  description: Optional. Generation quality configuration.
                resolution:
                  type: string
                  description: Optional. The output resolution.
                fps:
                  type: number
                  description: Optional. Frame rate.
                generate_audio:
                  type: boolean
                  description: Optional. Whether to generate audio.
                watermark:
                  type: boolean
                  description: Optional. Whether to add a watermark.
            examples:
              kling_4_seedance_reference_material:
                summary: Kling 4.0 720p Seedance · Default reference asset
                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 · Plain text
                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 · First-Frame Image-to-Video
                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 · First and Last Frames
                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 · Reference image
                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 · Default asset reference
                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 · Plain Text
                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 · First-Frame Image-to-Video
                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 · First and Last Frames
                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 · Reference image
                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 Reference Generation (Legacy Envelope
                  Compatible)
                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 All-in-One Reference Audio 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 Reference Generation (Legacy Envelope
                  Compatible)
                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 All-in-One Reference Audio 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 Multi-Image / Audio Reference
                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 Multi-Image / Audio Reference
                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 Image/Video/Audio Reference
                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 Mixed Image/Video/Audio Reference
                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 task
                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 task
                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 First-frame image-to-video
                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: Fixed-resolution video task
                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: Task created successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                properties:
                  id:
                    type: string
                    example: task_xxx
                    description: Task ID.
                  status:
                    type: string
                    description: Task status.
                    enum:
                      - queued
                      - running
                      - succeeded
                      - failed
                  created_at:
                    type: string
                    description: Creation time (Unix seconds).
                  items:
                    type: string
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Task ID.
                        status:
                          type: string
                          description: >-
                            Task status, commonly `queued`, `running`,
                            `succeeded`, and `failed`.
                        content:
                          type: object
                          properties:
                            video_url:
                              type: string
                              description: Video result URL.
                        video_url:
                          type: string
                          description: Video result URL.
                        error:
                          type: string
                          description: Error message returned when the request fails.
                        progress:
                          type: string
                          description: Task progress.
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Use Bearer Token authentication.
        Format: `Authorization: Bearer sk-xxxxxx`

````

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