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

# 動画を作成（Seedance）

> このシリーズはOpenAIの動画生成形式をサポートしています（詳細はリンク [動画生成Sora互換形式](/api-reference/ja/video-generation-sora-compatible-format/create-video) を参照してください）。

動画生成タスクを作成し、タスクIDを使用してステータスと結果を照会するために使用します。

タスク作成の主要フィールド：
- `model`：必須、モデル名。
- `prompt`：任意。指定しない場合は、`content` に空でないテキスト項目を指定する必要があります。
- `content`：任意。Volcano Ark の content 配列で、テキスト、画像、動画、音声素材を混在して配置できます。
- `function_mode`：任意、通常、万能リファレンスなどのアドバンスドモードで使用されます。

互換性のある入力パラメータ：

以下のフィールドは主に既存クライアントおよび旧プロトコルとの互換性のために使用します。新規接続では、できるだけこのページの「リクエスト例」にある標準形式を使用してください。テキストと参考素材は `content` 配列を使用し、生成設定は最上位の `duration`、`ratio`、`resolution`、`fps` などのフィールドを使用します。

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

呼び出しの詳細：
- `mode=reference_material` または `function_mode=omni_reference` の場合、`content` を介してテキストとリファレンス素材を渡すことを推奨します。
- `content` テキスト項目の記述形式は `{ "type": "text", "text": "测试文字" }` です。
- `content` 画像、動画、音声素材項目はそれぞれ `image_url`、`video_url`、`audio_url` のオブジェクト形式を使用します。例: `{ "type": "image_url", "image_url": { "url": "https://example.com/ref.png" }, "role": "reference_image", "name": "1" }`。
- `role` で素材の用途を識別でき、`name` はプロンプト内で名前指定による参照に使用できます。
- `ratio`、`duration`、`resolution`、`fps` は、最終的な生成設定に影響します。

Seedance 2.5 画像・動画・音声を混在させた参照例（素材 URL はプレースホルダーです。呼び出し時には実際にアクセス可能なリンクに置き換えてください）：

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

Gemini Omni の呼び出し：
- `gemini-omni` は、本 Seedance タスク API からも呼び出せます。
- `mode=t2v` はテキストから動画の生成に使用し、`mode=r2v` は参照画像/参照素材を用いた生成に使用し、`mode=edit` は動画編集に使用します。
- テキストは `prompt` または `content` の `text` 項目に配置できます。画像は `image_url / image_urls / reference_images / input_reference / content` に、動画は `video_urls / content` に配置できます。
- 再生時間フィールドは `duration` または `seconds` を使用でき、4 / 6 / 8 / 10 秒のいずれかに自動でマッチします。

MiniMax / Hailuo の呼び出し：
- `minimax-h3` は本タスク API で呼び出せます。テキストから動画生成、画像参照、音声参照に対応しています。テキストは `prompt` または `content` のテキスト項目に、素材は `content`、`image_urls`、`audio_urls` などのフィールドに指定できます。
- `hailuo-2.3` は本タスク API で呼び出せます。最初のフレーム画像が必要です。`content` には `role=first_frame` の `image_url` 項目を渡すことを推奨します。
- `minimax-h3` でよく使うのは `duration=5~15`、`resolution=1440p` です。`hailuo-2.3` でよく使うのは `duration=6` または `10`、`resolution=768p` です。

Kling 4.0 の呼び出し：`kling-4.0`（720p）と `kling-4.0-1080p` は、Seedance の `content/duration/resolution/ratio/mode` 形式、`contents/settings/options`、および OpenAI の動画形式を同時にサポートします。2 つの統合動画エンドポイントでは、リクエストボディを共通化できます。解像度はモデル名と一致させる必要があります。Kling 4.0 では、Seedance 形式の content/duration/resolution/ratio/mode、または OpenAI 動画形式の prompt/seconds/size/input_reference をそのまま使用できます。どちらも追加の contents/settings/options は不要です。mode は t2v（テキストのみ）、i2v（先頭フレーム 1 枚）、i2v_first_last（先頭と末尾の 2 フレーム）、reference_images（通常の参照画像）、reference_material（汎用素材参照。音声にはこの機能をサポートするルートが必要）から選択できます。mode を省略し、明示的なツールも指定しない場合、参照素材があれば reference_material、なければ t2v がデフォルトになります。参照モードでは通常の参照画像として扱い、明示された先頭・末尾フレームを参照画像に暗黙で置き換えることはありません。先頭・末尾フレームを使用する場合は i2v または i2v_first_last を明示的に選択し、アスペクト比のパラメーターは省略してください。Kling 4.0 はデフォルトで音声と映像を同時に生成します。汎用参照モードでは、パブリックインターネット上の音声 URL をサポートします。/v1/videos では audio_urls を、Seedance では content の audio_url 項目を使用してください。音声素材をサポートするルートを使用する必要があります。3 つのネイティブ専用エンドポイントは、現在、参照音声フィールドを受け付けていません。

