Rivya AI-docs
Model-API-pagina's

Kling O3 API-integratie

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

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

kling-o3

Inputs

text, file

Files API

Vereist voor referentiemodi

Basiscredits

per_output_second · 720p_without_audio=14 · 720p_with_audio=18 · 1080p_without_audio=18 · 1080p_with_audio=23 · 4k_without_audio=67 · 4k_with_audio=67 · ⌈total⌉

Mogelijkheid

Video

Facturering

METERED

Promptlimiet

3072 tekens

Requestcontract

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

KeyTypeVereistStandaardBeschrijving
modelstringJakling-o3Gebruik de API-model-id kling-o3.
promptstringJa-Maximaal 3072 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, 1080p, 4kGeneratiemodus
durationselectNee5-3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Duur
audioselectNeefalse-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

Minimale request

{
  "model": "kling-o3",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "resolution": "720p",
    "duration": "5",
    "audio": "false",
    "aspect_ratio": "16:9"
  }
}

Request met referentiebestand

{
  "model": "kling-o3",
  "prompt": "A cinematic product reveal with smooth camera movement",
  "params": {
    "resolution": "720p",
    "duration": "5",
    "audio": "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_o3_example",
  "status": "queued",
  "model": "kling-o3",
  "reserved_credits": 70,
  "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.