如何使用 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}'