Rivya AI-docs
Model-API-pagina's

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.

Beschikbaar via APITekst of URL gereed; referentiemodi gebruiken Files APIVideo
API-model-id

wan-2-6

Inputs

text, file

Files API

Vereist voor referentiemodi

Basiscredits

per_video · 720p_5=70 · 720p_10=140 · 720p_15=210 · 1080p_5=104.5 · 1080p_10=209.5 · 1080p_15=315 · ⌈total⌉

Mogelijkheid

Video

Facturering

FIXED

Promptlimiet

5000 tekens

Requestcontract

Stuur de model-id op topniveau. Modelspecifieke controles horen in params.

KeyTypeVereistStandaardBeschrijving
modelstringJawan-2-6Gebruik de API-model-id wan-2-6.
promptstringJa-Maximaal 5000 tekens voor dit model.
paramsobjectNee-Modelspecifiek parameterobject. Gebruik de rijen hieronder voor toegestane keys.
client_request_idstringNee-Optionele client-side id voor requesttracing in je systeem.

Modelparameters

KeyTypeVereistStandaardBereikOptiesBeschrijving
resolutionselectNee1080p-720p, 1080pResolutie
durationselectNee5-5, 10, 15Duur
multi_shotsselectNeefalse-false, trueShotmodus
nsfw_checkerselectNeetrue-false, trueContentfilter

Uploadbeleid

Upload eerst referentiebestanden en plaats daarna de teruggegeven URL en duration token in params.referenceMediaItems.

Referentieregel

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).

Max. bestanden

3

Geaccepteerde bestandstypen

image, video

Duurtoken

Video- en audioreferenties moeten durationToken uit /api/v1/files bevatten wanneer duurverificatie vereist is.

kindMax. grootteMIME-types
image10 MBimage/jpeg, image/png, image/webp
video10 MBvideo/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.