UlazAI utvecklardokument
HappyHorse video API
HappyHorse referens
HappyHorse-dokument för T2V, I2V, referens-till-video och videoredigering
Använd POST /api/v1/video-studio/generate/ med en av dessa modellsniglar:
happyhorse_t2v, happyhorse_i2v, happyhorse_r2v,
eller happyhorse_videoedit. Alla HappyHorse-lägen stöder 3-15 sekunders klipp,
720p eller 1080p, och Video Studios statusarbetsflöde.
Kärnslutpunkter
POST /api/v1/video-studio/generate/
GET /api/v1/video-studio/status/{job_id}/
GET /api/v1/video-studio/history/
Prissättning
720p: 33 krediter per sekund
1080p: 44 krediter per sekund
Minsta begäran: 3 sekunder
Lägesspecifika valideringsregler
| Modellsnigel | Läge | Varaktighet | Obligatorisk input |
|---|---|---|---|
happyhorse_t2v |
Text till video | 3-15 sekunder | Endast Prompt. Referensmediaingångar avvisas. |
happyhorse_i2v |
Bild till video | 3-15 sekunder | Kräver input_image_urls. Upp till två bildadresser accepteras. |
happyhorse_r2v |
Referens till video | 3-15 sekunder | Kräver input_image_urls. Upp till nio referensbilder accepteras. |
happyhorse_videoedit |
Videoredigering | 3-15 sekunder | Kräver minst en input_video_urls värde. |
Begär utdrag
Text till video
{
"model_slug": "happyhorse_t2v",
"prompt": "A miniature cardboard city wakes up at night as tiny lights turn on one by one",
"duration_seconds": 5,
"quality_mode": "1080p",
"aspect_ratio": "16:9"
}
Bild till video
{
"model_slug": "happyhorse_i2v",
"prompt": "Animate the reference into a premium cinematic product reveal with a slow push-in",
"input_image_urls": ["https://media.ulazai.com/examples/product-reference.jpg"],
"duration_seconds": 5,
"quality_mode": "1080p",
"aspect_ratio": "16:9"
}
Referens till video
{
"model_slug": "happyhorse_r2v",
"prompt": "Keep the same character identity and build a short cinematic action beat",
"input_image_urls": ["https://media.ulazai.com/examples/character-reference.jpg"],
"duration_seconds": 8,
"quality_mode": "720p",
"aspect_ratio": "9:16"
}
Videoredigering
{
"model_slug": "happyhorse_videoedit",
"prompt": "Regrade the source clip with brighter highlights and smooth commercial motion",
"input_video_urls": ["https://media.ulazai.com/examples/source-video.mp4"],
"duration_seconds": 8,
"quality_mode": "720p"
}