Vidu V2(首尾帧生成视频)
POST /vidu/ent/v2/start-end2video
上传首帧与尾帧两张图,生成中间过渡视频。Vidu 官方文档:Start end to Video 官网:https://www.vidu.studio/
Base URL
https://api.novapai.ai/router/v1
认证
- Header:
Authorization: Bearer <YOUR_API_KEY> - Header:
Content-Type: application/json
请求体参数(核心字段)
model(string, required): 例如viduq2-pro-fast/viduq2-pro/viduq2-turbo/viduq1/vidu2.0/viduq3-turboimages(string[], required): 两张图(首帧、尾帧)prompt(string): 提示词duration(integer): 时长resolution(string):360p/540p/720p/1080pseed(integer): 随机种子movement_amplitude(string):auto/small/medium/largebgm(boolean): 是否添加背景音乐(q3 系列通常不生效)audio(boolean): 音视频直出(q3 系列)
请求示例
curl -X POST "https://api.novapai.ai/router/v1/vidu/ent/v2/start-end2video" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "viduq2-pro-fast",
"images": [
"https://example.com/start.jpeg",
"https://example.com/end.jpeg"
],
"prompt": "Camera zooms in and bird flies to the right.",
"duration": 5,
"resolution": "1080p"
}'响应示例
{
"task_id": "916205061116293120",
"type": "headtailimg2video",
"state": "created",
"model": "viduq2-pro-fast",
"duration": 5,
"resolution": "1080p"
}说明
- 首尾帧建议分辨率接近,首帧/尾帧分辨率比例建议在
0.8~1.25区间。 - 任务创建后通过 Fetch V2 查询最终视频 URL。