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

> OpenAI Sora video generation API in a compatible format. Supports text-to-video and image/video reference generation modes.

- `POST /v1/videos`: Create video task
- `GET /v1/videos/{video_id}`: Query task status
- `GET /v1/videos/{video_id}/content`: Retrieve the video binary content

Currently not available externally:
- `GET /v1/videos`
- `POST /v1/videos/{video_id}/remix`

Standard authentication headers:
- `Content-Type: application/json`

1. Use `POST /v1/videos` to create a task and obtain `id`
2. Poll `GET /v1/videos/{id}` until `completed` or `failed`
3. After completion, prefer using `video_url` returned in the response
4. For unified download, call `GET /v1/videos/{id}/content`

Core parameters:
- `model: string`: Required, public model name
- `prompt: string`: Recommended, video generation description
- `seconds: number|string`: Optional, target duration
- `duration: number|string`: Optional, duration alias
- `size: string`: Optional, output resolution
- `mode: string`: Optional, common values: `t2v` `i2v` `i2v_first_last` `reference_material`

Common compatibility parameters:
- `aspect_ratio`
- `ratio`
- `quality`
- `resolution`
- `fps`
- `image`
- `image_url`
- `image_urls`
- `images`
- `reference_images`
- `input_reference`
- `end_image_url`
- `last_image_url`
- `video_urls`
- `audio_urls`
- `function_mode`
- `content`
- `callback_url`
- `external_task_id`

Kling 4.0 directly uses the standard video parameters; see Section 4.6 for the specific request format.

### 4.1 Veo series

Note: `stable`, `official`, and similar labels indicate different groups, not external `model` suffixes; when calling, keep `model` as the base model name, and let the account or token group determine which group is actually used.

#### Veo 3.x main model

- `veo3`
- `veo3-fast`
- `veo3-fast-frames`
- `veo3-frames`
- `veo3-pro`
- `veo3-pro-frames`
- `veo3.1`
- `veo3.1-fast`
- `veo3.1-pro`
- `veo3.1-components`
- `veo3.1-4k`
- `veo3.1-pro-4k`

Recommendations:
- For text-to-video only, prefer the `veo3*` / `veo3.1*` base models
- For image-to-video or reference-to-video scenarios, it is recommended to explicitly pass `mode + image_url/reference_images`

### 4.2 Sora series

Base models:
- `sora-2`
- `sora-2-pro`

Recommendations:
- `sora-2*` is suitable for general-purpose use
- To use groups such as `stable` / `official`, keep `model` as the base model name and do not append any suffix to the model name.

Request example:

```json
{
  "size": "1280x720",
  "images": [
    "https://example.png"
  ],
  "model": "sora-2",
  "prompt": "this is an example",
  "duration": 12,
  "fps": "24",
  "seed": "20231024",
  "mode": "i2v"
}
```

### 4.3 HappyHorse series

Public model:
- `happyhorse-1.0`

Recommendations:
- `happyhorse-1.0` are distinguished by `mode` into `t2v`, `i2v`, `r2v`, and `video_edit`.
- In Sora-compatible format, it is recommended to pass media items in the `content` array for reference images.
- Use `type=text` for text items and `type=image_url` for media items, and optionally use `role` and `name` to indicate the asset's purpose.

Request example:

```json
{
  "size": "720x1280",
  "model": "happyhorse-1.0",
  "mode": "r2v",
  "prompt": "this is an example",
  "duration": 15,
  "content": [
    {
      "type": "text",
      "text": "this is an example"
    },
    {
      "type": "image_url",
      "image_url": {
        "url": "https://example.png"
      },
      "role": "reference_image",
      "name": "image1"
    }
  ],
  "parameters": {
    "resolution": "720P",
    "ratio": "9:16",
    "duration": 15,
    "seed": 1
  }
}
```

### 4.4 Seedance Series

Public model:
- `doubao-seedance-1-0-lite-t2v-250428`
- `doubao-seedance-1-0-lite-i2v-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`

Recommendations:
- For text-to-video, prefer `*-t2v-*` or `pro / fast`
- For image-to-video, prefer `*-i2v-*`
- For scenarios with complex reference materials, prefer `content`

Request example:

```json
{
  "size": "1280x720",
  "model": "doubao-seedance-2-0-fast-260128",
  "prompt": "this is an example",
  "duration": 15,
  "fps": "24",
  "seed": "20231024",
  "mode": "reference_material",
  "content": [
    {
      "type": "text",
      "text": "this is an example"
    },
    {
      "type": "image_url",
      "image_url": {
        "url": "https://example.png"
      },
      "role": "reference_image",
      "name": "image1"
    },
    {
      "type": "audio_url",
      "audio_url": {
        "url": "https://example.mp3"
      },
      "role": "reference_audio",
      "name": "audio1"
    }
  ]
}
```

### 4.5 Grok Video Series

Public model:
- `grok-imagine-1.0-video`
- `grok-imagine-video-1.5-preview`
- `grok-video-3`

Common parameters:
- `prompt`
- `ratio` / `aspect_ratio`
- `resolution` / `size`
- `seconds` / `duration`
- `image` / `image_url` / `input_reference`
- `reference_images`

