mingyan
Happy Horse - Query Task
Query the status and result of Happy Horse video generation tasks
Happy Horse Query Task
Use the task ID to query the status and result of a Happy Horse video generation task. This query API applies to Happy Horse text-to-video, first-frame image-to-video, and reference-to-video tasks.
Authentication
Authentication
Get KeyAll requests require a Bearer token in the request header:
cURL
Authorization: Bearer {{key}}
Base URL
https://zcbservice.aizfw.cn/kyyReactApiServerbaseUrl is the shared prefix for all public APIs. The api field in the current page frontmatter shows the full endpoint. Use this baseUrl as the common prefix when reading or composing request paths.Path Parameters
idstringrequiredUnique identifier of the video task, returned by the create task API.
The create API returns the field
id directly. Use that value as the id here.Response Parameters
idstringUnique identifier of the video task.
objectstringObject type. Always
video.createdintegerTask creation timestamp.
modelstringModel name used for generation, such as
happyhorse-1.0-t2v, happyhorse-1.0-i2v, or happyhorse-1.0-r2v.statusstringTask status:
queued- Queuedprocessing- Processingcompleted- Completedfailed- Failed
video_urlstringGenerated or edited video URL, returned when the task is
completed.actualDurationnumberActual output duration in seconds, returned when the task is
completed.errorstringError message, returned when the task is
failed.Status Flow
queued
The task has been created and added to the queue.
processing
Happy Horse is generating the video.
completed
The task completed successfully and the result is available through
video_url.Polling Recommendations
Polling strategy:
- Recommended polling interval: 30-60 seconds
- Completion time depends on the model, duration, and reference image count
- Stop polling when
statusbecomescompletedorfailed
Important:
- The
{id}path parameter must use theidreturned by the create API - Generated result URLs are usually temporary, so save them promptly

