Kling Video

Kling 3

Video Generation using Kling 3.0, 720p, 1080p and 4K

post/v2/generation/kling-3

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

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

If no image selected, aspect ratio is required

duration'3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' required
promptstring
multiShot'auto' | 'manual' required
startImagestring

Optional, if not passed, it'll be Text to Video - Required when multi shot is set to 'manual'

endImagestring

Optional, if passed, start image must be passed too

quality'720' | '1080' | '4K' required

Example request

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

Response

Response for status 200

genIdstring required

Changes

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