Example:

```json
{
  "model": "grok-imagine-1.0-video",
  "prompt": "雨夜霓虹街道上的电影感推镜，光影丰富，运动自然",
  "reference_images": [
    "https://example.com/ref-1.jpg"
  ],
  "seconds": 10,
  "aspect_ratio": "16:9",
  "resolution": "720P"
}
```

### 4.6 Kling 4.0 Video

Public models: `kling-4.0` (720p), `kling-4.0-1080p`. Native formats can use `POST /text-to-video/kling-4.0`, `POST /image-to-video/kling-4.0`, and `POST /omni-video/kling-4.0`, and can be queried with `GET /tasks?task_ids=任务ID`. Native requests do not require `model`; `settings.resolution` selects the resolution, defaulting to 1080p. Native reference image/video types are `refer_image` and `feature_video`. Creation returns a `data` object, while queries return a `data` array. Submit through `POST /api/v3/contents/generations/tasks` or `POST /v1/videos`, and query using `GET /{task_id}` on the corresponding path. OpenAI/Sora use `prompt`, `seconds`, `size`, and `input_reference` directly; Seedance uses `content` and top-level `duration/resolution/ratio/mode` directly. Neither requires an additional `contents/settings/options`. `kling-4.0` corresponds to 720p, and `kling-4.0-1080p` to 1080p; make sure `settings.resolution` matches the model name. Use `duration` (4–30 seconds), `resolution` (720p/1080p), and `aspect_ratio` (21:9, 16:9, 9:16, 1:1) in `settings`. The current interface supports up to 10 reference images and 5 reference video clips. Kling 4.0 generates audio and video together by default. All-in-one reference mode supports public audio URLs: use audio_urls with /v1/videos and the audio_url item in content with Seedance. Use a route that supports audio assets. The three native dedicated endpoints do not currently accept reference audio fields.

```json
{
  "model": "kling-4.0",
  "prompt": "A cinematic product shot",
  "seconds": "4",
  "size": "1280x720",
  "input_reference": "https://example.com/product.jpg"
}
```

### 4.7 MiniMax / Hailuo Video Series

Public model:
- `minimax-h3`
- `hailuo-2.3`

Recommendations:
- `minimax-h3` supports text-to-video, image references, and audio references. We recommend mixing text and assets via `content`; you can also use compatible fields such as `image_urls` and `audio_urls`.
- `hailuo-2.3` requires a first-frame image. We recommend passing the `image_url` field of `role=first_frame` in `content`, or using `image_urls` to pass the first-frame image.
- `minimax-h3` commonly uses `duration=5~15` and `resolution=1440p`; `hailuo-2.3` commonly uses `duration=6` or `10` and `resolution=768p`.

`minimax-h3` Example:

```json
{
  "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",
  "aspect_ratio": "16:9",
  "generate_audio": true
}
```

`hailuo-2.3` Example:

```json
{
  "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",
  "aspect_ratio": "16:9"
}
```

- `mode=t2v`
- Minimum input: `model + prompt`

- `mode=i2v`
- Minimum input: `model + prompt + image_url`

- `mode=i2v_first_last`
- Minimum input: `model + prompt + image_url + end_image_url`

- `mode=reference_images`
- Minimum input: `model + prompt + reference_images`

- `mode=reference_material`
- Minimum input: `model + prompt + (image_urls/video_urls/audio_urls 至少一种)`

### Gemini Omni usage instructions

- `gemini-omni` is the publicly exposed video model name of new-api, and can be called directly via `POST /v1/videos`.
- `mode=t2v`: text-to-video, with the minimum input parameter being `model + prompt`.
- `mode=r2v`: reference image/reference material generation; images can be placed in `image`, `image_url`, `images`, `image_urls`, `reference_images`, `input_reference`, or `content`.
- `mode=edit`: video editing; videos can be placed in `video`, `video_url`, `videos`, or `content`, and reference images can also be provided at the same time.
- The duration field can use `seconds` or `duration`, and will be automatically mapped to the 4 / 6 / 8 / 10 second options.

