Skip to main content
GET
/
vendors
/
alibaba
/
v1
/
wan2
/
video
/
edit
/
{task_id}
Get Video Edit Task
curl --request GET \
  --url https://api.mulerouter.ai/vendors/alibaba/v1/wan2/video/edit/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "task_info": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "pending",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "error": {
      "code": 123,
      "title": "<string>",
      "detail": "<string>"
    }
  },
  "videos": [
    "<string>"
  ]
}
Retrieve the status and result of a Wan2 video edit task using the wan2.1-vace-plus model.

Response Status

The status field indicates the current state:
  • pending: Task is queued
  • processing: Task is being executed
  • completed: Task finished successfully, video URLs are available
  • failed: Task failed, error details provided

Response Examples

Completed Task

{
  "task_info": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "status": "completed",
    "created_at": "2025-09-21T00:00:00Z",
    "updated_at": "2025-09-21T00:03:00Z"
  },
  "videos": [
    "https://mulerouter.muleusercontent.com/public/123e4567-e89b-12d3-a456-426614174000/edited_video.mp4"
  ]
}

Processing Task

{
  "task_info": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "status": "processing",
    "created_at": "2025-09-21T00:00:00Z",
    "updated_at": "2025-09-21T00:01:30Z"
  }
}

Failed Task

{
  "task_info": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "status": "failed",
    "created_at": "2025-09-21T00:00:00Z",
    "updated_at": "2025-09-21T00:00:45Z",
    "error": {
      "code": 3001,
      "title": "Task Execution Error",
      "detail": "Video edit failed: Reference images contain unsupported content"
    }
  }
}

Generation Time

Video editing with wan2.1-vace-plus typically takes:
  • Average: 2-4 minutes
  • Factors affecting time: Number of reference images, prompt complexity, API load

Polling Recommendations

  • Poll every 10-15 seconds
  • Be patient as multi-modal video generation is computationally intensive
  • Provide progress feedback to users

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

task_id
string<uuid>
required

Response

200 - application/json

Task result

task_info
object
videos
string<uri>[]