Vidu Q4：`vidu-q4` は 720p 固定、`vidu-q4-540p` は 540p 固定で、3～16 秒の動画生成をサポートします。画像は最低 1 枚必要で、参照画像は最大 15 枚までサポートします。参照生成には MP3 音声を最大 3 本添付でき、各音声は 3～12 秒、最大 50MB です。テキストのみからの生成、開始・終了フレームの指定、参照動画には対応していません。複数の画像は共通の参照用であり、開始・終了位置を示すものではありません。タスクは `POST /v1/videos`、`POST /api/v3/contents/generations/tasks`、または Vidu 形式の `POST /ent/v2/img2video`、`POST /ent/v2/reference2video` で作成できます。統一エンドポイントとしては `mode=reference_images` の使用を推奨します。音声付きの場合は `mode=reference_material` を使用してください。参照音声には `audio_urls` を使用でき、Seedance 形式では標準の `content` の `audio_url` 項目も使用できます。`audio` のブール値フィールドは音声生成のオン／オフを示し、参照音声 URL リストとは別に使用します。解像度はモデル名と一致している必要があります。

### Magi-2 1080p

`magi-2-1080p` は OpenAI `/v1/videos` 形式と Ark `/api/v3/contents/generations/tasks` 形式に対応しており、それぞれ対応するパスの `GET /{task_id}` からクエリできます。解像度は 1080p 固定で、生成時間は 4～30 秒です。16:9、9:16、1:1、4:3、3:4、21:9 に対応しています。1:1 の出力解像度は 1440×1440 です。参照モードでは、画像は最大 10 枚、動画は 5 本、音声は 5 件まで、合計 20 個の素材を使用できます。各動画・音声の長さは 2～30 秒で、動画の合計は 30 秒以内、音声の合計も 30 秒以内です。ファイルサイズの上限は、画像が 30 MB、動画が 200 MB、音声が 15 MB です。最初と最後のフレームを指定するモードでは、他の画像、動画、音声を参照として追加できません。プロンプトでは、素材の種類ごとの入力順に `<<<image_1>>>`、`<<<video_1>>>`、`<<<audio_1>>>` を使って参照できます。現在、sand.ai の公式形式に対応する独立したエントリーポイントは提供していません。

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

照会結果の注目フィールド：
- `items[].status`
- `items[].content.video_url` または `items[].video_url`
- `items[].error`
- `items[].progress`

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

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



## OpenAPI

````yaml api-reference/ja/openapi.json POST /api/v3/contents/generations/tasks
openapi: 3.0.0
info:
  title: NewAPIs API 参考ドキュメント
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.newapi.si
security:
  - BearerAuth: []
tags:
  - name: OpenAI形式(Chat)
  - name: OpenAI形式（Responses）
  - name: 画像生成Gemini形式
  - name: 画像生成OpenAI DALL-E形式
  - name: モデル一覧の取得
  - name: 動画生成HappyHorseとWan
  - name: 動画生成Kling形式
  - name: 動画生成OmniとVeo形式
  - name: Video generation Seedance
  - name: 動画生成Sora対応形式
  - name: Video generation Vidu
  - name: 音楽生成タスクの形式