Kling 4.0 can use the Seedance format fields content/duration/resolution/ratio/mode directly, or the OpenAI video format fields prompt/seconds/size/input_reference; neither requires additional contents/settings/options. The available mode values are t2v (text only), i2v (single first frame), i2v_first_last (first and last frames), reference_images (standard reference images), and reference_material (all-in-one reference materials; audio requires a route that supports this capability). If mode is omitted and no tool is explicitly specified, reference_material is used by default when reference materials are provided, and t2v when none are provided. Reference modes use standard reference-image roles; explicitly specified first and last frames are not silently treated 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-in-one reference mode supports public audio URLs: use audio_urls with /v1/videos and the audio_url item in content with Seedance. Use a route that supports audio assets. The three native dedicated endpoints do not currently 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",
  "prompt": "以 <<<image_1>>> 的彩色积木为主体，参考 <<<video_1>>> 的缓慢转动及 <<<audio_1>>> 的轻柔节奏。",
  "seconds": "4",
  "size": "1440x1440",
  "image_urls": [
    "https://example.com/blocks.png"
  ],
  "video_urls": [
    "https://example.com/rotation.mp4"
  ],
  "audio_urls": [
    "https://example.com/rhythm.wav"
  ]
}
```



## OpenAPI

````yaml api-reference/en/openapi.json POST /v1/videos
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:
  /v1/videos:
    post:
      tags:
        - Video generation Sora compatible formats
      summary: Create video
      description: >-
        OpenAI Sora video generation API in a compatible format. Supports
        text-to-video and image/video reference generation modes.


        - `POST /v1/videos`: Create video task

        - `GET /v1/videos/{video_id}`: Query task status

        - `GET /v1/videos/{video_id}/content`: Retrieve the video binary content


        Currently not available externally:

        - `GET /v1/videos`

        - `POST /v1/videos/{video_id}/remix`


        Standard authentication headers:

        - `Content-Type: application/json`


        1. Use `POST /v1/videos` to create a task and obtain `id`

        2. Poll `GET /v1/videos/{id}` until `completed` or `failed`

        3. After completion, prefer using `video_url` returned in the response

        4. For unified download, call `GET /v1/videos/{id}/content`


        Core parameters:

        - `model: string`: Required, public model name

        - `prompt: string`: Recommended, video generation description

        - `seconds: number|string`: Optional, target duration

        - `duration: number|string`: Optional, duration alias

        - `size: string`: Optional, output resolution

        - `mode: string`: Optional, common values: `t2v` `i2v` `i2v_first_last`
        `reference_material`


        Common compatibility parameters:

        - `aspect_ratio`

        - `ratio`

        - `quality`

        - `resolution`

        - `fps`

        - `image`

        - `image_url`

        - `image_urls`

        - `images`

        - `reference_images`

        - `input_reference`

        - `end_image_url`

        - `last_image_url`

        - `video_urls`

        - `audio_urls`

        - `function_mode`

        - `content`

        - `callback_url`

        - `external_task_id`


        Kling 4.0 directly uses the standard video parameters; see Section 4.6
        for the specific request format.


        ### 4.1 Veo series


        Note: `stable`, `official`, and similar labels indicate different
        groups, not external `model` suffixes; when calling, keep `model` as the
        base model name, and let the account or token group determine which
        group is actually used.


        #### Veo 3.x main model


        - `veo3`

        - `veo3-fast`

        - `veo3-fast-frames`

        - `veo3-frames`

        - `veo3-pro`

        - `veo3-pro-frames`

        - `veo3.1`

        - `veo3.1-fast`

        - `veo3.1-pro`

        - `veo3.1-components`

        - `veo3.1-4k`

        - `veo3.1-pro-4k`


        Recommendations:

        - For text-to-video only, prefer the `veo3*` / `veo3.1*` base models

        - For image-to-video or reference-to-video scenarios, it is recommended
        to explicitly pass `mode + image_url/reference_images`


        ### 4.2 Sora series


        Base models:

        - `sora-2`

        - `sora-2-pro`


        Recommendations:

        - `sora-2*` is suitable for general-purpose use

        - To use groups such as `stable` / `official`, keep `model` as the base
        model name and do not append any suffix to the model name.


        Request example:


        ```json

        {
          "size": "1280x720",
          "images": [
            "https://example.png"
          ],
          "model": "sora-2",
          "prompt": "this is an example",
          "duration": 12,
          "fps": "24",
          "seed": "20231024",
          "mode": "i2v"
        }

        ```


        ### 4.3 HappyHorse series


        Public model:

        - `happyhorse-1.0`


        Recommendations:

        - `happyhorse-1.0` are distinguished by `mode` into `t2v`, `i2v`, `r2v`,
        and `video_edit`.

        - In Sora-compatible format, it is recommended to pass media items in
        the `content` array for reference images.

        - Use `type=text` for text items and `type=image_url` for media items,
        and optionally use `role` and `name` to indicate the asset's purpose.


        Request example:


        ```json

        {
          "size": "720x1280",
          "model": "happyhorse-1.0",
          "mode": "r2v",
          "prompt": "this is an example",
          "duration": 15,
          "content": [
            {
              "type": "text",
              "text": "this is an example"
            },
            {
              "type": "image_url",
              "image_url": {
                "url": "https://example.png"
              },
              "role": "reference_image",
              "name": "image1"
            }
          ],
          "parameters": {
            "resolution": "720P",
            "ratio": "9:16",
            "duration": 15,
            "seed": 1
          }
        }

        ```


        ### 4.4 Seedance Series


        Public model:

        - `doubao-seedance-1-0-lite-t2v-250428`

        - `doubao-seedance-1-0-lite-i2v-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`


        Recommendations:

        - For text-to-video, prefer `*-t2v-*` or `pro / fast`

        - For image-to-video, prefer `*-i2v-*`

        - For scenarios with complex reference materials, prefer `content`


        Request example:


        ```json

        {
          "size": "1280x720",
          "model": "doubao-seedance-2-0-fast-260128",
          "prompt": "this is an example",
          "duration": 15,
          "fps": "24",
          "seed": "20231024",
          "mode": "reference_material",
          "content": [
            {
              "type": "text",
              "text": "this is an example"
            },
            {
              "type": "image_url",
              "image_url": {
                "url": "https://example.png"
              },
              "role": "reference_image",
              "name": "image1"
            },
            {
              "type": "audio_url",
              "audio_url": {
                "url": "https://example.mp3"
              },
              "role": "reference_audio",
              "name": "audio1"
            }
          ]
        }

        ```


        ### 4.5 Grok Video Series


        Public model:

        - `grok-imagine-1.0-video`

        - `grok-imagine-video-1.5-preview`

        - `grok-video-3`


        Common parameters:

        - `prompt`

        - `ratio` / `aspect_ratio`

        - `resolution` / `size`

        - `seconds` / `duration`

        - `image` / `image_url` / `input_reference`

        - `reference_images`


        Example:


        ```json

        {
          "model": "grok-imagine-1.0-video",
          "prompt": "雨夜霓虹街道上的电影感推镜，光影丰富，运动自然",
          "reference_images": [
            "https://example.com/ref-1.jpg"
          ],
          "seconds": 10,
          "aspect_ratio": "16:9",
          "resolution": "720P"
        }

        ```


        ### 4.6 Kling 4.0 Video


        Public models: `kling-4.0` (720p), `kling-4.0-1080p`. Native formats can
        use `POST /text-to-video/kling-4.0`, `POST /image-to-video/kling-4.0`,
        and `POST /omni-video/kling-4.0`, and can be queried with `GET
        /tasks?task_ids=任务ID`. Native requests do not require `model`;
        `settings.resolution` selects the resolution, defaulting to 1080p.
        Native reference image/video types are `refer_image` and
        `feature_video`. Creation returns a `data` object, while queries return
        a `data` array. Submit through `POST /api/v3/contents/generations/tasks`
        or `POST /v1/videos`, and query using `GET /{task_id}` on the
        corresponding path. OpenAI/Sora use `prompt`, `seconds`, `size`, and
        `input_reference` directly; Seedance uses `content` and top-level
        `duration/resolution/ratio/mode` directly. Neither requires an
        additional `contents/settings/options`. `kling-4.0` corresponds to 720p,
        and `kling-4.0-1080p` to 1080p; make sure `settings.resolution` matches
        the model name. Use `duration` (4–30 seconds), `resolution`
        (720p/1080p), and `aspect_ratio` (21:9, 16:9, 9:16, 1:1) in `settings`.
        The current interface supports up to 10 reference images and 5 reference
        video clips. Kling 4.0 generates audio and video together by default.
        All-in-one reference mode supports public audio URLs: use audio_urls
        with /v1/videos and the audio_url item in content with Seedance. Use a
        route that supports audio assets. The three native dedicated endpoints
        do not currently accept reference audio fields.


        ```json

        {
          "model": "kling-4.0",
          "prompt": "A cinematic product shot",
          "seconds": "4",
          "size": "1280x720",
          "input_reference": "https://example.com/product.jpg"
        }

        ```


        ### 4.7 MiniMax / Hailuo Video Series


        Public model:

        - `minimax-h3`

        - `hailuo-2.3`


        Recommendations:

        - `minimax-h3` supports text-to-video, image references, and audio
        references. We recommend mixing text and assets via `content`; you can
        also use compatible fields such as `image_urls` and `audio_urls`.

        - `hailuo-2.3` requires a first-frame image. We recommend passing the
        `image_url` field of `role=first_frame` in `content`, or using
        `image_urls` to pass the first-frame image.

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


        `minimax-h3` Example:


        ```json

        {
          "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",
          "aspect_ratio": "16:9",
          "generate_audio": true
        }

        ```


        `hailuo-2.3` Example:


        ```json

        {
          "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",
          "aspect_ratio": "16:9"
        }

        ```


        - `mode=t2v`

        - Minimum input: `model + prompt`


        - `mode=i2v`

        - Minimum input: `model + prompt + image_url`


        - `mode=i2v_first_last`

        - Minimum input: `model + prompt + image_url + end_image_url`


        - `mode=reference_images`

        - Minimum input: `model + prompt + reference_images`


        - `mode=reference_material`

        - Minimum input: `model + prompt + (image_urls/video_urls/audio_urls
        至少一种)`


        ### Gemini Omni usage instructions


        - `gemini-omni` is the publicly exposed video model name of new-api, and
        can be called directly via `POST /v1/videos`.

        - `mode=t2v`: text-to-video, with the minimum input parameter being
        `model + prompt`.

        - `mode=r2v`: reference image/reference material generation; images can
        be placed in `image`, `image_url`, `images`, `image_urls`,
        `reference_images`, `input_reference`, or `content`.

        - `mode=edit`: video editing; videos can be placed in `video`,
        `video_url`, `videos`, or `content`, and reference images can also be
        provided at the same time.

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


        Kling 4.0 can use the Seedance format fields
        content/duration/resolution/ratio/mode directly, or the OpenAI video
        format fields prompt/seconds/size/input_reference; neither requires
        additional contents/settings/options. The available mode values are t2v
        (text only), i2v (single first frame), i2v_first_last (first and last
        frames), reference_images (standard reference images), and
        reference_material (all-in-one reference materials; audio requires a
        route that supports this capability). If mode is omitted and no tool is
        explicitly specified, reference_material is used by default when
        reference materials are provided, and t2v when none are provided.
        Reference modes use standard reference-image roles; explicitly specified
        first and last frames are not silently treated 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-in-one reference mode supports public audio URLs: use
        audio_urls with /v1/videos and the audio_url item in content with
        Seedance. Use a route that supports audio assets. The three native
        dedicated endpoints do not currently 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",
          "prompt": "以 <<<image_1>>> 的彩色积木为主体，参考 <<<video_1>>> 的缓慢转动及 <<<audio_1>>> 的轻柔节奏。",
          "seconds": "4",
          "size": "1440x1440",
          "image_urls": [
            "https://example.com/blocks.png"
          ],
          "video_urls": [
            "https://example.com/rotation.mp4"
          ],
          "audio_urls": [
            "https://example.com/rhythm.wav"
          ]
        }

        ```
      operationId: createVideo
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  description: >-
                    Required, external model name. `gemini-omni` Can be called
                    via `/v1/videos`.
                  enum:
                    - sora-2
                    - sora-2-pro
                    - gemini-omni
                    - happyhorse-1.1
                    - happyhorse-1.1-1080p
                    - wan-3.0-prime
                    - wan-3.0-prime-1080p
                    - sd-2-5-4k
                    - sd-2-5-flash
                    - sd-2-5-flash-480p
                    - happyhorse-1.0
                    - happyhorse-1.0-i2v
                    - happyhorse-1.0-t2v
                    - happyhorse-1.0-r2v
                    - happyhorse-1.0-video-edit
                    - 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
                    - veo3
                    - veo3-fast
                    - veo3-fast-frames
                    - veo3-frames
                    - veo3-pro
                    - veo3-pro-frames
                    - veo3.1
                    - veo3.1-4k
                    - veo3.1-components
                    - veo3.1-fast
                    - veo3.1-pro
                    - veo3.1-pro-4k
                    - kling-4.0
                    - kling-4.0-1080p
                    - grok-imagine-1.0-video
                    - grok-imagine-video-1.5-preview
                    - grok-video-3
                    - minimax-h3
                    - hailuo-2.3
                    - viduq3-turbo
                    - viduq2
                    - vidu2.0
                    - vidu-q4
                    - vidu-q4-540p
                    - magi-2-1080p
                  example: sora-2
                prompt:
                  type: string
                  description: >-
                    Video description. Standard OpenAI/Sora requests for Kling
                    4.0 use `prompt` directly; when using the standard Seedance
                    format, provide text in the `text` item of `content`,
                    without `contents`/`settings`/`options`. For other models,
                    provide text according to their respective format
                    requirements.
                image:
                  type: string
                  format: binary
                  description: >-
                    Single image entry point; will be mapped to `images` in
                    certain compatibility modes.
                duration:
                  type: integer
                  description: >-
                    Unified duration parameter. Some models also accept
                    `seconds`.
                width:
                  type: integer
                  example: 512
                  description: Video width
                height:
                  type: integer
                  example: 512
                  description: Video height
                fps:
                  type: integer
                  example: 30
                  description: Video frame rate
                seed:
                  type: integer
                  example: 20231234
                  description: Random seed
                'n':
                  type: integer
                  example: 1
                  description: Number of videos to generate
                response_format:
                  type: string
                  example: url
                  description: Response format
                user:
                  type: string
                  example: user-1234
                  description: User identifier
                metadata:
                  type: object
                  additionalProperties: true
                  description: >-
                    Dynamic extension field container. Numerous model-specific
                    fields are deserialized from here.
                tool:
                  type: string
                mode:
                  type: string
                  description: >-
                    Optional, video generation mode. `gemini-omni` Supports
                    `t2v`, `r2v`, and `edit`.


                    Kling 4.0 can use the Seedance format fields
                    content/duration/resolution/ratio/mode directly, or the
                    OpenAI video format fields
                    prompt/seconds/size/input_reference; neither requires
                    additional contents/settings/options. The available mode
                    values are t2v (text only), i2v (single first frame),
                    i2v_first_last (first and last frames), reference_images
                    (standard reference images), and reference_material
                    (all-in-one reference materials; audio requires a route that
                    supports this capability). If mode is omitted and no tool is
                    explicitly specified, reference_material is used by default
                    when reference materials are provided, and t2v when none are
                    provided. Reference modes use standard reference-image
                    roles; explicitly specified first and last frames are not
                    silently treated 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-in-one reference mode supports
                    public audio URLs: use audio_urls with /v1/videos and the
                    audio_url item in content with Seedance. Use a route that
                    supports audio assets. 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
                images:
                  type: array
                  description: >-
                    Unified multi-image entry point. Used by Vidu, Seedance,
                    Veo, etc.
                  items:
                    type: string
                content:
                  type: array
                  items:
                    type: object
                    additionalProperties: true
                  description: >-
                    The Seedance format can also invoke Kling 4.0. Use `text`
                    for text, and `image_url`/`video_url`/`audio_url` objects
                    for images, videos, and audio. The image `role` can be
                    `first_frame`, `last_frame`, or `reference_image`; use
                    `reference_video` for video and `reference_audio` for audio.
                    Reference audio must use an all-in-one reference route that
                    supports this capability. Do not infer that all routes
                    accept audio input merely because they output audio tracks.
                    Use `mode` to distinguish generation scenarios.
                contents:
                  type: array
                  minItems: 1
                  description: >-
                    Legacy envelope compatibility field for Kling 4.0; not
                    required for standard OpenAI/Sora and Seedance requests.
                  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; for the standard
                    format, use seconds/size or duration/resolution/ratio
                    directly.
                  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 the
                    standard format.
                size:
                  type: string
                  description: >-
                    Unified size input, which maps to resolution/aspect_ratio
                    and related fields.
                seconds:
                  type: string
                  description: >-
                    Sora compatibility entry point; at runtime, it falls back to
                    duration.
                input_reference:
                  type: string
                  description: >-
                    Sora/Veo compatible reference image input, can be a
                    multipart file or a compatible object.
                parameters:
                  type: object
                  additionalProperties: true
                audio_urls:
                  type: array
                  items:
                    type: string
                    format: uri
                  description: >-
                    List of reference audio URLs for standard OpenAI/Sora and
                    Seedance; used only for All-in-One Reference routes that
                    support audio references, and differs from the switch for
                    generating an output audio track.
                resolution:
                  type: string
                  description: >-
                    Output resolution, common values `540p`, `720p`, and
                    `1080p`.
              required:
                - model
            examples:
              openai_i2v_json:
                summary: OpenAI Sora i2v (application/json)
                value:
                  size: 1280x720
                  images:
                    - https://example.png
                  model: sora-2
                  prompt: this is an example
                  duration: 12
                  fps: '24'
                  seed: '20231024'
                  mode: i2v
              openai_i2v_input_reference:
                summary: OpenAI i2v (input_reference)
                value:
                  model: sora-2
                  prompt: A cinematic drone shot over snowy mountains at sunrise
                  input_reference:
                    image_url: https://example.com/input.jpg
                  seconds: '8'
                  size: 1280x720
                  response_format: url
              openai_alias_compat:
                summary: Alias兼容 (image_url/duration/aspect_ratio)
                value:
                  model: sora-2
                  prompt: A cinematic drone shot over snowy mountains at sunrise
                  image_url: https://example.com/input.jpg
                  duration: '8'
                  aspect_ratio: '16:9'
                  response_format: url
              gemini_omni_sora_t2v:
                summary: Gemini Omni Sora t2v
                value:
                  model: gemini-omni
                  mode: t2v
                  prompt: A cinematic product video with smooth camera motion
                  duration: 8
                  size: 1280x720
              gemini_omni_sora_r2v:
                summary: Gemini Omni Sora 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_sora_edit:
                summary: Gemini Omni Sora 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
              canvas_video_tier:
                summary: Fixed-resolution video
                value:
                  model: happyhorse-1.1-1080p
                  prompt: A white horse walking through a meadow.
                  seconds: '5'
                  size: 1920x1080
              happyhorse_sora_t2v:
                summary: HappyHorse Sora t2v
                value:
                  model: happyhorse-1.0
                  mode: t2v
                  content:
                    - type: text
                      text: >-
                        A cinematic white horse running through a neon city
                        street
                  duration: 5
                  resolution: 720P
                  ratio: '16:9'
              happyhorse_sora_i2v:
                summary: HappyHorse Sora i2v
                value:
                  model: happyhorse-1.0
                  mode: i2v
                  content:
                    - type: text
                      text: The camera slowly pushes in, natural motion
                    - type: image_url
                      image_url: https://example.com/first-frame.jpg
                  duration: 5
                  resolution: 720P
              happyhorse_sora_r2v:
                summary: HappyHorse Sora r2v
                value:
                  size: 720x1280
                  model: happyhorse-1.0
                  mode: r2v
                  prompt: this is an example
                  duration: 15
                  content:
                    - type: text
                      text: this is an example
                    - type: image_url
                      image_url:
                        url: https://example.png
                      role: reference_image
                      name: image1
                  parameters:
                    resolution: 720P
                    ratio: '9:16'
                    duration: 15
                    seed: 1
              happyhorse_sora_video_edit:
                summary: HappyHorse Sora video_edit
                value:
                  model: happyhorse-1.0
                  mode: video_edit
                  content:
                    - type: text
                      text: >-
                        Change the jacket to a striped sweater and keep the
                        motion natural
                    - type: video_url
                      video_url: https://example.com/input.mp4
                    - type: image_url
                      image_url: https://example.com/reference.jpg
                  resolution: 720P
              seedance_i2v_first:
                summary: Seedance i2v_first
                value:
                  model: doubao-seedance-1-0-lite-i2v-250428
                  mode: i2v_first
                  prompt: A panda skateboarding in a city street, cinematic
                  image_urls:
                    - https://example.com/first.jpg
                  seconds: '5'
                  size: 1280x720
              seedance_i2v_first_last:
                summary: Seedance i2v_first_last
                value:
                  model: doubao-seedance-1-0-lite-i2v-250428
                  mode: i2v_first_last
                  prompt: A camera moves from first frame to last frame naturally
                  image_urls:
                    - https://example.com/first.jpg
                  end_image_url: https://example.com/last.jpg
                  seconds: '5'
                  size: 1280x720
              seedance_reference_images:
                summary: Seedance reference_images
                value:
                  model: doubao-seedance-1-0-lite-i2v-250428
                  mode: reference_images
                  prompt: Stylized short video keeping character consistency
                  reference_images:
                    - https://example.com/ref-1.jpg
                    - https://example.com/ref-2.jpg
                  seconds: '5'
                  size: 1280x720
              seedance_reference_material:
                summary: Seedance All-in-one reference mode (reference_material)
                value:
                  model: doubao-seedance-1-0-lite-i2v-250428
                  mode: reference_material
                  prompt: >-
                    Blend image and short reference video into a coherent
                    cinematic clip
                  reference_images:
                    - https://example.com/ref-1.jpg
                    - https://example.com/ref-2.jpg
                  video_urls:
                    - https://example.com/ref-video.mp4
                  audio_urls:
                    - https://example.com/ref-audio.mp3
                  seconds: '5'
                  size: 1280x720
              seedance_volc_content:
                summary: Seedance Volcano Ark content mode
                value:
                  size: 1280x720
                  model: doubao-seedance-2-0-fast-260128
                  prompt: this is an example
                  duration: 15
                  fps: '24'
                  seed: '20231024'
                  mode: reference_material
                  content:
                    - type: text
                      text: this is an example
                    - type: image_url
                      image_url:
                        url: https://example.png
                      role: reference_image
                      name: image1
                    - type: audio_url
                      audio_url:
                        url: https://example.mp3
                      role: reference_audio
                      name: audio1
              veo_first_last_frame:
                summary: Veo First and last frame mode
                value:
                  model: veo3.1-fast
                  prompt: >-
                    A smooth transition from first frame to last frame,
                    cinematic motion
                  image_urls:
                    - https://example.com/first-frame.jpg
                  end_image_url: https://example.com/last-frame.jpg
                  seconds: '8'
                  size: 1280x720
              veo_reference_images_1to3:
                summary: Veo 1–3 reference images mode
                value:
                  model: veo3.1-fast
                  prompt: >-
                    Use reference style and character consistency for a short ad
                    clip
                  reference_images:
                    - https://example.com/ref-1.jpg
                  seconds: '8'
                  size: 1280x720
              kling_4_sora:
                summary: Kling 4.0 720p OpenAI video format
                value:
                  model: kling-4.0
                  prompt: A cinematic product shot with natural motion
                  seconds: '4'
                  size: 1280x720
                  input_reference: https://example.com/product.jpg
              kling_4_sora_1080p:
                summary: Kling 4.0 1080p OpenAI video format
                value:
                  model: kling-4.0-1080p
                  prompt: A cinematic product shot with natural motion
                  seconds: '4'
                  size: 1920x1080
                  input_reference: https://example.com/product.jpg
              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_text:
                summary: Kling 4.0 720p Text-to-Video (Legacy Envelope Compatible)
                value:
                  model: kling-4.0
                  mode: t2v
                  contents:
                    - type: prompt
                      text: A cinematic product shot with natural motion
                  settings:
                    duration: 4
                    resolution: 720p
                    aspect_ratio: '16:9'
                  options: {}
              kling_4_reference:
                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
                  prompt: A cinematic product shot with natural motion
                  seconds: '4'
                  size: 1280x720
                  input_reference: https://example.com/product.jpg
                  mode: reference_material
                  audio_urls:
                    - https://example.com/reference.mp3
              kling_4_text_1080p:
                summary: Kling 4.0 1080p Text-to-Video (Legacy Envelope Compatible)
                value:
                  model: kling-4.0-1080p
                  mode: t2v
                  contents:
                    - type: prompt
                      text: A cinematic product shot with natural motion
                  settings:
                    duration: 4
                    resolution: 1080p
                    aspect_ratio: '16:9'
                  options: {}
              kling_4_reference_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
                  prompt: A cinematic product shot with natural motion
                  seconds: '4'
                  size: 1920x1080
                  input_reference: https://example.com/product.jpg
                  mode: reference_material
                  audio_urls:
                    - https://example.com/reference.mp3
              grok_reference_video:
                summary: Grok Video Mode
                value:
                  model: grok-imagine-1.0-video
                  prompt: A dramatic cinematic shot with fast motion and rich lighting
                  reference_images:
                    - https://example.com/ref-1.jpg
                  seconds: 10
                  aspect_ratio: '16:9'
                  resolution: 720P
              minimax_h3_sora_reference:
                summary: MiniMax H3 multi-source video
                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
                  aspect_ratio: '16:9'
                  generate_audio: true
              hailuo_2_3_sora_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
                  aspect_ratio: '16:9'
              vidu_sora_t2v:
                summary: Vidu Sora t2v
                value:
                  model: viduq3-turbo
                  mode: t2v
                  content:
                    - type: text
                      text: A stylish product ad clip with cinematic lighting
                  duration: 5
                  resolution: 720p
                  aspect_ratio: '16:9'
              vidu_sora_i2v:
                summary: Vidu Sora i2v
                value:
                  model: viduq3-turbo
                  mode: i2v
                  content:
                    - type: text
                      text: A stylish ad clip from a product still image
                    - type: image_url
                      image_url: https://example.com/product.jpg
                  duration: 5
                  resolution: 720p
              vidu_sora_first_last:
                summary: Vidu Sora i2v_first_last
                value:
                  model: viduq3-turbo
                  mode: i2v_first_last
                  content:
                    - type: text
                      text: A smooth shot from start frame to end frame
                    - type: image_url
                      image_url: https://example.com/start.jpg
                    - type: image_url
                      image_url: https://example.com/end.jpg
                  duration: 5
                  resolution: 720p
              vidu_sora_reference:
                summary: Vidu Sora reference_images
                value:
                  model: viduq3-turbo
                  mode: reference_images
                  content:
                    - type: text
                      text: Maintain product style and character consistency
                    - type: image_url
                      image_url: https://example.com/ref-1.jpg
                    - type: image_url
                      image_url: https://example.com/ref-2.jpg
                    - type: image_url
                      image_url: https://example.com/ref-3.jpg
                  duration: 5
                  resolution: 720p
                  aspect_ratio: '16:9'
              hailuo_text2video:
                summary: Hailuo 2.3 First-frame image-to-video
                value:
                  model: hailuo-2.3
                  prompt: A cinematic travel shot over the coastline
                  image_urls:
                    - https://example.com/first-frame.jpg
                  duration: 6
                  resolution: 768p
                  aspect_ratio: '16:9'
              vidu_q4_openai_720p_reference:
                summary: Vidu Q4 720p Multi-Image / Audio Reference
                value:
                  model: vidu-q4
                  prompt: 保持参考图中的主体与色彩，镜头缓慢推进，主体自然运动。
                  resolution: 720p
                  mode: reference_material
                  seconds: '3'
                  images:
                    - https://example.com/reference-1.jpg
                    - https://example.com/reference-2.jpg
                  audio_urls:
                    - https://example.com/reference-1.mp3
                    - https://example.com/reference-2.mp3
              vidu_q4_openai_540p_reference:
                summary: Vidu Q4 540p Multi-Image / Audio Reference
                value:
                  model: vidu-q4-540p
                  prompt: 保持参考图中的主体与色彩，镜头缓慢推进，主体自然运动。
                  resolution: 540p
                  mode: reference_material
                  seconds: '3'
                  images:
                    - https://example.com/reference-1.jpg
                    - https://example.com/reference-2.jpg
                  audio_urls:
                    - https://example.com/reference-1.mp3
                    - https://example.com/reference-2.mp3
              magi_2_1080p_openai:
                summary: Magi-2 1080p Image/Video/Audio Reference
                value:
                  model: magi-2-1080p
                  prompt: >-
                    以 <<<image_1>>> 的彩色积木为主体，参考 <<<video_1>>> 的缓慢转动及
                    <<<audio_1>>> 的轻柔节奏。
                  seconds: '4'
                  size: 1440x1440
                  image_urls:
                    - https://example.com/blocks.png
                  video_urls:
                    - https://example.com/rotation.mp4
                  audio_urls:
                    - https://example.com/rhythm.wav
      responses:
        '200':
          description: Video task created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  task_id:
                    type: string
                    description: Legacy compatibility; to be deprecated
                  object:
                    type: string
                  model:
                    type: string
                  status:
                    type: string
                    description: >-
                      Should use VideoStatus constants: VideoStatusQueued,
                      VideoStatusInProgress, VideoStatusCompleted,
                      VideoStatusFailed
                    enum:
                      - queued
                      - in_progress
                      - completed
                      - failed
                      - video_url
                      - url
                      - completed_at
                  progress:
                    type: integer
                  created_at:
                    type: integer
                  completed_at:
                    type: integer
                  expires_at:
                    type: integer
                  seconds:
                    type: string
                  size:
                    type: string
                  remixed_from_video_id:
                    type: string
                  error:
                    type: object
                  metadata:
                    type: object
                    additionalProperties: true
                  output:
                    type: object
                  request_id:
                    type: string
                required:
                  - created_at
                  - id
                  - model
                  - object
                  - progress
                  - status
              example:
                id: video_abc123
                object: video
                model: sora-2
                status: queued
                progress: 0
                created_at: 1764347090922
                seconds: '8'
          headers: {}
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Error message
            type:
              type: string
              description: Error Type
            param:
              type: string
              description: Related Parameters
              nullable: true
            code:
              type: string
              description: Error Codes
              nullable: true
  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.