HappyHorse 1.0

Alibaba's HappyHorse 1.0 on the Kinovi API — unified text-to-video, image-to-video, multi-image reference-to-video (up to 9 images), and video editing at 720p or 1080p.

Model ID
happyhorse1.0
Type
Video
Provider
Alibaba
From
$0.0801 / s

Quickstart

Two calls: submit a task with createTask, then poll recordInfo with the returned taskId until status is success or fail.

Every request carries Authorization: Bearer <yourApiKey>. Create and manage keys at kinovi.ai/api-keys; see the API reference for rate limits and error codes.

Submit a task

POST https://kinovi.ai/api/v1/jobs/createTask

{
  "model": "happyhorse1.0",
  "inputs": {
    "happyhorseMode": "t2v",
    "prompt": "A rider galloping across misty green highlands at sunrise, dramatic sweeping drone shot, cinematic orchestral ambiance.",
    "aspectRatio": "16:9",
    "duration": 5,
    "outputResolution": "720p"
  }
}

Response 200 OK — the task is queued and credits are reserved. Use taskId to poll for the result.

{
  "taskId": "task_01j9examplehappyh001"
}

Error responses

HTTPBodyWhen
400{ "message": "Invalid inputs for model", "errors": [ … ] }Media doesn't match happyhorseMode (e.g. missing imageUrls in i2v/r2v, missing videoUrls in video-edit, duration outside 3–15, or missing prompt in t2v/r2v/video-edit). Nothing is charged.
401{ "message": "Invalid API Key" }Missing or wrong Authorization header.
402{ "message": "Insufficient credits", "required": 87, "available": 0 }Not enough credits for this duration × resolution.
429{ "message": "Concurrency limit reached (…)", "limit": 5, "current": 5 }Too many tasks in progress; wait for one to finish.

Query the result

GET https://kinovi.ai/api/v1/jobs/recordInfo?taskId=task_…

Poll every few seconds until status is success or fail.

statusMeaning
waitingQueued, not started yet
generatingRunning
successDone — read output[].url
failFailed — see error.code / error.message; credits are refunded

Parameters

HappyHorse 1.0 uses one model id ("happyhorse1.0") and switches behavior with inputs.happyhorseMode:

happyhorseModeRequired mediaOptional mediaPromptDuration
t2vNoneNonerequired3–15 s (default 5)
i2v (default)1 first-frame image in imageUrlsNoneoptional3–15 s (default 5)
r2v1–9 reference images in imageUrlsNonerequired (cite [Image 1] or @Image1)3–15 s (default 5)
video-edit1 source video in videoUrls0–5 reference images in imageUrlsrequiredFollows source video (omit duration)

Reference media fields take any publicly reachable URL — host the files yourself, or upload them to Kinovi first with POST /api/v1/uploads and pass the returned url (see Uploading Assets).

FieldTypeDefaultDescription
modelstringrequiredMust be "happyhorse1.0".
inputs.happyhorseModestringi2vt2v · i2v · r2v · video-edit.
inputs.promptstring–Motion, scene, or edit instruction. Required for t2v, r2v, and video-edit; optional for i2v.
inputs.imageUrlsstring[]–i2v: 1 first-frame image. r2v: 1–9 reference images. video-edit: 0–5 edit reference images. t2v: must be omitted/empty. Your own hosted URLs or Kinovi uploads.
inputs.videoUrlsstring[]–Required in video-edit mode (exactly 1 source video); must be omitted in other modes. Your own hosted URLs or Kinovi uploads.
inputs.durationinteger5Clip length in whole seconds, 3 to 15. Ignored/omitted in video-edit mode.
inputs.outputResolutionstring720p720p · 1080p.
inputs.aspectRatiostring16:916:9 · 9:16 · 4:3 · 3:4 · 1:1 · 21:9. Used in t2v and r2v; i2v and video-edit follow the source media.
inputs.audio_settingstringautoauto (generate audio) · origin (preserve original audio in video-edit).
inputs.seedintegerrandom0–2147483647.
callBackUrlstring–Optional webhook called when the task finishes.

Full request (r2v reference-to-video)

{
  "model": "happyhorse1.0",
  "inputs": {
    "happyhorseMode": "r2v",
    "prompt": "The character from @Image1 strolls down the lantern-lit alley from @Image2 as gentle rain falls.",
    "imageUrls": [
      "https://static.kinovi.ai/generated-images/task_ff01ii3zvib7ndbx8negnh6q-0.png",
      "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-0.png"
    ],
    "aspectRatio": "16:9",
    "duration": 5,
    "outputResolution": "1080p",
    "audio_setting": "auto",
    "seed": 42
  },
  "callBackUrl": "https://example.com/hooks/kinovi"
}

Pricing

Priced per second of video, by outputResolution. Live prices: kinovi.ai/models/happyhorse.

720p1080p
per second$0.0801 / s$0.1413 / s

For t2v, i2v, and r2v, duration × the rate is charged at submit. For video-edit, credits are settled to the edited clip's duration. Failed tasks are refunded in full.

Response

Result fields

{
  "taskId": "task_01j9examplehappyh001",
  "model": "happyhorse1.0",
  "status": "success",
  "creditsUsed": 86.3,
  "output": [
    {
      "url": "https://static.kinovi.ai/videos/happyhorse_example.mp4",
      "width": 1280,
      "height": 720,
      "mediaType": "video/mp4"
    }
  ],
  "error": null,
  "createTime": 1790090613532,
  "completeTime": 1790090784100
}

Examples

Image to video (i2v)

curl -sS -X POST "https://kinovi.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $KINOVI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happyhorse1.0",
    "inputs": {
      "happyhorseMode": "i2v",
      "prompt": "Slow dolly-in with natural wind catching the subject hair and soft sunset glow.",
      "imageUrls": ["https://static.kinovi.ai/generated-images/task_ff01ii3zvib7ndbx8negnh6q-0.png"],
      "duration": 5,
      "outputResolution": "720p"
    }
  }'

Video edit (video-edit)

curl -sS -X POST "https://kinovi.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $KINOVI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "happyhorse1.0",
    "inputs": {
      "happyhorseMode": "video-edit",
      "prompt": "Change the background to a snowy alpine cabin while preserving the subject motion.",
      "videoUrls": ["https://static.kinovi.ai/videos/seedance_video_1775631198994_17cd129c.mp4"],
      "outputResolution": "720p",
      "audio_setting": "origin"
    }
  }'

FAQ

What is the default happyhorseMode if I omit it?

i2v (first-frame image-to-video). Always pass "happyhorseMode": "t2v", "r2v", or "video-edit" explicitly when calling those modes.

How do I reference uploaded images in r2v prompts?

Write either [Image 1], [Image 2], … or @Image1, @Image2, … (matching the order in inputs.imageUrls).