Skip to main content
Video models

HappyHorse 1.1 — Text to video API

Text to video with HappyHorse 1.1: request parameters, examples and response handling.

← HappyHorse 1.1

Endpoint: POST https://api.higgsfield.ai/alibaba/happy-horse/v1.1/text-to-video

Endpoint ID: alibaba/happy-horse/v1.1/text-to-video

▶Open API PlaygroundHappyHorse 1.1 · Text to video↗

#Usage notes

  • The prompt must contain text; an empty string is rejected during submission.

#Quick start

cURL
curl --request POST \
  --url https://api.higgsfield.ai/alibaba/happy-horse/v1.1/text-to-video \
  --header "Authorization: Key ${HF_API_KEY_ID}:${HF_API_KEY_SECRET}" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: ${IDEMPOTENCY_KEY}" \
  --data '{
  "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: 3. Maximum: 15.

resolution string (default: 1080p)

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

aspect_ratio string (default: 16:9)

Output width-to-height ratio. Allowed values: "16:9", "9:16", "1:1", "4:3", "3:4".

Complete JSON schema
json
{
  "type": "object",
  "title": "Happy Horse",
  "required": [
    "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": 3
    },
    "resolution": {
      "enum": [
        "720p",
        "1080p"
      ],
      "type": "string",
      "default": "1080p"
    },
    "aspect_ratio": {
      "enum": [
        "16:9",
        "9:16",
        "1:1",
        "4:3",
        "3:4"
      ],
      "type": "string",
      "title": "Aspect Ratio",
      "default": "16:9"
    }
  }
}

#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