cURL - Retrieve task result
Poll task status and download the video when ready.
Polling strategy
- Save the
task_idfrom the submit response. - Poll this endpoint every 15 seconds until
task_statusisSUCCEEDEDorFAILED. - Download the video from
output.video_urlwhen the task succeeds.
Notes
- Query window:
task_idcan be queried for 24 hours. After that, the status returnsUNKNOWN. - Status flow:
PENDING->RUNNING->SUCCEEDEDorFAILED.CANCELEDmeans the task was canceled. - Video URL: the link does not currently expire, but do not use it as long-term storage. Download the video promptly.
Authorizations
string
header
required
DashScope API Key. Get one from the QwenCloud console.
Path Parameters
string
required
Task ID returned by the create-task endpoint. Queryable for 24 hours.