UlazAI udviklerdokumenter
HappyHorse video API
HappyHorse reference
HappyHorse-dokumenter til T2V, I2V, reference-til-video og videoredigering
Brug POST /api/v1/video-studio/generate/ med en af disse modelsnegle:
happyhorse_t2v, happyhorse_i2v, happyhorse_r2v,
eller happyhorse_videoedit. Alle HappyHorse-tilstande understøtter 3-15 sekunders klip,
720p eller 1080p, og Video Studio status workflow.
Kerneendepunkter
POST /api/v1/video-studio/generate/
GET /api/v1/video-studio/status/{job_id}/
GET /api/v1/video-studio/history/
Prissætning
720p: 33 kredit per sekund
1080p: 44 kredit per sekund
Minimumsanmodning: 3 sekunder
Mode-specifikke valideringsregler
| Modelsnegl | Mode | Varighed | Påkrævet input |
|---|---|---|---|
happyhorse_t2v |
Tekst til video | 3-15 sekunder | Kun Prompt. Referencemedieinput afvises. |
happyhorse_i2v |
Billede til video | 3-15 sekunder | Kræver input_image_urls. Op til to billedwebadresser accepteres. |
happyhorse_r2v |
Reference til video | 3-15 sekunder | Kræver input_image_urls. Op til ni referencebilleder accepteres. |
happyhorse_videoedit |
Videoredigering | 3-15 sekunder | Kræver mindst én input_video_urls værdi. |
Anmod om uddrag
Tekst til 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"
}
Billede til 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"
}
Reference til 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"
}