Skip to main content
POST
Text to video
For pending tasks, poll the returned ID. The successful task detail includes usage with billable seconds and the applicable price row. See usage fields.

Authorizations

Authorization
string
header
required

A workspace API key beginning with gengen_live_.

Body

application/json
model
string
required

Happy Horse public model ID.

Allowed value: "happyhorse-1.1"
mode
enum<string>
required

Happy Horse generation mode.

Supported values:

  • text_to_video — generate a video from a text prompt
  • image_first_frame — animate a supplied first-frame image
  • reference_to_video — guide generation with reference images
Available options:
text_to_video,
image_first_frame,
reference_to_video
prompt
string

Required for text_to_video and reference_to_video. Optional for image_first_frame.

assets
object
controls
object

Response

The task was accepted.

id
string
required
model
string
required
status
string
required
outputs
object
required
usage
object

Successful task detail. Billable seconds use reported video duration when available, otherwise the requested duration. Billing rounds up within 3 to 15 seconds.

createdAt
string<date-time>
updatedAt
string<date-time>
statusUpdateTime
string<date-time>