About HappyHorse 1.1
HappyHorse 1.1 reference to video takes 1 to 9 images in reference_image_urls, used in the order the prompt refers to them.
Call it with the model name alibaba/happyhorse-1.1/reference-to-video on POST /jobs/createTask, from $0.63.
Introduction
HappyHorse 1.1 Reference to video builds one shot from one to nine reference images, sent in reference_image_urls in the order the prompt refers to them. It returns 3 to 15 whole seconds at 720p or 1080p in any of nine aspect ratios, with a generated soundtrack. References are images only; no video or audio reference is accepted.
Choose a HappyHorse 1.1 mode by starting material
| What you have at the start | Mode |
|---|---|
| a written scene or script | HappyHorse 1.1 Text to video |
| an approved opening image | HappyHorse 1.1 Image to video |
| one to nine reference images | HappyHorse 1.1 Reference to video |
Key features
Nine ordered slots
With up to nine images, one request can pin a character, costume pieces, a vehicle, a location and props. The rider-jacket-bike-station example uses three stills to keep the rider, the open jacket, the motorcycle and the filling station the same from take to take, in 3:4 at 720p, so the prompt only has to name the action and the light.
Face, prop and location in one take
The three-plate-corridor example gives each image a different job: the woman, the cherry-red guitar she carries and the neon motel corridor. The prompt says which image is which, then asks for one backward-tracking take in which face, prop and location all have to survive together.
Nine frame shapes on this endpoint
aspect_ratio offers nine values with 16:9 as the default, including 1:1, 4:5 and 5:4. The product-in-place example is square at 1080p: a candle jar from one image placed on a marble shelf from another, lit to match the shelf's window light.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | The shape of the frame: wide, square or tall. 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 4:5 · 5:4 · 9:21 · 21:9 · Default: 16:9 |
duration_seconds | No | Length of the generated clip. ≥ 3 · ≤ 15 · Default: 5 |
prompt | Yes | Describe what you want to make. |
reference_image_urls | Yes | Pictures of the people, outfits or places the result should keep. |
resolution | No | Choose an available output size. 720p · 1080p · Default: 720p |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| resolution 720p | $0.126 |
| resolution 1080p | $0.163 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
A product in its setting
Send the product and the location as separate images and describe how they interact. In product-in-place the camera pushes in slowly as the wick lights and a thread of smoke rises, and the flame's glow adds a second, warm light onto the marble and the linen.
A consistent cast and wardrobe across a series
Reuse the same reference set for every shot so the performer, the costume and the vehicle stay the same from take to take, and change only the action line of the prompt. Keep the images in the same order each time so the positional references still point at the right picture.
Prompt guide & pro tips
Refer to images by position
Say what each image contributes before describing the shot. The published examples use two positional styles: "Use the woman from the first image exactly as she appears" and "Place the candle jar from [Image 1] into the empty centre of the marble shelf in [Image 2]". Upload the files in the same order the prompt names them.
One job per image
Nine slots is a ceiling, not a target. Several views of the same subject get averaged rather than reconciled, so give each image a distinct job such as identity, garment, prop or location. Each image needs a shortest side of at least 400 px and a file size of up to 20 MB.
Spend the prompt on action and light
Once identity is settled by the references, the prompt says what the subject does, not what they look like: "he swings a leg over the tank and settles, the overhead light pressing down from directly above, moths in the beam". Keep lighting instructions consistent with the location image, as product-in-place does by matching the shelf's light direction and colour temperature.
API quick start
Call the HappyHorse 1.1 API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model alibaba/happyhorse-1.1/reference-to-video and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "alibaba/happyhorse-1.1/reference-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"reference_image_urls": [
"https://media.popnow.ai/influencer/examples/ava.webp"
],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration_seconds": 5
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
About the HappyHorse 1.1 Reference to Video endpoint
Product placement works best with one image for the product and one for the location, plus an instruction to match the location's light.
aspect_ratio is available here with all nine values.
HappyHorse 1.1 API questions
How much does the HappyHorse 1.1 API cost?
HappyHorse 1.1 starts at $0.63 for a 5-second clip with Reference to Video, its lowest-priced task. Prices by option: 720p $0.126 per second, 1080p $0.163 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What are the limits of the HappyHorse 1.1 · Reference to Video API?
Clip length: 3–15 s; Resolutions: 720p · 1080p; Aspect ratios: 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 4:5 +3; Reference images: 9; Prompt length (characters): 2,500. Requests outside these limits are rejected before anything is charged.