Skip to main content
Create a HappyHorse 1.1 task with POST /v1/video/generations. Each workflow has its own model ID and input structure.

Create task

POST /v1/video/generations
cURL
200

Request headers

string
required
Bearer authentication in the form Bearer YOUR_API_KEY.
string
default:"application/json"
required
Request body format.

Request parameters

string
required
Must be happyhorse-1.1-t2v.
string
required
Text prompt. Maximum 5,000 non-Chinese or 2,500 Chinese characters.
string
default:"1080P"
720P or 1080P.
string
default:"16:9"
16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, or 21:9.

Query task by ID

GET /v1/video/generations/{task_id}

Request headers

string
required
Bearer authentication in the form Bearer YOUR_API_KEY.
string
default:"application/json"
required
Request body format.

Path parameters

string
required
Task ID returned by the create request.
cURL
200

Response fields

string
success when the task query succeeds.
string
Additional response message.
string
AnyFast task ID.
string
Workflow action used to process the task.
string
Task status, such as QUEUED, IN_PROGRESS, SUCCESS, or FAILURE.
string
Result video URL when the task succeeds.
string
Failure detail returned by the upstream task service. The service may populate this field with a result URL in successful responses.
integer
Task submission time as a Unix timestamp.
integer
Task processing start time as a Unix timestamp.
integer
Task completion time as a Unix timestamp.
string
Task progress percentage.
string
Request ID for the outer AnyFast response.
object
Upstream task output details.
string
Upstream task ID.
string
Upstream task status, such as SUCCEEDED.
string
Upstream result video URL.
string
Original prompt submitted for the task.
string
Upstream task submission time.
string
Upstream task scheduling time.
string
Upstream task completion time.
string
Request ID returned by the upstream task service.
object
Usage and output metrics returned by the upstream task service.
integer
Output super-resolution value.
number
Requested or generated video duration.
number
Input video duration.
number
Output video duration.
string
Output aspect ratio.
integer
Number of generated videos.

Shared request parameters

integer
default:5
Video duration from 3 to 15 seconds.
boolean
default:true
Whether to add the HappyHorse watermark.
integer
Random seed in [0, 2147483647].

Response

string
Created task ID.
string
Created task ID; use it for task queries.
string
Model used for task creation.
string
Initial task status.
integer
Initial task progress.

Error responses

  • 400 Bad Request - Invalid input or unsupported parameter combination.
  • 401 Unauthorized - API key is missing or invalid.
  • 429 Rate limit exceeded - Request rate exceeded the applicable limit.