curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.6-text-to-video",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic time-lapse of a bustling city street transitioning from day to night.",
"duration": 5,
"resolution": "1080p",
"multi_shots": false
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}Alibaba
Wan 2.6
Wan 2.6 API 使用 Alibaba Wan 2.6 生成多镜头 1080p 视频
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.6-text-to-video",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic time-lapse of a bustling city street transitioning from day to night.",
"duration": 5,
"resolution": "1080p",
"multi_shots": false
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- wan2.6-text-to-video - 根据文本提示词生成视频
- wan2.6-image-to-video - 结合提示词让参考图片动起来
- wan2.6-video-to-video - 根据提示词编辑或重绘输入视频
功能
- 时长:5、10 或 15 秒(视频生视频最长 10 秒)
- 分辨率:720p 或 1080p
- 多镜头:开关多镜头构图,实现电影感转场
- 提示词长度:最多 5,000 个字符
工作流 ID
原有 ID 仍可使用。新接入可选择专用的工作流:授权
所有 API 接口都需要 Bearer Token 认证
获取 API Key:
访问 API Key 管理页面(仪表盘 → API 密钥)获取 API Key
添加到请求头:
Authorization: Bearer VIDGO_API_KEY
请求体
application/json