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

# Wan 2.6 I2V Flash

> 最初のフレームを使うWan 2.6の高速な画像から動画への生成モデル。オプションで音声トラックを付けられます。

最初のフレームを使うWan 2.6の高速な画像から動画への生成モデル。オプションで音声トラックを付けられます。

## モデル情報

| フィールド | 説明 |
| - | - |
| `model` | wan2.6-i2v-flash |
| `endpoint` | POST /v1/video/generations |

## 機能と使用方法

* metadata.input.img\_urlが必須です。metadata.parameters.resolutionを720Pまたは1080Pに設定してください。durationは2～15秒の整数です。
* metadata.parameters.audioのデフォルトはtrueです。音声なしの出力にはfalseを設定します。I2V Flashでは、この設定がinput.audio\_urlより優先されます。
* modelはルートに、input/parametersはmetadataの下に配置します。Wan 2.7のメディアスキーマをWan 2.6のリクエストにコピーしないでください。

## リクエスト例

リクエストを行う前に`MIXROUTE_API_KEY`を設定してください。

example.comのURLを、公開アクセス可能なソース画像に置き換えてください。

```bash theme={null}
curl --request POST "https://api.mixroute.ai/v1/video/generations" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "wan2.6-i2v-flash",
  "metadata": {
    "input": {
      "prompt": "A red ceramic mug slowly rotates on a white tabletop. Static camera, soft studio lighting.",
      "img_url": "https://example.com/first-frame.png"
    },
    "parameters": {
      "resolution": "720P",
      "duration": 2,
      "audio": false,
      "prompt_extend": false
    }
  }
}'
```

## リクエストフィールド

| フィールド | 説明 |
| - | - |
| `model` | 必須。上記の正確なモデルIDを使用してください。 |
| `metadata.input` | プロンプトとモデル固有のメディア入力。 |
| `metadata.parameters` | モデル固有の生成設定。 |

送信すると非同期タスクが作成されます。返されたMixRouteタスクIDを保存し、終端状態になるまで[動画タスクの照会](/ja/api-reference/endpoint/query-video-task)をポーリングしてください。クライアントのタイムアウトだけを理由に再送信しないでください。

完全なリクエスト形式：[wan](/ja/api-reference/endpoint/wan)。


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