Skip to main content
Video models

Happy Horse 1.0 — Reference to video API

Reference to video with Happy Horse 1.0: request parameters, examples and response handling.

← Happy Horse 1.0

Endpoint: POST https://api.higgsfield.ai/alibaba/happy-horse/reference-to-video

Endpoint ID: alibaba/happy-horse/reference-to-video

▶Open API PlaygroundHappy Horse 1.0 · Reference to video↗

#Usage notes

  • Provide 1–9 reference images. This limit is enforced at submission even though the stored JSON Schema does not set minItems or maxItems. Reference videos are unsupported.

#Quick start

Replace the example media URLs with publicly accessible URLs for your own files before submitting.

cURL
curl --request POST \
  --url https://api.higgsfield.ai/alibaba/happy-horse/reference-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_urls": [
    "https://example.com/input.jpg"
  ],
  "prompt": "A cinematic wide shot of ocean waves at sunset, with gentle camera movement."
}'

#Input schema

seed integer

Seed used to control generation randomness. Minimum: 1. Maximum: 2147483646.

prompt string required

Write your prompt here

duration integer (default: 5)

Requested output duration in seconds. Minimum: 2. Maximum: 15.

image_urls array required

Ordered public image reference URLs. Each item: string. Format: uri.

resolution string (default: 720p)

Output resolution tier. Allowed values: "720p", "1080p".

Complete JSON schema
json
{
  "type": "object",
  "title": "Happy horse",
  "required": [
    "image_urls",
    "prompt"
  ],
  "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_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "title": "Image URL",
        "format": "uri"
      }
    },
    "resolution": {
      "enum": [
        "720p",
        "1080p"
      ],
      "type": "string",
      "default": "720p"
    }
  }
}

#Response

Submission returns a request handle. Poll status_url until status is completed, or use webhooks.

Accepted
{
  "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:

json
{
  "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.

Was this page helpful?
Navigation