Kling 4.0

Generate 3–30 second videos at 720p or 1080p from text, ordered first/middle/last frames, or image, video and voice references.

Cost

from 11 tokens/s

VideoProvider: Kie

Try Kling 4.0 in Givon AI

Open a working project for regular creation, or use Playground to inspect the model parameters.

Use through API

Request fields, constraints, and ready-to-use examples for developers. The user workflow starts above.

Run generation
IDEMPOTENCY_KEY="${IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.givon.ai/api/v1/generations \
  -H "Authorization: Bearer $GIVON_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"video","model":"kling-4.0","input":{"prompt":"cinematic drone shot over a city at night","mode":"create","aspectRatio":"auto","resolution":"720p","duration":5,"referenceAssetUris":["asset://asset_..."]}}'

Input fields

* required
modemode
Type
string
Default
create
Allowed
create, reference
prompt*prompt

Generation prompt describing the scene, action and direction.

Type
string
Default
—
Allowed
up to 10000 chars
aspectRatioaspectRatio
Type
string
Default
auto
Allowed
auto, 16:9, 9:16, 1:1, 21:9, adaptive
resolutionresolution
Type
string
Default
720p
Allowed
720p, 1080p
durationduration
Type
number
Default
5
Allowed
3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
Start imagestartImage

Asset input for the startImage slot.

Type
string
Default
—
Allowed
image · asset, https, data
End imageendImage

Asset input for the endImage slot.

Type
string
Default
—
Allowed
image · asset, https, data
Reference videoreferenceVideo

Asset input for the referenceVideo slot.

Type
string
Default
—
Allowed
video · asset, https, data
Reference video 2referenceVideo2

Asset input for the referenceVideo2 slot.

Type
string
Default
—
Allowed
video · asset, https, data
Reference video 3referenceVideo3

Asset input for the referenceVideo3 slot.

Type
string
Default
—
Allowed
video · asset, https, data
Reference video 4referenceVideo4

Asset input for the referenceVideo4 slot.

Type
string
Default
—
Allowed
video · asset, https, data
Reference video 5referenceVideo5

Asset input for the referenceVideo5 slot.

Type
string
Default
—
Allowed
video · asset, https, data
Reference audioreferenceAudio

Asset input for the referenceAudio slot.

Type
string
Default
—
Allowed
voiceover · asset, https, data
Reference audio 2referenceAudio2

Asset input for the referenceAudio2 slot.

Type
string
Default
—
Allowed
voiceover · asset, https, data
Reference audio 3referenceAudio3

Asset input for the referenceAudio3 slot.

Type
string
Default
—
Allowed
voiceover · asset, https, data
Reference imagesreferenceAssetUris

Optional reference assets as asset:// URIs, HTTPS URLs, or data URIs. The item limit applies to physical references after repeated owned asset identities and identities already bound to video slots are excluded. URL entries remain distinct; every supplied item is validated.

Type
array
Default
—
Allowed
image · up to 10 · asset, https, data
providerOptionsproviderOptions
Type
object
Default
—
Allowed
object

Cost

from 11 tokens/s
720p12 tk/s
1080p17.5 tk/s
720pdefault11 tk/s
1080p16 tk/s
720p11 tk/s
1080p16 tk/s

The variant is selected automatically from request fields, so you do not need to send it.

Capabilities

Modestext_to_videoimage_to_videovideo_reference
Asset slotsstartImage:imageendImage:imagereferenceVideo:videoreferenceVideo2:videoreferenceVideo3:videoreferenceVideo4:videoreferenceVideo5:videoreferenceAudio:voiceoverreferenceAudio2:voiceoverreferenceAudio3:voiceoverreferenceAssetUris:image[]<=15
Get API key

Where to use this model