paths:
  /api/v3/contents/generations/tasks:
    post:
      tags:
        - Video generation Seedance
      summary: 動画を作成（Seedance）
      description: >-
        このシリーズはOpenAIの動画生成形式をサポートしています（詳細はリンク
        [動画生成Sora互換形式](/api-reference/ja/video-generation-sora-compatible-format/create-video)
        を参照してください）。


        動画生成タスクを作成し、タスクIDを使用してステータスと結果を照会するために使用します。


        タスク作成の主要フィールド：

        - `model`：必須、モデル名。

        - `prompt`：任意。指定しない場合は、`content` に空でないテキスト項目を指定する必要があります。

        - `content`：任意。Volcano Ark の content 配列で、テキスト、画像、動画、音声素材を混在して配置できます。

        - `function_mode`：任意、通常、万能リファレンスなどのアドバンスドモードで使用されます。


        互換性のある入力パラメータ：


        以下のフィールドは主に既存クライアントおよび旧プロトコルとの互換性のために使用します。新規接続では、できるだけこのページの「リクエスト例」にある標準形式を使用してください。テキストと参考素材は
        `content` 配列を使用し、生成設定は最上位の `duration`、`ratio`、`resolution`、`fps`
        などのフィールドを使用します。


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

        - `image_url / image_urls / input_reference`

        - `end_image_url / last_image_url`

        - `video_urls / audio_urls`

        - `seconds / duration`

        - `aspect_ratio / ratio / size`

        - `quality / resolution`

        - `fps`

        - `generate_audio / watermark`


        呼び出しの詳細：

        - `mode=reference_material` または `function_mode=omni_reference`
        の場合、`content` を介してテキストとリファレンス素材を渡すことを推奨します。

        - `content` テキスト項目の記述形式は `{ "type": "text", "text": "测试文字" }` です。

        - `content` 画像、動画、音声素材項目はそれぞれ `image_url`、`video_url`、`audio_url`
        のオブジェクト形式を使用します。例: `{ "type": "image_url", "image_url": { "url":
        "https://example.com/ref.png" }, "role": "reference_image", "name": "1"
        }`。

        - `role` で素材の用途を識別でき、`name` はプロンプト内で名前指定による参照に使用できます。

        - `ratio`、`duration`、`resolution`、`fps` は、最終的な生成設定に影響します。


        Seedance 2.5 画像・動画・音声を混在させた参照例（素材 URL
        はプレースホルダーです。呼び出し時には実際にアクセス可能なリンクに置き換えてください）：


        ```json

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

        ```


        Gemini Omni の呼び出し：

        - `gemini-omni` は、本 Seedance タスク API からも呼び出せます。

        - `mode=t2v` はテキストから動画の生成に使用し、`mode=r2v`
        は参照画像/参照素材を用いた生成に使用し、`mode=edit` は動画編集に使用します。

        - テキストは `prompt` または `content` の `text` 項目に配置できます。画像は `image_url /
        image_urls / reference_images / input_reference / content` に、動画は
        `video_urls / content` に配置できます。

        - 再生時間フィールドは `duration` または `seconds` を使用でき、4 / 6 / 8 / 10
        秒のいずれかに自動でマッチします。


        MiniMax / Hailuo の呼び出し：

        - `minimax-h3` は本タスク API で呼び出せます。テキストから動画生成、画像参照、音声参照に対応しています。テキストは
        `prompt` または `content` のテキスト項目に、素材は `content`、`image_urls`、`audio_urls`
        などのフィールドに指定できます。

        - `hailuo-2.3` は本タスク API で呼び出せます。最初のフレーム画像が必要です。`content` には
        `role=first_frame` の `image_url` 項目を渡すことを推奨します。

        - `minimax-h3` でよく使うのは `duration=5~15`、`resolution=1440p`
        です。`hailuo-2.3` でよく使うのは `duration=6` または `10`、`resolution=768p` です。


        Kling 4.0 の呼び出し：`kling-4.0`（720p）と `kling-4.0-1080p` は、Seedance の
        `content/duration/resolution/ratio/mode`
        形式、`contents/settings/options`、および OpenAI の動画形式を同時にサポートします。2
        つの統合動画エンドポイントでは、リクエストボディを共通化できます。解像度はモデル名と一致させる必要があります。Kling 4.0
        では、Seedance 形式の content/duration/resolution/ratio/mode、または OpenAI 動画形式の
        prompt/seconds/size/input_reference をそのまま使用できます。どちらも追加の
        contents/settings/options は不要です。mode は t2v（テキストのみ）、i2v（先頭フレーム 1
        枚）、i2v_first_last（先頭と末尾の 2
        フレーム）、reference_images（通常の参照画像）、reference_material（汎用素材参照。音声にはこの機能をサポートするルートが必要）から選択できます。mode
        を省略し、明示的なツールも指定しない場合、参照素材があれば reference_material、なければ t2v
        がデフォルトになります。参照モードでは通常の参照画像として扱い、明示された先頭・末尾フレームを参照画像に暗黙で置き換えることはありません。先頭・末尾フレームを使用する場合は
        i2v または i2v_first_last を明示的に選択し、アスペクト比のパラメーターは省略してください。Kling 4.0
        はデフォルトで音声と映像を同時に生成します。汎用参照モードでは、パブリックインターネット上の音声 URL をサポートします。/v1/videos
        では audio_urls を、Seedance では content の audio_url
        項目を使用してください。音声素材をサポートするルートを使用する必要があります。3
        つのネイティブ専用エンドポイントは、現在、参照音声フィールドを受け付けていません。


        Vidu Q4：`vidu-q4` は 720p 固定、`vidu-q4-540p` は 540p 固定で、3～16
        秒の動画生成をサポートします。画像は最低 1 枚必要で、参照画像は最大 15 枚までサポートします。参照生成には MP3 音声を最大 3
        本添付でき、各音声は 3～12 秒、最大 50MB
        です。テキストのみからの生成、開始・終了フレームの指定、参照動画には対応していません。複数の画像は共通の参照用であり、開始・終了位置を示すものではありません。タスクは
        `POST /v1/videos`、`POST /api/v3/contents/generations/tasks`、または Vidu 形式の
        `POST /ent/v2/img2video`、`POST /ent/v2/reference2video`
        で作成できます。統一エンドポイントとしては `mode=reference_images` の使用を推奨します。音声付きの場合は
        `mode=reference_material` を使用してください。参照音声には `audio_urls` を使用でき、Seedance
        形式では標準の `content` の `audio_url` 項目も使用できます。`audio`
        のブール値フィールドは音声生成のオン／オフを示し、参照音声 URL リストとは別に使用します。解像度はモデル名と一致している必要があります。


        ### Magi-2 1080p


        `magi-2-1080p` は OpenAI `/v1/videos` 形式と Ark
        `/api/v3/contents/generations/tasks` 形式に対応しており、それぞれ対応するパスの `GET
        /{task_id}` からクエリできます。解像度は 1080p 固定で、生成時間は 4～30
        秒です。16:9、9:16、1:1、4:3、3:4、21:9 に対応しています。1:1 の出力解像度は 1440×1440
        です。参照モードでは、画像は最大 10 枚、動画は 5 本、音声は 5 件まで、合計 20 個の素材を使用できます。各動画・音声の長さは
        2～30 秒で、動画の合計は 30 秒以内、音声の合計も 30 秒以内です。ファイルサイズの上限は、画像が 30 MB、動画が 200
        MB、音声が 15 MB
        です。最初と最後のフレームを指定するモードでは、他の画像、動画、音声を参照として追加できません。プロンプトでは、素材の種類ごとの入力順に
        `<<<image_1>>>`、`<<<video_1>>>`、`<<<audio_1>>>` を使って参照できます。現在、sand.ai
        の公式形式に対応する独立したエントリーポイントは提供していません。


        ```json

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

        ```


        照会結果の注目フィールド：

        - `items[].status`

        - `items[].content.video_url` または `items[].video_url`

        - `items[].error`

        - `items[].progress`


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


        ```json

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

        ```
      operationId: create__seedance__task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
              properties:
                model:
                  type: string
                  example: doubao-seedance-2-0-260128
                  enum:
                    - kling-4.0
                    - kling-4.0-1080p
                    - vidu-q4
                    - vidu-q4-540p
                    - magi-2-1080p
                    - sd-2-5
                    - doubao-seedance-1-0-lite-i2v-250428
                    - doubao-seedance-1-0-lite-t2v-250428
                    - doubao-seedance-1-0-pro-250528
                    - doubao-seedance-1-0-pro-fast-251015
                    - doubao-seedance-1-5-pro-251215
                    - doubao-seedance-2-0-260128
                    - doubao-seedance-2-0-fast-260128
                    - sd-2-5-4k
                    - sd-2-5-flash
                    - sd-2-5-flash-480p
                    - minimax-h3
                    - hailuo-2.3
                    - wan-3.0-prime
                    - wan-3.0-prime-1080p
                    - happyhorse-1.1
                    - happyhorse-1.1-1080p
                    - gemini-omni
                  description: >-
                    必須。モデル名。Seedance、Kling 4.0、Vidu
                    Q4、`gemini-omni`、`minimax-h3`、または `hailuo-2.3`
                    の外部提供モデルを指定できます。
                prompt:
                  type: string
                  description: >-
                    任意。標準の Seedance リクエストでは、content 内の空でない text
                    項目にテキストを直接指定するか、トップレベルの prompt を使用できます。Kling 4.0
                    にも同様に適用され、contents/settings/options は不要です。
                  example: 参考素材生成一段剧情短视频
                content:
                  type: array
                  description: >-
                    任意指定。火山方舟の content 配列で、テキスト項目と素材項目を順番に混在させます。テキスト項目には `{
                    "type": "text", "text": "..." }` を使用します。画像、動画、音声項目にはそれぞれ
                    `image_url`、`video_url`、`audio_url` オブジェクトを使用し、その中に `url`
                    を設定します。必要に応じて `role`（例:
                    `reference_image`、`reference_video`、`reference_audio`）と
                    `name` を組み合わせて、テキストから参照できます。
                  items:
                    type: object
                    required:
                      - type
                    properties:
                      type:
                        type: string
                        enum:
                          - text
                          - image_url
                          - video_url
                          - audio_url
                        description: コンテンツ項目タイプ。
                      text:
                        type: string
                        description: テキスト内容。type=text の場合にのみ使用します。
                      image_url:
                        oneOf:
                          - type: string
                          - type: object
                            properties:
                              url:
                                type: string
                        description: 画像の URL。推奨されるオブジェクト形式：`{"url":"https://..."}`。
                      video_url:
                        oneOf:
                          - type: string
                          - type: object
                            properties:
                              url:
                                type: string
                        description: 動画 URL。推奨のオブジェクト記法：`{"url":"https://..."}`。
                      audio_url:
                        oneOf:
                          - type: string
                          - type: object
                            properties:
                              url:
                                type: string
                        description: '音声 URL。推奨されるオブジェクト形式: `{"url":"https://..."}`。'
                      role:
                        type: string
                        description: >-
                          素材の用途を示す識別子。一般的な値は
                          reference_image、reference_video、reference_audio などです。
                      name:
                        type: string
                        description: 素材名。テキストプロンプトで参照したり、複数の素材を区別したりするために使用できます。
                contents:
                  type: array
                  minItems: 1
                  description: >-
                    Kling 4.0 の旧エンベロープ互換配列。標準の Seedance リクエストでは指定不要です。直接 content
                    を使用してください。
                  items:
                    type: object
                    required:
                      - type
                    properties:
                      type:
                        type: string
                        enum:
                          - prompt
                          - reference_image
                          - reference_video
                          - first_frame
                          - last_frame
                      text:
                        type: string
                        description: type=prompt の場合のテキスト説明。
                      url:
                        type: string
                        format: uri
                        description: 参照素材または最初・最後のフレームのアクセス可能な URL。
                settings:
                  type: object
                  description: >-
                    旧エンベロープ互換設定。標準の Seedance では最上位の duration/resolution/ratio
                    を直接使用するため、指定は不要です。
                  properties:
                    duration:
                      type: integer
                      minimum: 4
                      maximum: 30
                      example: 4
                    resolution:
                      type: string
                      enum:
                        - 720p
                        - 1080p
                    aspect_ratio:
                      type: string
                      enum:
                        - '21:9'
                        - '16:9'
                        - '9:16'
                        - '1:1'
                options:
                  type: object
                  maxProperties: 0
                  description: 旧エンベロープとの互換性のためのフィールドです。標準の Seedance リクエストでは指定不要です。
                function_mode:
                  type: string
                  description: 任意。高度な機能モードです。全般的なリファレンス用の `omni_reference` などがあります。
                mode:
                  type: string
                  description: >-
                    任意。`t2v`、`i2v`、`i2v_first_last`、`reference_images`、`reference_material`
                    などの互換モード用フィールドです。`gemini-omni` は `t2v`、`r2v`、`edit`
                    に対応しています。Kling 4.0 では、Seedance 形式の
                    content/duration/resolution/ratio/mode、または動画用の OpenAI 形式の
                    prompt/seconds/size/input_reference を直接使用できます。いずれも
                    contents/settings/options を追加する必要はありません。mode には
                    t2v（テキストのみ）、i2v（先頭フレーム1枚）、i2v_first_last（先頭と末尾の2フレーム）、reference_images（通常の参照画像）、reference_material（汎用素材参照）を指定できます。音声を使用する場合は、この機能に対応したルートを使用してください。mode
                    を省略し、明示的なツールも指定しない場合、参照素材があれば reference_material、なければ t2v
                    がデフォルトになります。参照モードでは通常の参照画像として扱い、明示された先頭・末尾フレームを参照画像に暗黙に変更することはありません。先頭・末尾フレームを使用する場合は
                    i2v または i2v_first_last を明示的に選択し、アスペクト比パラメーターは省略してください。Kling
                    4.0 では、デフォルトで音声と映像が同時に生成されます。汎用素材参照モードでは、パブリックにアクセス可能な音声 URL
                    に対応しています。/v1/videos では audio_urls を、Seedance では content 内の
                    audio_url
                    項目を使用してください。音声素材に対応したルートを使用する必要があります。3つのネイティブ専用エンドポイントは、現在、参照音声フィールドを受け付けていません。
                  example: reference_material
                  x-kling-modes:
                    - t2v
                    - i2v
                    - i2v_first_last
                    - reference_images
                    - reference_material
                image_url:
                  type: string
                  description: 任意。単一の参照画像URL。
                image_urls:
                  type: array
                  items:
                    type: string
                  description: 任意。複数の参照画像URLのリスト。
                input_reference:
                  type: string
                  description: 任意。互換性のためのリファレンス入力フィールドです。
                end_image_url:
                  type: string
                  description: 任意。最終フレームの参照画像の URL。
                last_image_url:
                  type: string
                  description: オプション。最終フレームの参照画像URLのエイリアス。
                video_urls:
                  type: array
                  items:
                    type: string
                  description: 任意。参照用動画URLのリスト。
                audio_urls:
                  type: array
                  items:
                    type: string
                    format: uri
                  description: 任意。参照オーディオURLのリスト。
                seconds:
                  oneOf:
                    - type: number
                    - type: string
                  description: オプション。動画の長さ（秒）。`duration` と互換性があります。
                duration:
                  oneOf:
                    - type: number
                    - type: string
                  description: オプション。動画の長さ（秒）。`seconds` と互換性があります。
                aspect_ratio:
                  type: string
                  description: 任意。アスペクト比（例：`16:9`）。
                ratio:
                  type: string
                  description: 任意。アスペクト比のエイリアス（例：`16:9`）。
                size:
                  type: string
                  description: 任意。解像度またはサイズ互換フィールド。
                quality:
                  type: string
                  description: 任意。生成品質の設定。
                resolution:
                  type: string
                  description: 任意。出力解像度。
                fps:
                  type: number
                  description: 任意。フレームレート。
                generate_audio:
                  type: boolean
                  description: 任意。オーディオを生成するかどうか。
                watermark:
                  type: boolean
                  description: 任意。ウォーターマークを追加するかどうか。
            examples:
              kling_4_seedance_reference_material:
                summary: Kling 4.0 720p Seedance · デフォルト素材リファレンス
                value:
                  model: kling-4.0
                  mode: reference_material
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                  ratio: '16:9'
              kling_4_seedance_t2v:
                summary: Kling 4.0 720p Seedance · プレーンテキスト
                value:
                  model: kling-4.0
                  mode: t2v
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                  ratio: '16:9'
              kling_4_seedance_i2v:
                summary: Kling 4.0 720p Seedance · 開始フレーム画像生成
                value:
                  model: kling-4.0
                  mode: i2v
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
              kling_4_seedance_i2v_first_last:
                summary: Kling 4.0 720p Seedance · 開始・終了フレーム
                value:
                  model: kling-4.0
                  mode: i2v_first_last
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
                    - type: image_url
                      image_url:
                        url: https://example.com/last-frame.jpg
                      role: last_frame
              kling_4_seedance_reference_images:
                summary: Kling 4.0 720p Seedance · 参照画像
                value:
                  model: kling-4.0
                  mode: reference_images
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                  ratio: '16:9'
              kling_4_seedance_reference_material_1080p:
                summary: Kling 4.0 1080p Seedance · デフォルト素材リファレンス
                value:
                  model: kling-4.0-1080p
                  mode: reference_material
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                  ratio: '16:9'
              kling_4_seedance_t2v_1080p:
                summary: Kling 4.0 1080p Seedance · プレーンテキスト
                value:
                  model: kling-4.0-1080p
                  mode: t2v
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                  ratio: '16:9'
              kling_4_seedance_i2v_1080p:
                summary: Kling 4.0 1080p Seedance · 開始フレーム画像生成
                value:
                  model: kling-4.0-1080p
                  mode: i2v
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
              kling_4_seedance_i2v_first_last_1080p:
                summary: Kling 4.0 1080p Seedance · 開始・終了フレーム
                value:
                  model: kling-4.0-1080p
                  mode: i2v_first_last
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
                    - type: image_url
                      image_url:
                        url: https://example.com/last-frame.jpg
                      role: last_frame
              kling_4_seedance_reference_images_1080p:
                summary: Kling 4.0 1080p Seedance · 参照画像
                value:
                  model: kling-4.0-1080p
                  mode: reference_images
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                  ratio: '16:9'
              kling_4_ark_contents:
                summary: Kling 4.0 720p 参照生成（旧エンベロープ互換）
                value:
                  model: kling-4.0
                  mode: reference_material
                  contents:
                    - type: prompt
                      text: A cinematic product shot with natural motion
                    - type: reference_image
                      url: https://example.com/product.jpg
                    - type: reference_video
                      url: https://example.com/motion.mp4
                  settings:
                    duration: 4
                    resolution: 720p
                    aspect_ratio: '16:9'
                  options: {}
              kling_4_reference_audio:
                summary: Kling 4.0 720p 汎用参照オーディオ URL
                value:
                  model: kling-4.0
                  mode: reference_material
                  duration: 4
                  resolution: 720p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference.mp3
                      role: reference_audio
                  ratio: '16:9'
              kling_4_ark_contents_1080p:
                summary: Kling 4.0 1080p 参照生成（旧エンベロープ互換）
                value:
                  model: kling-4.0-1080p
                  mode: reference_material
                  contents:
                    - type: prompt
                      text: A cinematic product shot with natural motion
                    - type: reference_image
                      url: https://example.com/product.jpg
                    - type: reference_video
                      url: https://example.com/motion.mp4
                  settings:
                    duration: 4
                    resolution: 1080p
                    aspect_ratio: '16:9'
                  options: {}
              kling_4_reference_audio_1080p:
                summary: Kling 4.0 1080p 汎用参照音声 URL
                value:
                  model: kling-4.0-1080p
                  mode: reference_material
                  duration: 4
                  resolution: 1080p
                  content:
                    - type: text
                      text: A cinematic product shot with natural motion
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference.mp3
                      role: reference_audio
                  ratio: '16:9'
              vidu_q4_seedance_720p_reference:
                summary: Vidu Q4 720p 複数画像 / 音声参照
                value:
                  model: vidu-q4
                  duration: 3
                  resolution: 720p
                  mode: reference_material
                  content:
                    - type: text
                      text: 保持参考图中的主体与色彩，镜头缓慢推进，主体自然运动。
                    - type: image_url
                      image_url:
                        url: https://example.com/reference-1.jpg
                      role: reference_image
                    - type: image_url
                      image_url:
                        url: https://example.com/reference-2.jpg
                      role: reference_image
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference-1.mp3
                      role: reference_audio
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference-2.mp3
                      role: reference_audio
              vidu_q4_seedance_540p_reference:
                summary: Vidu Q4 540p 複数画像 / 音声リファレンス
                value:
                  model: vidu-q4-540p
                  duration: 3
                  resolution: 540p
                  mode: reference_material
                  content:
                    - type: text
                      text: 保持参考图中的主体与色彩，镜头缓慢推进，主体自然运动。
                    - type: image_url
                      image_url:
                        url: https://example.com/reference-1.jpg
                      role: reference_image
                    - type: image_url
                      image_url:
                        url: https://example.com/reference-2.jpg
                      role: reference_image
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference-1.mp3
                      role: reference_audio
                    - type: audio_url
                      audio_url:
                        url: https://example.com/reference-2.mp3
                      role: reference_audio
              magi_2_1080p_seedance:
                summary: Magi-2 1080p 画像/動画/音声参照
                value:
                  model: magi-2-1080p
                  duration: 4
                  resolution: 1080p
                  ratio: '1:1'
                  content:
                    - type: text
                      text: >-
                        以 <<<image_1>>> 的彩色积木为主体，参考 <<<video_1>>> 的缓慢转动及
                        <<<audio_1>>> 的轻柔节奏。
                    - type: image_url
                      image_url:
                        url: https://example.com/blocks.png
                      role: reference_image
                    - type: video_url
                      video_url:
                        url: https://example.com/rotation.mp4
                      role: reference_video
                    - type: audio_url
                      audio_url:
                        url: https://example.com/rhythm.wav
                      role: reference_audio
              seedance_sd25_mixed_content:
                summary: Seedance 2.5 画像/動画/音声の混合リファレンス
                value:
                  model: sd-2-5
                  ratio: '9:16'
                  fps: 24
                  duration: 10
                  content:
                    - type: text
                      text: 使用 @图片1 @图片2 @图片3 @音频1 参考@视频1 生成视频
                    - type: image_url
                      image_url:
                        url: https://demo1.png
                      role: reference_image
                      name: 图片1
                    - type: image_url
                      image_url:
                        url: https://demo2.png
                      role: reference_image
                      name: 图片2
                    - type: image_url
                      image_url:
                        url: https://demo3.png
                      role: reference_image
                      name: 图片3
                    - type: video_url
                      video_url:
                        url: https://video.mp4
                      role: reference_video
                      name: 视频1
                    - type: audio_url
                      audio_url:
                        url: https://audio.mp3
                      role: reference_audio
                      name: 音频1
              seedance_tasks_reference_material:
                summary: Seedance コンテンツのタスク
                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 コンテンツタスク
                value:
                  model: minimax-h3
                  prompt: A cinematic product video with smooth camera motion
                  content:
                    - type: text
                      text: >-
                        Use the product image as reference and match the rhythm
                        of the audio.
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                      role: reference_image
                      name: product
                    - type: audio_url
                      audio_url:
                        url: https://example.com/music.mp3
                      role: reference_audio
                      name: music
                  duration: 8
                  resolution: 1440p
                  ratio: '16:9'
                  generate_audio: true
              hailuo_2_3_tasks_first_frame:
                summary: Hailuo 2.3 最初のフレーム画像から動画を生成
                value:
                  model: hailuo-2.3
                  prompt: >-
                    The camera slowly pushes in, natural motion and cinematic
                    lighting.
                  content:
                    - type: text
                      text: >-
                        The camera slowly pushes in, natural motion and
                        cinematic lighting.
                    - type: image_url
                      image_url:
                        url: https://example.com/first-frame.jpg
                      role: first_frame
                      name: first
                  duration: 10
                  resolution: 768p
                  ratio: '16:9'
              canvas_ark_tier:
                summary: 固定解像度の動画タスク
                value:
                  model: wan-3.0-prime
                  content:
                    - type: text
                      text: Gentle waves rolling onto a beach.
                  duration: 5
                  ratio: '16:9'
              gemini_omni_seedance_t2v:
                summary: Gemini Omni t2v
                value:
                  model: gemini-omni
                  mode: t2v
                  prompt: A cinematic product video with smooth camera motion
                  duration: 8
                  size: 1280x720
              gemini_omni_seedance_r2v:
                summary: Gemini Omni r2v
                value:
                  model: gemini-omni
                  mode: r2v
                  content:
                    - type: text
                      text: Keep the product consistent and create a short ad video
                    - type: image_url
                      image_url:
                        url: https://example.com/product.jpg
                  duration: 8
                  size: 1280x720
              gemini_omni_seedance_edit:
                summary: Gemini Omni edit
                value:
                  model: gemini-omni
                  mode: edit
                  content:
                    - type: text
                      text: Change the outfit color while keeping the motion natural
                    - type: video_url
                      video_url:
                        url: https://example.com/input.mp4
                    - type: image_url
                      image_url:
                        url: https://example.com/style.jpg
                  duration: 8
                  size: 1280x720
      responses:
        '200':
          description: タスクの作成に成功しました
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                properties:
                  id:
                    type: string
                    example: task_xxx
                    description: タスク ID。
                  status:
                    type: string
                    description: タスクのステータス。
                    enum:
                      - queued
                      - running
                      - succeeded
                      - failed
                  created_at:
                    type: string
                    description: 作成日時（Unix秒）。
                  items:
                    type: string
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: タスク ID。
                        status:
                          type: string
                          description: >-
                            タスクのステータス。一般的には
                            `queued`、`running`、`succeeded`、`failed` があります。
                        content:
                          type: object
                          properties:
                            video_url:
                              type: string
                              description: 動画結果のURL。
                        video_url:
                          type: string
                          description: 動画結果のURL。
                        error:
                          type: string
                          description: 失敗時のエラーメッセージ。
                        progress:
                          type: string
                          description: タスクの進捗。
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Bearer Token を使用して認証します。
        形式: `Authorization: Bearer sk-xxxxxx`

````

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