curl --request POST \
--url https://api.omniall.ai/v1/video/generations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.1-720P",
"prompt": "Cinematic city night, slow push along a wet street, neon reflections on the road",
"duration": 10,
"ratio": "16:9",
"generate_audio": true
}
'{
"id": "task_xxx",
"task_id": "task_xxx",
"status": "submitted"
}Wan video
Create video
Wan (Tongyi Wanxiang) async video create.
Path: POST https://api.omniall.ai/v1/video/generations
Also POST /v1/videos. Poll with returned id / task_id.
Currently supported models (Alibaba Wan): wan2.1-480P, wan2.1-720P, wan2.1-1080P (see Model Square).
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": "wan2.1-720P",
"prompt": "Cinematic city night, slow push along a wet street, neon reflections on the road",
"duration": 10,
"ratio": "16:9",
"generate_audio": true
}
'{
"id": "task_xxx",
"task_id": "task_xxx",
"status": "submitted"
}Headers
Bearer API key, e.g. Bearer sk-....
Example:
"Bearer sk-..."
Body
application/json
Wan / Tongyi Wanxiang async create body.
Video model id. Currently supported models (Alibaba Wan): wan2.1-480P, wan2.1-720P, wan2.1-1080P (see Model Square).
Example:
"wan2.1-720P"
Text prompt.
Example:
"Cinematic city night, slow push along a wet street, neon reflections"
Duration in seconds. Alias: seconds.
Example:
10
Aspect ratio. Aliases: size, aspect_ratio.
Available options:
21:9, 16:9, 4:3, 1:1, 3:4, 9:16 Example:
"16:9"
Multi-image references.
First frame URL(s).
Last frame URL(s).
Example:
true