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

# 動画の生成

> OpenAI Sora 互換形式の動画生成インターフェース。テキストから動画の生成と、画像/動画参照による生成モードに対応しています。

- `POST /v1/videos`：動画タスクの作成
- `GET /v1/videos/{video_id}`：タスクステータスの照会
- `GET /v1/videos/{video_id}/content`：動画のバイナリコンテンツを取得

現在は外部に提供されていません：
- `GET /v1/videos`
- `POST /v1/videos/{video_id}/remix`

標準認証ヘッダー：
- `Content-Type: application/json`

1. `POST /v1/videos` でタスクを作成し、`id` を取得
2. `GET /v1/videos/{id}` を `completed` または `failed` になるまでポーリング
3. 完了後は、レスポンス内の `video_url` を優先して使用
4. 統一的にダウンロードする必要がある場合は、`GET /v1/videos/{id}/content` を呼び出す

主要パラメータ：
- `model: string`：必須、外部向けモデル名
- `prompt: string`：推奨、動画生成の説明
- `seconds: number|string`：任意、目標の長さ
- `duration: number|string`：任意、長さのエイリアス
- `size: string`：任意、出力サイズ
- `mode: string`：任意、一般的な値 `t2v` `i2v` `i2v_first_last` `reference_material`

よく使われる互換パラメータ：
- `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 では標準の動画パラメータを直接使用します。具体的なリクエスト形式については、4.6 節を参照してください。

### 4.1 Veo シリーズ

説明：`stable`、`official` などは異なるグループを示しており、外部向けの `model` サフィックスではありません。呼び出し時は `model` をベースモデル名のままにしてください。実際にどのグループが使われるかは、アカウントまたはトークンのグループによって決まります。

#### Veo 3.x メインモデル

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

推奨:
- テキストのみから動画を生成する場合は、`veo3*` / `veo3.1*` メインモデルを優先して使用
- 画像からの動画生成や参照ベースの動画生成シーンでは、`mode + image_url/reference_images` を明示的に渡すことを推奨

### 4.2 Sora シリーズ

基本モデル：
- `sora-2`
- `sora-2-pro`

推奨:
- `sora-2*` は汎用的な呼び出しに適しています
- `stable` / `official` などのグループを使用する場合は、`model` をベースモデル名のままにし、モデル名の末尾にサフィックスを追加しないでください。

リクエスト例:

```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 シリーズ

公開モデル：
- `happyhorse-1.0`

推奨:
- `happyhorse-1.0` は `mode` によって `t2v`、`i2v`、`r2v`、`video_edit` を区別します。
- Sora 互換形式では、参考画像には `content` 配列でメディア項目を渡すことを推奨します。
- テキスト項目には `type=text` を使用し、メディア項目には `type=image_url` を使用します。必要に応じて `role`、`name` と組み合わせて素材の用途を示せます。

リクエスト例:

```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 シリーズ

公開モデル：
- `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`

推奨:
- テキストから動画を生成する場合は、`*-t2v-*` または `pro / fast` を優先してください
- 画像から動画を生成する場合は、`*-i2v-*` を優先してください
- 複雑な参考素材を用いるシナリオでは、`content` を優先して使用してください

リクエスト例:

```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 ビデオシリーズ

公開モデル：
- `grok-imagine-1.0-video`
- `grok-imagine-video-1.5-preview`
- `grok-video-3`

よく使うパラメータ：
- `prompt`
- `ratio` / `aspect_ratio`
- `resolution` / `size`
- `seconds` / `duration`
- `image` / `image_url` / `input_reference`
- `reference_images`

例:

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

公開モデル：`kling-4.0`（720p）、`kling-4.0-1080p`。ネイティブ形式では `POST /text-to-video/kling-4.0`、`POST /image-to-video/kling-4.0`、`POST /omni-video/kling-4.0` を使用でき、`GET /tasks?task_ids=任务ID` でクエリできます。ネイティブリクエストでは `model` は不要です。画質は `settings.resolution` で選択し、デフォルトは1080pです。ネイティブの参照画像／動画タイプは `refer_image`、`feature_video` です。作成時は `data` オブジェクト、クエリ時は `data` 配列が返されます。`POST /api/v3/contents/generations/tasks` または `POST /v1/videos` で送信でき、それぞれ対応するパスの `GET /{task_id}` でクエリします。OpenAI／Sora では `prompt`、`seconds`、`size`、`input_reference` をそのまま使用します。Seedance では `content` とトップレベルの `duration/resolution/ratio/mode` をそのまま使用します。どちらも追加の `contents/settings/options` は不要です。`kling-4.0` は720p、`kling-4.0-1080p` は1080pに対応します。`settings.resolution` はモデル名と一致させてください。`settings` では `duration`（4～30秒）、`resolution`（720p／1080p）、`aspect_ratio`（21:9、16:9、9:16、1:1）を使用します。現在のインターフェースでは、参照画像は最大10枚、参照動画は最大5本までサポートしています。Kling 4.0ではデフォルトで映像と音声を同時に生成します。全機能参照モードは公開音声URLに対応しています。/v1/videos では audio_urls、Seedance では content の audio_url 項目を使用してください。音声素材に対応したルートを使用する必要があります。3つのネイティブ専用エンドポイントでは、現在、参照音声フィールドを受け付けていません。

