Naar inhoud

UlazAI ontwikkelaarsdocumentatie

HappyHorse-video API

HappyHorse-referentie

HappyHorse-documentatie voor T2V, I2V, referentie-naar-video en videobewerking

Gebruik POST /api/v1/video-studio/generate/ met een van deze model naaktslakken: happyhorse_t2v, happyhorse_i2v, happyhorse_r2v, of happyhorse_videoedit. Alle HappyHorse-modi ondersteunen clips van 3-15 seconden, 720p of 1080pen de statusworkflow van Video Studio.

Kerneindpunten

POST /api/v1/video-studio/generate/

GET /api/v1/video-studio/status/{job_id}/

GET /api/v1/video-studio/history/

Prijzen

720p: 33 credits per seconde

1080p: 44 credits per seconde

Minimale aanvraag: 3 seconden

Modusspecifieke validatieregels

Model slak Modus Duur Vereiste invoer
happyhorse_t2v Tekst naar video 3-15 seconden Alleen Prompt. Referentiemedia-invoer wordt afgewezen.
happyhorse_i2v Afbeelding naar video 3-15 seconden Vereist input_image_urls. Er worden maximaal twee afbeeldings-URL's geaccepteerd.
happyhorse_r2v Verwijzing naar video 3-15 seconden Vereist input_image_urls. Er worden maximaal negen referentiebeelden geaccepteerd.
happyhorse_videoedit Videobewerking 3-15 seconden Vereist minstens één input_video_urls waarde.

Fragmenten opvragen

Tekst naar 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"
}

Afbeelding naar 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"
}

Verwijzing naar 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"
}

Videobewerking

{
  "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"
}

Gerelateerde documenten