Appearance
HappyHorse
HappyHorse 1.1 supports generation from text, first-frame images, or reference images.
API surface
| Operation | Endpoint | Mode |
|---|---|---|
| Video generation task | POST /v1/async/videos/generations | Async only |
Models
| Model id | Notes |
|---|---|
happyhorse-1.1 | Text, 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.
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | happyhorse-1.1 |
prompt | string | Yes | Describe subjects, actions, camera motion, and style; 1–2,000 characters on Pixapi. |
seconds | integer | Yes | Integer 3–15 seconds; explicitly required. |
resolution | string | No | 720p / 1080p. Pixapi default: 1080p. |
n | integer | No | Default 1; only integer 1 is supported. |
image | string / string[] | No | Reference 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. |
providerOptions | object | No | Model-specific options; see the table below. |
providerOptions
All fields in this table are nested inside providerOptions, not alongside model.
| Field | Type | Description |
|---|---|---|
aspect_ratio | string | 16:9, 9:16, 1:1, 4:3, 3:4. Default 16:9; image-to-video follows the input image ratio. |
action | string | Choose text-to-video, image-to-video, or reference-to-video for the corresponding input mode. |
first_frame_image | string | Public first-frame image URL; do not combine with reference images. |
seed | integer | Random seed, 0–2147483647; omitted means random. The same seed does not guarantee identical output. |
watermark | boolean | Add a visible AI watermark. Default false. |
nsfw_check | boolean | Optional 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.
