Skip to content

HappyHorse ​

HappyHorse 1.1 supports generation from text, first-frame images, or reference images.

API surface ​

OperationEndpointMode
Video generation taskPOST /v1/async/videos/generationsAsync only

Models ​

Model idNotes
happyhorse-1.1Text, first-frame and reference generation. seconds: 3–15.

Request fields ​

Send the common fields at the top level. Put the model-specific controls listed below inside providerOptions.

FieldTypeRequiredDescription
modelstringYeshappyhorse-1.1
promptstringYesDescribe subjects, actions, camera motion, and style; 1–2,000 characters on Pixapi.
secondsintegerYesInteger 3–15 seconds; explicitly required.
resolutionstringNo720p / 1080p. Pixapi default: 1080p.
nintegerNoDefault 1; only integer 1 is supported.
imagestring / string[]NoReference image URLs, 1–9 images. Formats JPEG/JPG/PNG/BMP/WebP, short edge / long edge ≥0.4, short edge ≥720p recommended, ≤10 MB each. Public URLs only; base64 is not supported.
providerOptionsobjectNoModel-specific options; see the table below.

providerOptions ​

All fields in this table are nested inside providerOptions, not alongside model.

FieldTypeDescription
aspect_ratiostring16:9, 9:16, 1:1, 4:3, 3:4. Default 16:9; image-to-video follows the input image ratio.
actionstringChoose text-to-video, image-to-video, or reference-to-video for the corresponding input mode.
first_frame_imagestringPublic first-frame image URL; do not combine with reference images.
seedintegerRandom seed, 0–2147483647; omitted means random. The same seed does not guarantee identical output.
watermarkbooleanAdd a visible AI watermark. Default false.
nsfw_checkbooleanOptional prompt/image moderation; default false.

Input rules ​

HappyHorse 1.1 supports text, first-frame, and reference generation. Video editing options from 1.0 are not included here.

Example ​

bash
curl https://api.pixapi.ai/v1/async/videos/generations \
  -H "Authorization: Bearer $PIXAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "happyhorse-1.1",
  "prompt": "A soft product reveal with gentle camera orbit",
  "n": 1,
  "seconds": 5,
  "resolution": "1080p",
  "providerOptions": {
    "aspect_ratio": "16:9",
    "action": "text-to-video"
  }
}'
py
import os
import requests

response = requests.post(
    "https://api.pixapi.ai/v1/async/videos/generations",
    headers={
        "Authorization": f"Bearer {os.environ['PIXAPI_KEY']}",
        "Content-Type": "application/json",
    },
    json={
    "model": "happyhorse-1.1",
    "prompt": "A soft product reveal with gentle camera orbit",
    "n": 1,
    "seconds": 5,
    "resolution": "1080p",
    "providerOptions": {
        "aspect_ratio": "16:9",
        "action": "text-to-video"
    }
},
)
response.raise_for_status()
task = response.json()
print(task["id"])
js
const response = await fetch('https://api.pixapi.ai/v1/async/videos/generations', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PIXAPI_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "model": "happyhorse-1.1",
  "prompt": "A soft product reveal with gentle camera orbit",
  "n": 1,
  "seconds": 5,
  "resolution": "1080p",
  "providerOptions": {
    "aspect_ratio": "16:9",
    "action": "text-to-video"
  }
}),
});

if (!response.ok) {
  throw new Error(await response.text());
}

const task = await response.json();
console.log(task.id);
go
package main

import (
  "bytes"
  "fmt"
  "io"
  "net/http"
  "os"
)

func main() {
  body := []byte(`{
  "model": "happyhorse-1.1",
  "prompt": "A soft product reveal with gentle camera orbit",
  "n": 1,
  "seconds": 5,
  "resolution": "1080p",
  "providerOptions": {
    "aspect_ratio": "16:9",
    "action": "text-to-video"
  }
}`)

  req, err := http.NewRequest(
    "POST",
    "https://api.pixapi.ai/v1/async/videos/generations",
    bytes.NewBuffer(body),
  )
  if err != nil {
    panic(err)
  }
  req.Header.Set("Authorization", "Bearer "+os.Getenv("PIXAPI_KEY"))
  req.Header.Set("Content-Type", "application/json")

  resp, err := http.DefaultClient.Do(req)
  if err != nil {
    panic(err)
  }
  defer resp.Body.Close()

  result, _ := io.ReadAll(resp.Body)
  fmt.Println(string(result))
}

Response ​

Pixapi returns a submitted task. Poll GET /v1/tasks/{id} for the final result.