视频延长
更新时间: 2026/08/27 10:13:38
该接口可以延长已有视频片段。
请求信息
请求 URL
POST /hub/vidu/v2/extend
请求头
| Header | 必填 | 示例值 |
|---|---|---|
Authorization |
是 | Bearer sk-xxxxx |
Content-Type |
是 | application/json; charset=utf-8 |
请求体
请求示例
httpPOST /hub/vidu/v2/extend
Authorization: Bearer sk-xxxxx
Content-Type: application/json; charset=utf-8
json{
"model": "viduq2-turbo",
"video_url": "https://example.com/source.mp4",
"images": [
"https://example.com/end-frame.png"
],
"prompt": "镜头继续向前推进,人物慢慢回头看向远方。",
"duration": 7,
"resolution": "720p",
"watermark": false
}
响应信息
响应体
| 字段 | 类型 | 说明 |
|---|---|---|
task_id |
string | 任务 ID |
state |
string | 任务状态。常见值:created、queueing、processing、success、failed |
model |
string | 模型名称 |
video_creation_id |
string | 视频生成物 ID |
video_url |
string | 原视频地址 |
images |
string[] | 输入图片 |
prompt |
string | 提示词 |
duration |
int | 延长时长 |
resolution |
string | 分辨率 |
watermark |
bool | 是否水印 |
wm_url |
string | 水印内容 |
wm_position |
string | 水印位置 |
meta_data |
string | 元数据标识 |
payload |
string | 透传字段 |
credits |
string | 消耗量 |
created_at |
string | 创建时间 |
响应示例
json{
"task_id": "tsk_1234567894",
"state": "created",
"model": "viduq2-turbo",
"video_url": "https://example.com/source.mp4",
"images": [
"https://example.com/end-frame.png"
],
"prompt": "镜头继续向前推进,人物慢慢回头看向远方。",
"duration": 7,
"resolution": "720p",
"watermark": false,
"wm_url": "",
"wm_position": "bottom_left",
"meta_data": "",
"payload": "",
"credits": "6.000000",
"created_at": "2026-04-16T09:34:00Z"
}
错误码
完整列表请参考客户端 API 错误码。
此文档是否对你有帮助?




