HappyHorse 1.1 — Image to video API
Image to video with HappyHorse 1.1: request parameters, examples and response handling.
Endpoint: POST https://api.higgsfield.ai/alibaba/happy-horse/v1.1/image-to-video
Endpoint ID: alibaba/happy-horse/v1.1/image-to-video
#Usage notes
- The prompt is optional. This endpoint accepts one first-frame image; it does not support a last-frame image.
#Quick start
Replace the example media URLs with publicly accessible URLs for your own files before submitting.
curl --request POST \
--url https://api.higgsfield.ai/alibaba/happy-horse/v1.1/image-to-video \
--header "Authorization: Key ${HF_API_KEY_ID}:${HF_API_KEY_SECRET}" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY}" \
--data '{
"image_url": "https://example.com/input.jpg"
}'
import higgsfield_client
arguments = (
{'image_url': 'https://example.com/input.jpg'}
)
result = higgsfield_client.subscribe(
"alibaba/happy-horse/v1.1/image-to-video",
arguments=arguments,
)
print(result["video"]["url"])
import { config, higgsfield } from "@higgsfield/client/v2";
config({ credentials: process.env.HF_CREDENTIALS });
const result = await higgsfield.subscribe("alibaba/happy-horse/v1.1/image-to-video", {
input:
{
"image_url": "https://example.com/input.jpg"
},
withPolling: true,
});
if (result.status === "completed") {
console.log(result.video?.url);
}
#Input schema
seed integer
Seed used to control generation randomness.
Minimum: 1.
Maximum: 2147483646.
prompt string
Write your prompt here
duration integer (default: 5)
Requested output duration in seconds.
Minimum: 2.
Maximum: 15.
image_url string required
Public URL of the input image.
Format: uri.
resolution string (default: 1080p)
Output resolution tier.
Allowed values: "720p", "1080p".
Complete JSON schema
{
"type": "object",
"title": "Happy horse",
"required": [
"image_url"
],
"properties": {
"seed": {
"type": "integer",
"maximum": 2147483646,
"minimum": 1
},
"prompt": {
"type": "string",
"title": "Prompt",
"description": "Write your prompt here"
},
"duration": {
"type": "integer",
"title": "Duration",
"default": 5,
"maximum": 15,
"minimum": 2
},
"image_url": {
"type": "string",
"title": "Image URL",
"format": "uri"
},
"resolution": {
"enum": [
"720p",
"1080p"
],
"type": "string",
"default": "1080p"
}
}
}
#Response
Submission returns a request handle. Poll status_url until status is completed, or use webhooks.
{
"status": "queued",
"request_id": "REQUEST_ID",
"status_url": "https://api.higgsfield.ai/requests/REQUEST_ID/status",
"cancel_url": "https://api.higgsfield.ai/requests/REQUEST_ID/cancel"
}
A completed response includes the following output fields:
{
"status": "completed",
"request_id": "REQUEST_ID",
"video": {
"url": "https://example.com/output.mp4"
}
}
See idempotent requests, polling, request errors and authentication for shared request handling.