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
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.
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| Field | Type | Default | Allowed |
|---|---|---|---|
mode mode | string | create | create, reference |
prompt* promptGeneration prompt describing the scene, action and direction. | string | — | up to 10000 chars |
aspectRatio aspectRatio | string | auto | auto, 16:9, 9:16, 1:1, 21:9, adaptive |
resolution resolution | string | 720p | 720p, 1080p |
duration duration | number | 5 | 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 image startImageAsset input for the startImage slot. | string | — | image · asset, https, data |
End image endImageAsset input for the endImage slot. | string | — | image · asset, https, data |
Reference video referenceVideoAsset input for the referenceVideo slot. | string | — | video · asset, https, data |
Reference video 2 referenceVideo2Asset input for the referenceVideo2 slot. | string | — | video · asset, https, data |
Reference video 3 referenceVideo3Asset input for the referenceVideo3 slot. | string | — | video · asset, https, data |
Reference video 4 referenceVideo4Asset input for the referenceVideo4 slot. | string | — | video · asset, https, data |
Reference video 5 referenceVideo5Asset input for the referenceVideo5 slot. | string | — | video · asset, https, data |
Reference audio referenceAudioAsset input for the referenceAudio slot. | string | — | voiceover · asset, https, data |
Reference audio 2 referenceAudio2Asset input for the referenceAudio2 slot. | string | — | voiceover · asset, https, data |
Reference audio 3 referenceAudio3Asset input for the referenceAudio3 slot. | string | — | voiceover · asset, https, data |
Reference images referenceAssetUrisOptional 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. | array | — | image · up to 10 · asset, https, data |
providerOptions providerOptions | object | — | object |
mode- Type
- string
- Default
- create
- Allowed
- create, reference
promptGeneration prompt describing the scene, action and direction.
- Type
- string
- Default
- —
- Allowed
- up to 10000 chars
aspectRatio- Type
- string
- Default
- auto
- Allowed
- auto, 16:9, 9:16, 1:1, 21:9, adaptive
resolution- Type
- string
- Default
- 720p
- Allowed
- 720p, 1080p
duration- 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
startImageAsset input for the startImage slot.
- Type
- string
- Default
- —
- Allowed
- image · asset, https, data
endImageAsset input for the endImage slot.
- Type
- string
- Default
- —
- Allowed
- image · asset, https, data
referenceVideoAsset input for the referenceVideo slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
referenceVideo2Asset input for the referenceVideo2 slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
referenceVideo3Asset input for the referenceVideo3 slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
referenceVideo4Asset input for the referenceVideo4 slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
referenceVideo5Asset input for the referenceVideo5 slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
referenceAudioAsset input for the referenceAudio slot.
- Type
- string
- Default
- —
- Allowed
- voiceover · asset, https, data
referenceAudio2Asset input for the referenceAudio2 slot.
- Type
- string
- Default
- —
- Allowed
- voiceover · asset, https, data
referenceAudio3Asset input for the referenceAudio3 slot.
- Type
- string
- Default
- —
- Allowed
- voiceover · asset, https, data
referenceAssetUrisOptional 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
providerOptions- Type
- object
- Default
- —
- Allowed
- object
Cost
from 11 tokens/sThe variant is selected automatically from request fields, so you do not need to send it.
Capabilities
text_to_videoimage_to_videovideo_referencestartImage:imageendImage:imagereferenceVideo:videoreferenceVideo2:videoreferenceVideo3:videoreferenceVideo4:videoreferenceVideo5:videoreferenceAudio:voiceoverreferenceAudio2:voiceoverreferenceAudio3:voiceoverreferenceAssetUris:image[]<=15