Vidu Q4 リファレンスから動画 の使い方
-
参照素材を用意:images_list に1〜15個の画像URL、必要に応じて audios_list に最大3つのMP3(各3〜12秒)を指定します。
-
プロンプトを書く:入力を順番で参照します。例: In the scene of reference image 1, the person in reference image 2 turns and says: "What are you doing?"
-
出力を設定:aspect_ratio(16:9、9:16、1:1、4:3、3:4)、resolution(540p〜4k)、duration(3〜16秒)、audio を設定します。
-
送信して結果を取得:エンドポイントは非同期です。/api/v1/predictions/{request_id}/result をポーリングするか、webhook_url を指定します。
curl -X POST https://api.muapi.ai/api/v1/vidu-q4-reference-to-video \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"prompt": "In the scene of reference image 1, the person in reference image 2 turns to the person in reference image 3 and says: What are you doing?", "images_list": ["https://example.com/scene.png", "https://example.com/person-a.png", "https://example.com/person-b.png"], "resolution": "1080p", "duration": 5, "aspect_ratio": "16:9", "audio": true}'