Skip to main content
HappyHorse

HappyHorse -- Retrieve image-to-video result

Check HappyHorse image-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": "8ae698ba-df2d-966c-abcf-xxxxxx",
  "output": {
    "task_id": "e56d806f-76f9-4037-aefa-xxxxxx",
    "task_status": "SUCCEEDED",
    "submit_time": "2026-04-20 19:33:50.425",
    "scheduled_time": "2026-04-20 19:33:50.463",
    "end_time": "2026-04-20 19:35:34.216",
    "orig_prompt": "A cat running on the grass",
    "video_url": "https://dashscope-result-sh.oss-accelerate.aliyuncs.com/xxx.mp4?Expires=xxx"
  },
  "usage": {
    "duration": 5,
    "input_video_duration": 0,
    "output_video_duration": 5,
    "video_count": 1,
    "SR": 720
  }
}
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 QwenCloud 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.

8ae698ba-df2d-966c-abcf-xxxxxx
object
object

Resource consumption. Only present when task_status is SUCCEEDED.