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

70

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
resolutionselectNee720p-720p, 1080pResolutie
durationselectNee5-5, 10, 15Duur

Uploadbeleid

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

Referentieregel

Referentiemedia: Upload maximaal 1 afbeeldings- of videobestand voor afbeeldings- of videoprojecten.

Max. bestanden

1

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