curl --request POST \
--url https://api.omniall.ai/v1/video/generations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "vidu-q4-720p",
"prompt": "一只橘猫在阳光洒落的窗台伸懒腰,镜头缓慢推进",
"seconds": 5,
"size": "16:9",
"count": 1
}
'{
"id": "task_xxxxxxxx",
"task_id": "task_xxxxxxxx",
"object": "video",
"model": "vidu-q4-720p",
"status": "processing",
"progress": 0,
"seconds": "5",
"size": "16:9"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}Vidu
创建视频
创建 Vidu Q4 视频任务。
路径: POST https://api.omniall.ai/v1/video/generations
场景:
- 文生视频:只传
prompt+seconds(及可选size/resolution) - 图生 / 多图参考:传
reference_image或reference_images/images(合计最多 10 张) - 参考音频:传
reference_audios(最多 3 段;建议同时带至少 1 张图)
约束:
seconds/duration:整数 4–16(区间内同价)size/ratio/aspect_ratio:仅16:9/9:16(默认16:9)count只能为 1- 不支持参考视频
- 参数不合法返回 HTTP 400
鉴权:Authorization: Bearer sk-...
POST
/
v1
/
video
/
generations
curl --request POST \
--url https://api.omniall.ai/v1/video/generations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "vidu-q4-720p",
"prompt": "一只橘猫在阳光洒落的窗台伸懒腰,镜头缓慢推进",
"seconds": 5,
"size": "16:9",
"count": 1
}
'{
"id": "task_xxxxxxxx",
"task_id": "task_xxxxxxxx",
"object": "video",
"model": "vidu-q4-720p",
"status": "processing",
"progress": 0,
"seconds": "5",
"size": "16:9"
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}请求体
application/json
Vidu 创建视频请求体。
响应
任务已提交(processing)
Vidu 视频任务对象。