Rivya AI-docs
Model-API-pagina's

Kling 3.0 API-integratie

Gebruik Kling 3.0 via Rivya Public API v1 met model-id kling-3-0, ondersteunde inputs, parameters, Files API-regels, credits en responsevoorbeelden.

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

kling-3-0

Inputs

text, file

Files API

Vereist voor referentiemodi

Basiscredits

90

Mogelijkheid

Video

Facturering

FIXED

Promptlimiet

2000 tekens

Requestcontract

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

KeyTypeVereistStandaardBeschrijving
modelstringJakling-3-0Gebruik de API-model-id kling-3-0.
promptstringJa-Maximaal 2000 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
modeselectNeepro-std, proGeneratiemodus
multi_shotsselectNeefalse-false, trueShotmodus
durationselectNee5-3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Duur
soundselectNeefalse-false, trueAudio genereren
aspect_ratioselectNee16:9-16:9, 9:16, 1:1Beeldverhouding

Uploadbeleid

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

Referentieregel

Referentiemedia: Upload maximaal 2 beeldbestanden in totaal voor image-to-video projecten.

Max. bestanden

2

Geaccepteerde bestandstypen

image

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

Minimale request

{
  "model": "kling-3-0",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "mode": "pro",
    "multi_shots": "false",
    "duration": "5",
    "sound": "false",
    "aspect_ratio": "16:9"
  }
}

Request met referentiebestand

{
  "model": "kling-3-0",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "mode": "pro",
    "multi_shots": "false",
    "duration": "5",
    "sound": "false",
    "aspect_ratio": "16:9",
    "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_3_0_example",
  "status": "queued",
  "model": "kling-3-0",
  "reserved_credits": 90,
  "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.