HappyHorse 1.1 API-integratie
Gebruik HappyHorse 1.1 via Rivya Public API v1 met model-id happyhorse-1-1, ondersteunde inputs, parameters, Files API-regels, credits en responsevoorbeelden.
happyhorse-1-1
text, file
Vereist voor referentiemodi
per_output_second · 720p=22.5 · 1080p=29 · ⌈total⌉
Video
METERED
5000 tekens
Requestcontract
Stuur de model-id op topniveau. Modelspecifieke controles horen in params.
| Key | Type | Vereist | Standaard | Beschrijving |
|---|---|---|---|---|
| model | string | Ja | happyhorse-1-1 | Gebruik de API-model-id happyhorse-1-1. |
| prompt | string | Nee | - | Maximaal 5000 tekens voor dit model. |
| params | object | Nee | - | Modelspecifiek parameterobject. Gebruik de rijen hieronder voor toegestane keys. |
| client_request_id | string | Nee | - | Optionele client-side id voor requesttracing in je systeem. |
Modelparameters
| Key | Type | Vereist | Standaard | Bereik | Opties | Beschrijving |
|---|---|---|---|---|---|---|
| resolution | select | Nee | 1080p | - | 720p, 1080p | De gekozen resolutie bepaalt het credittarief per seconde. |
| aspect_ratio | select | Nee | 16:9 | - | 16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, 21:9 | Gebruikt voor runs met alleen een prompt en meerdere referenties; een run met één afbeelding volgt het eerste frame. |
| duration | number | Nee | 5 | min 3 / max 15 / step 1 | - | Kies een gehele uitvoerduur van 3 tot 15 seconden. |
Uploadbeleid
Upload eerst referentiebestanden en plaats daarna de teruggegeven URL en duration token in params.referenceMediaItems.
Eerste frame of referentieafbeeldingen: Upload één JPEG-, PNG- of WebP-afbeelding voor eerste-frame-animatie of 2 tot 9 afbeeldingen voor referentiegestuurde video. Elk bestand mag maximaal 20 MB zijn.
9
image
Video- en audioreferenties moeten durationToken uit /api/v1/files bevatten wanneer duurverificatie vereist is.
| kind | Max. grootte | MIME-types |
|---|---|---|
| image | 20 MB | image/jpeg, image/png, image/webp |
Minimale request
{
"model": "happyhorse-1-1",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 5
}
}Request met referentiebestand
{
"model": "happyhorse-1-1",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 5,
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-image.png",
"kind": "image",
"name": "reference-image.png",
"mimeType": "image/png",
"width": 1024,
"height": 1024,
"sizeBytes": 1048576,
"imageDimensionsToken": "image_dimensions_token_from_original_files_api_upload_response"
}
]
}
}Create-response
Het create-endpoint geeft een publieke taak-id terug. Poll het statusendpoint totdat de taak slaagt of mislukt.
{
"id": "task_happyhorse_1_1_example",
"status": "queued",
"model": "happyhorse-1-1",
"reserved_credits": 145,
"final_credits": 0,
"settlement_status": "RESERVED",
"created_at": "2026-05-11T00:00:00.000Z",
"updated_at": "2026-05-11T00:00:00.000Z",
"result": null,
"error": null
}Veelvoorkomende fouten
validation_failed, insufficient_credits, idempotency_conflict, rate_limited, not_found
Sommige modi vereisen referentie-uploads via Files API.