Kling Video

Kling O3 Video Reference

Generate a new Video using Kling O3 Video Reference, 720p, 1080p or 4K

post/v2/generation/kling-o3-video-reference

Query parameters

webhookUrlstring

Your Webhook URL, if specified, the result of the generation will be POSTed to this URL.

demoMode'failure' | 'success'

This parameter is used when the api key mode is 'development', default value is 'success'.

when set to 'failure', the dummy generation will be 'failed' after a few seconds, if set to 'success', the dummy generation will be 'completed' after a few seconds.

Request body

promptstring required
quality'720' | '1080' | '4k' required
videostring required
imagesstring[]

An array of image names or download URLs - if you don't have a download URL, you can upload the file and get the file name from the /upload endpoint.

aspectRatio'1:1' | '16:9' | '9:16' required

Example request

{
  "prompt": "<your-prompt>",
  "images": [
    "image download URL - or file name obtained from /upload endpoint"
  ],
  "elements": [
    {
      "images": [
        "image download URL - or file name obtained from /upload endpoint"
      ]
    }
  ]
}

Response

Response for status 200

genIdstring required

Changes

Changed in 1 of the 8 revisions of this API.1