curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "alibaba/wan-2.6/image-to-video",
"input": {
"duration": 5,
"image_urls": [
"https://example.com/image.png"
],
"prompt": "A quiet forest under soft morning light, with natural detail.",
"resolution": "720p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Alibaba
Wan 2.6 图生视频
Wan 2.6 API 让静态图片动起来,生成可选多镜头的视频序列,最高 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": "alibaba/wan-2.6/image-to-video",
"input": {
"duration": 5,
"image_urls": [
"https://example.com/image.png"
],
"prompt": "A quiet forest under soft morning light, with natural detail.",
"resolution": "720p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- alibaba/wan-2.6/image-to-video - 根据图片输入生成视频。
功能
- 根据图片输入生成视频。
image_urls只接受 1 张图片。- 输出分辨率可选
720p、1080p。
时长选项
- 5、10、15 秒 - 以整数设置
duration。可选。默认:5 秒。
高级参数
model 和可选的 callback_url 放在请求根级。所有工作流参数(包括输出选项)都放在 input 内。
只发送本工作流支持的 input 字段。不支持的 input 字段会在扣除积分前被拒绝。输入 URL 必须使用 HTTP(S),带主机名,且不含内嵌凭证。
提示词
prompt:必填。描述场景和期望的运动。长度:1-5,000 个字符。- 提供时该值不能为空。
图片 URL
image_urls:必填。提供可公开访问的图片 URL。只能提供 1 项,每项必须是 HTTP(S) URL。- Playground 支持上传 JPG、PNG 和 WebP,最大 10 MiB。
分辨率
resolution:可选。可选值:720p、1080p。默认:720p。
多镜头生成
multi_shots:可选。启用多镜头生成。使用true或false。
定价
价格取决于所选模型和适用的输出设置。当前价格请在 Vidgo 仪表盘查看。 提交时扣除积分,任务失败后退还。授权
使用 VIDGO_API_KEY。
请求体
application/json