任务:首尾帧视频
概览
- 请求方法:
POST - 路径:
/task/vidu/start-end2video - 内容类型:
application/json - Tags:视频模型(Video)/vidu视频
认证
- Header:
Authorization: Bearer <token>
请求参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| model | string | 是 | vidu2.0 / vidu1.5 |
| images | array[string] | 是 | 2 张图(首帧/尾帧),URL 或 Base64,1:1 或 4:1,分辨率相近 0.8~1.25 |
| prompt | string | 否 | 文本描述,建议<=1500字符 |
| duration | integer | 是 | 4或8 |
| seed | integer | 否 | 随机种子 |
| resolution | string | 是 | 360p/720p/1080p(vidu2.0 4秒仅720p) |
| movement_amplitude | string | 否 | auto/small/medium/large |
| callback_url | string | 否 | 回调 URL (POST,状态 processing/success/failed) |
示例请求
bash
curl -X POST "https://api.gpt.ge/task/vidu/start-end2video" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxx" \
-d '{
"model":"vidu2.0",
"images":["https://p1...start.png","https://p1...end.png"],
"prompt":"女孩款款向镜头走来...",
"duration":4,
"resolution":"720p"
}'示例返回
json
{
"task_id":"809xxx",
"type":"startend2video",
"state":"created",
"model":"vidu2.0",
"prompt":"女孩款款...",
"images":["...","..."],
"duration":4,
"seed":0,
"aspect_ratio":"16:9",
"resolution":"720p",
"movement_amplitude":"auto",
"created_at":"2025-..."
}