Models

Loading...

Happy Horse API

Animate a first-frame image with Alibaba Happy Horse 1.0.

Endpoint

POST https://api.hedra.com/v3/models/happy-horse

Example request

curl -X POST "https://api.hedra.com/v3/models/happy-horse" \
  -H "Authorization: Key $HEDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": {"prompt": "a cinematic shot of a city at dusk"}}'

Parameters

num_outputsinteger

Number of outputs generated per job. Only 1 is supported.

promptstringrequired

Generation prompt. At most 2500 characters.

aspect_ratiostringrequired

Output aspect ratio.

resolutionstringrequired

Output resolution.

duration_msintegerrequired

Duration in ms.

start_image

Start frame (image-to-video). At least 300px on each side and at most 10 MB.

imagesarray

Reference images. 1 to 9 images, each at least 400px on each side and at most 10 MB.

seedinteger

Seed for reproducible output; omit for a random seed. From 0 to 2147483647.