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.5/text-to-video",
"input": {
"aspect_ratio": "832*480",
"prompt": "A quiet forest under soft morning light, with natural detail.",
"duration": 5
}
}
'
{
"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.5 Text to Video
Create 5 or 10 second videos from text with synchronized audio and landscape or portrait output up to 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.5/text-to-video",
"input": {
"aspect_ratio": "832*480",
"prompt": "A quiet forest under soft morning light, with natural detail.",
"duration": 5
}
}
'
{
"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>"
}- Submit the request with
VIDGO_API_KEY. Save the returnedtask_idto track generation. - Use Query Task Status to retrieve the result. With a
callback_url, Vidgo sends the result to your webhook when the task reachesfinishedorfailed.
Wan 2.5 Text to Video
Create 5 or 10 second videos from text with synchronized audio and landscape or portrait output up to 1080p.Available Model
alibaba/wan-2.5/text-to-video: Generate a video scene from a text prompt.
Request Parameters
Setmodel and optional callback_url at the request root. Place the following generation parameters inside input.
prompt
prompt(string, required): Describe the subject, scene, and motion. Use 1–1500 characters after trimming surrounding whitespace.
aspect_ratio
aspect_ratio(string, required): Frame dimensions in pixels (width*height):832*480,480*832,1280*720,720*1280,1920*1080,1080*1920.
duration
duration(integer, optional): Video duration: 5 or 10 seconds. Default: 5.
audio
audio(string, optional): Optional audio file URL to supply a recording for the video.
negative_prompt
negative_prompt(string, optional): Optional description of elements to exclude from the scene.
seed
seed(integer, optional): Optional integer random seed for reusing generation settings.
Retrieve the Video
Query the task withtask_id. Continue polling while status is not_started or running. At finished, read the video URL from data.files[].file_url. At failed, read data.error_message for the error details.Authorizations
Use VIDGO_API_KEY.
Body
application/json
Set model and optional callback_url at the request root. Place generation parameters inside input.