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
70
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 | 720p | - | 720p, 1080p | Resolutie |
| duration | select | Nee | 5 | - | 5, 10, 15 | Duur |
Uploadbeleid
Upload eerst referentiebestanden en plaats daarna de teruggegeven URL en duration token in params.referenceMediaItems.
Referentiemedia: Upload maximaal 1 afbeeldings- of videobestand voor afbeeldings- of videoprojecten.
1
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, video/x-matroska |
Minimale request
{
"model": "wan-2-6",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "720p",
"duration": "5"
}
}Request met referentiebestand
{
"model": "wan-2-6",
"prompt": "A cinematic product reveal with smooth camera movement",
"params": {
"resolution": "720p",
"duration": "5",
"referenceMediaItems": [
{
"url": "https://cdn.example.com/reference-image.png",
"kind": "image",
"name": "reference-image.png",
"mimeType": "image/png"
}
]
}
}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": 70,
"final_credits": 0,
"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.