curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "alibaba/wan-3.0/reference-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"resolution": "720p",
"aspect_ratio": "adaptive",
"duration": 5,
"audio": true,
"enable_safety_checker": true,
"reference_image_urls": [
"https://example.com/image.png"
]
}
}
'{
"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 3.0 参考生视频
Wan 3.0 API 使用图片、视频和音频参考引导视频场景,将多个素材组合成新的视觉序列。
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-3.0/reference-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"resolution": "720p",
"aspect_ratio": "adaptive",
"duration": 5,
"audio": true,
"enable_safety_checker": true,
"reference_image_urls": [
"https://example.com/image.png"
]
}
}
'{
"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-3.0/reference-to-video - 在参考素材和提示词的引导下生成新视频。
功能
- 使用图片、视频、音频、文档或网页参考引导新场景。
- 输出分辨率可选
480p、720p、1080p。 - 通过
audio控制音频生成,默认为true。
时长选项
- 2-30 秒 - 以整数设置
duration。默认:5 秒。
高级参数
model 和可选的 callback_url 放在请求根级,下列参数放在 input 内。
只发送本工作流支持的 input 字段。不支持的 input 字段会在扣除积分前被拒绝。输入 URL 必须使用 HTTP(S),带主机名,且不含内嵌凭证。
提示词
prompt:必填。描述场景和期望的运动。- 提供时提示词不能为空。最大长度:20,000 个字符。
参考输入
- 除
prompt外,至少需要一种参考类型。音频可以是唯一的参考类型。 - 不要将
reference_file_urls与reference_link_urls同时使用。 reference_image_urls:可选;提供 1-10 张图片。reference_video_urls:可选;提供 1-5 个视频。reference_audio_urls:可选;提供 1-5 个音频文件。reference_file_urls:可选;只能提供 1 个文档。reference_link_urls:可选;只能提供 1 个网页。
分辨率
resolution:480p、720p、1080p。默认:720p。
宽高比
aspect_ratio:adaptive、16:9、4:3、1:1、3:4、9:16。默认:adaptive。
音频
audio:设为true启用生成音频,设为false关闭。默认:true。
种子
seed可选。传入0到2147483647的整数。
安全检查
enable_safety_checker可选。设为true或false控制安全检查。默认:true。
定价
价格取决于所选模型和适用的输出设置。当前价格请在 Vidgo 仪表盘查看。 提交时扣除积分,任务失败后退还。授权
使用 VIDGO_API_KEY。
请求体
application/json
model 和 callback_url 放在根级。未知的根级字段会被忽略;不支持的 input 字段会被拒绝。