Skip to main content
HappyHorse

HappyHorse -- Retrieve reference-to-video result

Check HappyHorse reference-to-video task status

GET
/tasks/{task_id}
cURL - Query task result
# Replace {task_id} with the actual task ID from the submit response
curl -X GET 'https://dashscope-intl.aliyuncs.com/api/v1/tasks/{task_id}' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"
{
  "request_id": "35137489-2862-96cb-b6f2-xxxxxx",
  "output": {
    "task_id": "1469cfc3-3004-4d9e-ab10-xxxxxx",
    "task_status": "SUCCEEDED",
    "submit_time": "2026-04-25 15:03:25.848",
    "scheduled_time": "2026-04-25 15:03:25.884",
    "end_time": "2026-04-25 15:04:05.882",
    "orig_prompt": "The woman in the red qipao from [Image 1] is first framed in a profile medium shot, highlighting the tailored cut and S-curve silhouette of the dress. The camera then cuts to a low-angle upward shot, capturing the moment she gracefully raises her hand to unfold the folding fan from [Image 2], while the tassel earrings from [Image 3] sway delicately with the turn of her head.",
    "video_url": "https://dashscope-result-sh.oss-accelerate.aliyuncs.com/xxxx.mp4?Expires=xxx"
  },
  "usage": {
    "duration": 5,
    "input_video_duration": 0,
    "output_video_duration": 5,
    "video_count": 1,
    "SR": 720,
    "ratio": "16:9"
  }
}
Poll task status and download the video when ready.

Polling strategy

  1. Save the task_id from the submit response.
  2. Poll this endpoint every 15 seconds until task_status is SUCCEEDED or FAILED.
  3. Download the video from video_url within 24 hours -- the URL expires after that.

Authorizations

string
header
required

DashScope API Key. Get one from the Qwen Cloud console.

Path Parameters

string
required

Task ID from the POST response.

Response

200-application/json
string

Request ID for troubleshooting. Include this when contacting support.

object
object

Resource consumption. Only present when task_status is SUCCEEDED.