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": "An orange cat stretches on a sunny windowsill, slow push-in",
"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
Create video
Create a Vidu Q4 video task.
Path: POST https://api.omniall.ai/v1/video/generations
Scenarios:
- Text-to-video:
prompt+seconds(optionalsize/resolution) - Image / multi-image reference:
reference_imageorreference_images/images(max 10 total) - Reference audio:
reference_audios(max 3; prefer at least one image)
Constraints:
seconds/duration: integer 4–16 (same price within range)size/ratio/aspect_ratio: only16:9/9:16(default16:9)countmust be 1- Reference videos not supported
- Invalid params → HTTP 400
Auth: 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": "An orange cat stretches on a sunny windowsill, slow push-in",
"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>"
}
}Body
application/json
Vidu create-video request body.
Response
Task accepted (processing)
Vidu video task object.