Rivya AI-docs
Model-API-pagina's

Kling 2.6 motion-control API-integratie

Gebruik Kling 2.6 motion-control via Rivya Public API v1 met model-id kling-2-6-motion-control, ondersteunde inputs, parameters, Files API-regels, credits en responsevoorbeelden.

Beschikbaar via APIGereedheidVideo
API-model-id

kling-2-6-motion-control

Inputs

file

Files API

Vereist voor referentiemodi

Basiscredits

per_output_second · 720p=11 · 1080p=18 · ⌈total⌉

Mogelijkheid

Video

Facturering

METERED

Promptlimiet

2500 tekens

Requestcontract

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

KeyTypeVereistStandaardBeschrijving
modelstringJakling-2-6-motion-controlGebruik de API-model-id kling-2-6-motion-control.
promptstringJa-Maximaal 2500 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
modeselectNee720p-720p, 1080pOutputresolutie
character_orientationselectNeevideo-video, imageBepaalt of de oriëntatie van het karakter dichter bij de motion video of bij het referentiebeeld moet blijven.

Uploadbeleid

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

Referentieregel

Referentiebeeld + motion video: Upload exact 1 karakterbeeld en 1 motion clip. Beide moeten hoofd, schouders en torso duidelijk tonen.

Max. bestanden

2

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
video95 MBvideo/mp4, video/quicktime

Minimale request

{
  "model": "kling-2-6-motion-control",
  "params": {
    "mode": "720p",
    "character_orientation": "video"
  }
}

Request met referentiebestand

{
  "model": "kling-2-6-motion-control",
  "params": {
    "mode": "720p",
    "character_orientation": "video",
    "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_kling_2_6_motion_control_example",
  "status": "queued",
  "model": "kling-2-6-motion-control",
  "reserved_credits": 11,
  "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.