cURL - Query task result
Check task status and retrieve the generated video URL. The response includes timestamps and the original prompt for tracking.
Polling strategy
- Create a task to receive a
task_id. - Poll this endpoint every 15 seconds until
task_statusisSUCCEEDEDorFAILED. - On success, download the video from
video_url.
Important notes
- URL expiration: Video URLs expire after 24 hours. Download promptly.
- Task status flow:
PENDING->RUNNING->SUCCEEDEDorFAILED. - Enhanced metadata: The response includes
submit_time,scheduled_time,end_time, andorig_prompt(the original prompt before any prompt extension). - Usage details: Billing is based on
duration(=input_video_duration+output_video_duration). The response also returnsSR(resolution) andratio.
Authorizations
string
header
required
DashScope API Key. Create one in the Qwen Cloud console.
Path Parameters
string
required
Task identifier returned by the video creation endpoint.