```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 動画シリーズ

公開モデル：
- `minimax-h3`
- `hailuo-2.3`

推奨:
- `minimax-h3` はテキストから動画生成、画像参照、音声参照をサポートします。`content` でテキストと素材を混在させることを推奨します。`image_urls`、`audio_urls` などの互換フィールドも使用できます。
- `hailuo-2.3` では最初のフレーム画像が必要です。`content` で `role=first_frame` の `image_url` 項目を渡すか、`image_urls` を使用して最初のフレーム画像を渡すことを推奨します。
- `minimax-h3` でよく使うのは `duration=5~15`、`resolution=1440p` です。`hailuo-2.3` でよく使うのは `duration=6` または `10`、`resolution=768p` です。

`minimax-h3` の例：

```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` の例：

```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`
- 最小入力パラメータ：`model + prompt`

- `mode=i2v`
- 最小入力パラメータ：`model + prompt + image_url`

- `mode=i2v_first_last`
- 最小入力パラメータ：`model + prompt + image_url + end_image_url`

- `mode=reference_images`
- 最小入力パラメータ：`model + prompt + reference_images`

- `mode=reference_material`
- 最小入力パラメータ：`model + prompt + (image_urls/video_urls/audio_urls 至少一种)`

### Gemini Omni の呼び出し方法

- `gemini-omni` は new-api の外部公開動画モデル名で、`POST /v1/videos` を直接利用できます。
- `mode=t2v`：テキストから動画を生成します。最小入力パラメータは `model + prompt` です。
- `mode=r2v`：参照画像/参照素材による生成。画像は `image`、`image_url`、`images`、`image_urls`、`reference_images`、`input_reference`、または `content` に設定できます。
- `mode=edit`：動画編集。動画は `video`、`video_url`、`videos`、または `content` に設定でき、参照画像も同時に送信できます。
- 再生時間フィールドは `seconds` または `duration` を使用でき、4 / 6 / 8 / 10 秒のいずれかに自動でマッチします。

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",
  "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/ja/openapi.json POST /v1/videos
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:
  /v1/videos:
    post:
      tags:
        - 動画生成Sora対応形式
      summary: 動画の生成
      description: >-
        OpenAI Sora 互換形式の動画生成インターフェース。テキストから動画の生成と、画像/動画参照による生成モードに対応しています。


        - `POST /v1/videos`：動画タスクの作成

        - `GET /v1/videos/{video_id}`：タスクステータスの照会

        - `GET /v1/videos/{video_id}/content`：動画のバイナリコンテンツを取得


        現在は外部に提供されていません：

        - `GET /v1/videos`

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


        標準認証ヘッダー：

        - `Content-Type: application/json`


        1. `POST /v1/videos` でタスクを作成し、`id` を取得

        2. `GET /v1/videos/{id}` を `completed` または `failed` になるまでポーリング

        3. 完了後は、レスポンス内の `video_url` を優先して使用

        4. 統一的にダウンロードする必要がある場合は、`GET /v1/videos/{id}/content` を呼び出す


        主要パラメータ：

        - `model: string`：必須、外部向けモデル名

        - `prompt: string`：推奨、動画生成の説明

        - `seconds: number|string`：任意、目標の長さ

        - `duration: number|string`：任意、長さのエイリアス

        - `size: string`：任意、出力サイズ

        - `mode: string`：任意、一般的な値 `t2v` `i2v` `i2v_first_last`
        `reference_material`


        よく使われる互換パラメータ：

        - `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 では標準の動画パラメータを直接使用します。具体的なリクエスト形式については、4.6 節を参照してください。


        ### 4.1 Veo シリーズ


        説明：`stable`、`official` などは異なるグループを示しており、外部向けの `model`
        サフィックスではありません。呼び出し時は `model`
        をベースモデル名のままにしてください。実際にどのグループが使われるかは、アカウントまたはトークンのグループによって決まります。


        #### Veo 3.x メインモデル


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


        推奨:

        - テキストのみから動画を生成する場合は、`veo3*` / `veo3.1*` メインモデルを優先して使用

        - 画像からの動画生成や参照ベースの動画生成シーンでは、`mode + image_url/reference_images`
        を明示的に渡すことを推奨


        ### 4.2 Sora シリーズ


        基本モデル：

        - `sora-2`

        - `sora-2-pro`


        推奨:

        - `sora-2*` は汎用的な呼び出しに適しています

        - `stable` / `official` などのグループを使用する場合は、`model`
        をベースモデル名のままにし、モデル名の末尾にサフィックスを追加しないでください。


        リクエスト例:


        ```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 シリーズ


        公開モデル：

        - `happyhorse-1.0`


        推奨:

        - `happyhorse-1.0` は `mode` によって `t2v`、`i2v`、`r2v`、`video_edit` を区別します。

        - Sora 互換形式では、参考画像には `content` 配列でメディア項目を渡すことを推奨します。

        - テキスト項目には `type=text` を使用し、メディア項目には `type=image_url` を使用します。必要に応じて
        `role`、`name` と組み合わせて素材の用途を示せます。


        リクエスト例:


        ```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 シリーズ


        公開モデル：

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


        推奨:

        - テキストから動画を生成する場合は、`*-t2v-*` または `pro / fast` を優先してください

        - 画像から動画を生成する場合は、`*-i2v-*` を優先してください

        - 複雑な参考素材を用いるシナリオでは、`content` を優先して使用してください


        リクエスト例:


        ```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 ビデオシリーズ


        公開モデル：

        - `grok-imagine-1.0-video`

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

        - `grok-video-3`


        よく使うパラメータ：

        - `prompt`

        - `ratio` / `aspect_ratio`

        - `resolution` / `size`

        - `seconds` / `duration`

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

        - `reference_images`


        例:


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


        公開モデル：`kling-4.0`（720p）、`kling-4.0-1080p`。ネイティブ形式では `POST
        /text-to-video/kling-4.0`、`POST /image-to-video/kling-4.0`、`POST
        /omni-video/kling-4.0` を使用でき、`GET /tasks?task_ids=任务ID`
        でクエリできます。ネイティブリクエストでは `model` は不要です。画質は `settings.resolution`
        で選択し、デフォルトは1080pです。ネイティブの参照画像／動画タイプは `refer_image`、`feature_video`
        です。作成時は `data` オブジェクト、クエリ時は `data` 配列が返されます。`POST
        /api/v3/contents/generations/tasks` または `POST /v1/videos`
        で送信でき、それぞれ対応するパスの `GET /{task_id}` でクエリします。OpenAI／Sora では
        `prompt`、`seconds`、`size`、`input_reference` をそのまま使用します。Seedance では
        `content` とトップレベルの `duration/resolution/ratio/mode` をそのまま使用します。どちらも追加の
        `contents/settings/options` は不要です。`kling-4.0` は720p、`kling-4.0-1080p`
        は1080pに対応します。`settings.resolution` はモデル名と一致させてください。`settings` では
        `duration`（4～30秒）、`resolution`（720p／1080p）、`aspect_ratio`（21:9、16:9、9:16、1:1）を使用します。現在のインターフェースでは、参照画像は最大10枚、参照動画は最大5本までサポートしています。Kling
        4.0ではデフォルトで映像と音声を同時に生成します。全機能参照モードは公開音声URLに対応しています。/v1/videos では
        audio_urls、Seedance では content の audio_url
        項目を使用してください。音声素材に対応したルートを使用する必要があります。3つのネイティブ専用エンドポイントでは、現在、参照音声フィールドを受け付けていません。


        ```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 動画シリーズ


        公開モデル：

        - `minimax-h3`

        - `hailuo-2.3`


        推奨:

        - `minimax-h3` はテキストから動画生成、画像参照、音声参照をサポートします。`content`
        でテキストと素材を混在させることを推奨します。`image_urls`、`audio_urls` などの互換フィールドも使用できます。

        - `hailuo-2.3` では最初のフレーム画像が必要です。`content` で `role=first_frame` の
        `image_url` 項目を渡すか、`image_urls` を使用して最初のフレーム画像を渡すことを推奨します。

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


        `minimax-h3` の例：


        ```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` の例：


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

        - 最小入力パラメータ：`model + prompt`


        - `mode=i2v`

        - 最小入力パラメータ：`model + prompt + image_url`


        - `mode=i2v_first_last`

        - 最小入力パラメータ：`model + prompt + image_url + end_image_url`


        - `mode=reference_images`

        - 最小入力パラメータ：`model + prompt + reference_images`


        - `mode=reference_material`

        - 最小入力パラメータ：`model + prompt + (image_urls/video_urls/audio_urls 至少一种)`


        ### Gemini Omni の呼び出し方法


        - `gemini-omni` は new-api の外部公開動画モデル名で、`POST /v1/videos` を直接利用できます。

        - `mode=t2v`：テキストから動画を生成します。最小入力パラメータは `model + prompt` です。

        - `mode=r2v`：参照画像/参照素材による生成。画像は
        `image`、`image_url`、`images`、`image_urls`、`reference_images`、`input_reference`、または
        `content` に設定できます。

        - `mode=edit`：動画編集。動画は `video`、`video_url`、`videos`、または `content`
        に設定でき、参照画像も同時に送信できます。

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


        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",
          "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: 必須。外部公開モデル名。`gemini-omni` は `/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: >-
                    動画の説明。Kling 4.0 の標準 OpenAI/Sora リクエストでは prompt を直接使用します。標準
                    Seedance 形式を使用する場合は、content の text
                    項目でテキストを指定でき、contents/settings/options
                    は不要です。その他のモデルでは、それぞれの形式要件に従ってテキストを指定してください。
                image:
                  type: string
                  format: binary
                  description: 単一画像エントリ。一部の互換モードでは images にマッピングされます。
                duration:
                  type: integer
                  description: duration の統一された入力パラメータです。一部のモデルでは 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: 動的拡張フィールドコンテナです。モデル固有の大量のフィールドがここからデシリアライズされます。
                tool:
                  type: string
                mode:
                  type: string
                  description: >-
                    任意、動画生成モード。 `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
                images:
                  type: array
                  description: 複数画像の統一エントリ。Vidu、Seedance、Veo などで使用されます。
                  items:
                    type: string
                content:
                  type: array
                  items:
                    type: object
                    additionalProperties: true
                  description: >-
                    Seedance 形式でも Kling 4.0 を呼び出せます。テキストには text を使用し、画像/動画/音声には
                    image_url/video_url/audio_url オブジェクトを使用します。画像の role は
                    first_frame、last_frame、または reference_image、動画は
                    reference_video、音声は reference_audio
                    です。参照音声には、この機能をサポートする全能参照ルートを使用する必要があります。出力音声トラックがあるからといって、すべてのルートで音声を入力できると判断することはできません。生成シナリオは
                    mode で区別します。
                contents:
                  type: array
                  minItems: 1
                  description: >-
                    Kling 4.0 の旧エンベロープ互換フィールドです。標準の OpenAI/Sora、Seedance
                    リクエストでは指定不要です。
                  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: >-
                    旧エンベロープ互換設定。標準形式では seconds/size または
                    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: 旧エンベロープとの互換性のためのフィールドです。標準形式では指定不要です。
                size:
                  type: string
                  description: サイズの統一入力口で、resolution/aspect_ratio などにマッピングされます。
                seconds:
                  type: string
                  description: Sora の互換エントリ。実行時には duration にフォールバックします。
                input_reference:
                  type: string
                  description: Sora/Veo 互換の参照画像エントリ。multipartファイルまたは互換オブジェクトを指定できます。
                parameters:
                  type: object
                  additionalProperties: true
                audio_urls:
                  type: array
                  items:
                    type: string
                    format: uri
                  description: >-
                    標準 OpenAI/Sora、Seedance 用の参照音声 URL
                    のリスト。音声参照をサポートする全能参照ルートでのみ使用され、生成出力の音声トラック切り替えとは異なります。
                resolution:
                  type: string
                  description: 出力解像度。一般的な値は `540p`、`720p`、`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: 固定解像度動画
                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 オールインワン参考モード(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 モード
                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 先頭・末尾フレームモード
                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枚の参考画像モード
                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 動画フォーマット
                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 動画フォーマット
                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 · デフォルト素材リファレンス
                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_text:
                summary: Kling 4.0 720p テキストから動画生成（旧エンベロープ互換）
                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 参照生成（旧エンベロープ互換）
                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
                  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 テキストから動画生成（旧エンベロープ互換）
                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 参照生成（旧エンベロープ互換）
                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
                  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 ビデオモード
                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 マルチ素材動画
                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 最初のフレーム画像から動画を生成
                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 最初のフレーム画像から動画を生成
                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 複数画像 / 音声参照
                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 複数画像 / 音声リファレンス
                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 画像/動画/音声参照
                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: 動画タスクの作成に成功しました
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  task_id:
                    type: string
                    description: レガシーAPI互換（非推奨予定）
                  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: リクエストパラメータのエラー
          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: エラーメッセージ
            type:
              type: string
              description: エラータイプ
            param:
              type: string
              description: 関連パラメータ
              nullable: true
            code:
              type: string
              description: エラーコード
              nullable: true
  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.