Wan 2.6 API-integratie
Gebruik Wan 2.6 via Rivya Public API v1 met model-id wan-2-6, ondersteunde inputs, parameters, Files API-regels, credits en responsevoorbeelden.
wan-2-6
text, file
Vereist voor referentiemodi
per_video · 720p_5=70 · 720p_10=140 · 720p_15=210 · 1080p_5=104.5 · 1080p_10=209.5 · 1080p_15=315 · ⌈total⌉
Video
FIXED
5000 tekens
Requestcontract
Stuur de model-id op topniveau. Modelspecifieke controles horen in params.
| Key | Type | Vereist | Standaard | Beschrijving |
|---|---|---|---|---|
| model | string | Ja | wan-2-6 | Gebruik de API-model-id wan-2-6. |
| prompt | string | Ja | - | 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 | Resolutie |
| duration | select | Nee | 5 | - | 5, 10, 15 | Duur |
| multi_shots | select | Nee | false | - | false, true | Shotmodus |
| nsfw_checker | select | Nee | true | - | false, true | Contentfilter |
Uploadbeleid
Upload eerst referentiebestanden en plaats daarna de teruggegeven URL en duration token in params.referenceMediaItems.
Referentiemedia: Gebruik precies 1 JPG/PNG/WebP-afbeelding (minimaal 256×256, maximaal 10 MB) of 1–3 MP4/MOV-video’s (maximaal 10 MB per bestand).
3
image, video
Video- en audioreferenties moeten durationToken uit /api/v1/files bevatten wanneer duurverificatie vereist is.
| kind | Max. grootte | MIME-types |
|---|---|---|
| image | 10 MB | image/jpeg, image/png, image/webp |
| video | 10 MB | video/mp4, video/quicktime |
Minimale request
{
"model": "wan-2-6",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "1080p",
"duration": "5",
"multi_shots": "false",
"nsfw_checker": "true"
}
}Request met referentiebestand
{
"model": "wan-2-6",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "1080p",
"duration": "5",
"multi_shots": "false",
"nsfw_checker": "true",
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-video-1.mp4",
"kind": "video",
"name": "reference-video-1.mp4",
"mimeType": "video/mp4",
"durationSeconds": 8,
"durationToken": "video_duration_token_1_from_files_api",
"width": 1280,
"height": 720,
"sizeBytes": 8388608,
"framesPerSecond": 30,
"videoBitrateMbps": 8,
"videoMetadataToken": "video_metadata_token_1_from_files_api"
},
{
"url": "https://cdn.example.com/reference-video-2.mp4",
"kind": "video",
"name": "reference-video-2.mp4",
"mimeType": "video/mp4",
"durationSeconds": 8,
"durationToken": "video_duration_token_2_from_files_api",
"width": 1280,
"height": 720,
"sizeBytes": 8388608,
"framesPerSecond": 30,
"videoBitrateMbps": 8,
"videoMetadataToken": "video_metadata_token_2_from_files_api"
},
{
"url": "https://cdn.example.com/reference-video-3.mp4",
"kind": "video",
"name": "reference-video-3.mp4",
"mimeType": "video/mp4",
"durationSeconds": 8,
"durationToken": "video_duration_token_3_from_files_api",
"width": 1280,
"height": 720,
"sizeBytes": 8388608,
"framesPerSecond": 30,
"videoBitrateMbps": 8,
"videoMetadataToken": "video_metadata_token_3_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_wan_2_6_example",
"status": "queued",
"model": "wan-2-6",
"reserved_credits": 105,
"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.
