Topaz Video Upscaler API-integratie
Gebruik Topaz Video Upscaler via Rivya Public API v1 met model-id topaz-video-upscale, ondersteunde inputs, parameters, Files API-regels, credits en responsevoorbeelden.
topaz-video-upscale
file
Vereist voor referentiemodi
per_input_second · 1x_or_2x=8 · 4x=14 · ⌈total⌉
Video
METERED
Geen gedocumenteerde promptlimiet
Requestcontract
Stuur de model-id op topniveau. Modelspecifieke controles horen in params.
| Key | Type | Vereist | Standaard | Beschrijving |
|---|---|---|---|---|
| model | string | Ja | topaz-video-upscale | Gebruik de API-model-id topaz-video-upscale. |
| prompt | string | Nee | - | Prompttekst voor modellen die tekstinput ondersteunen. |
| 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 |
|---|---|---|---|---|---|---|
| upscale_factor | select | Nee | 2 | - | 1, 2, 4 | Schaalfactor |
Uploadbeleid
Upload eerst referentiebestanden en plaats daarna de teruggegeven URL en duration token in params.referenceMediaItems.
Bronvideo: Rivya accepteert één MP4-, MOV- of MKV-bestand tot 10MB; de upstream-interface staat 50MB toe, dus Rivya hanteert de strengere limiet.
1
video
Video- en audioreferenties moeten durationToken uit /api/v1/files bevatten wanneer duurverificatie vereist is.
| kind | Max. grootte | MIME-types |
|---|---|---|
| video | 10 MB | video/mp4, video/quicktime, video/x-matroska |
Minimale request
{
"model": "topaz-video-upscale",
"params": {
"upscale_factor": "2"
}
}Request met referentiebestand
{
"model": "topaz-video-upscale",
"params": {
"upscale_factor": "2",
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-video.mp4",
"kind": "video",
"name": "reference-video.mp4",
"mimeType": "video/mp4",
"durationSeconds": 8,
"durationToken": "video_duration_token_from_files_api"
}
]
}
}Create-response
Het create-endpoint geeft een publieke taak-id terug. Poll het statusendpoint totdat de taak slaagt of mislukt.
{
"id": "task_topaz_video_upscale_example",
"status": "queued",
"model": "topaz-video-upscale",
"reserved_credits": 8,
"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.
