Kling 4.0
Видео по тексту, последовательности кадров или изображениям, видео и голосам в качестве референсов. 3–30 секунд, 720p и 1080p.
Стоимость
от 11 токенов/с
Попробовать Kling 4.0 в Givon AI
Открой рабочий проект для обычной генерации или Playground, чтобы проверить точные параметры модели.
Использовать через API
Поля запроса, ограничения и готовые примеры для разработчиков. Пользовательский запуск находится выше.
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":"кинематографичный пролёт дрона над ночным городом","mode":"create","aspectRatio":"auto","resolution":"720p","duration":5,"referenceAssetUris":["asset://asset_..."]}}'Входные поля
* — обязательное| Поле | Тип | По умолчанию | Допустимо |
|---|---|---|---|
mode mode | string | create | create, reference |
prompt* promptGeneration prompt describing the scene, action and direction. | string | — | до 10000 симв. |
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 · до 10 · asset, https, data |
providerOptions providerOptions | object | — | object |
mode- Тип
- string
- По умолчанию
- create
- Допустимо
- create, reference
promptGeneration prompt describing the scene, action and direction.
- Тип
- string
- По умолчанию
- —
- Допустимо
- до 10000 симв.
aspectRatio- Тип
- string
- По умолчанию
- auto
- Допустимо
- auto, 16:9, 9:16, 1:1, 21:9, adaptive
resolution- Тип
- string
- По умолчанию
- 720p
- Допустимо
- 720p, 1080p
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
startImageAsset input for the startImage slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- image · asset, https, data
endImageAsset input for the endImage slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- image · asset, https, data
referenceVideoAsset input for the referenceVideo slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- video · asset, https, data
referenceVideo2Asset input for the referenceVideo2 slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- video · asset, https, data
referenceVideo3Asset input for the referenceVideo3 slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- video · asset, https, data
referenceVideo4Asset input for the referenceVideo4 slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- video · asset, https, data
referenceVideo5Asset input for the referenceVideo5 slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- video · asset, https, data
referenceAudioAsset input for the referenceAudio slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- voiceover · asset, https, data
referenceAudio2Asset input for the referenceAudio2 slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- voiceover · asset, https, data
referenceAudio3Asset input for the referenceAudio3 slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- 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.
- Тип
- array
- По умолчанию
- —
- Допустимо
- image · до 10 · asset, https, data
providerOptions- Тип
- object
- По умолчанию
- —
- Допустимо
- object
Стоимость
от 11 токенов/сВариант подбирается по полям запроса автоматически — указывать его не нужно.
Возможности
text_to_videoimage_to_videovideo_referencestartImage:imageendImage:imagereferenceVideo:videoreferenceVideo2:videoreferenceVideo3:videoreferenceVideo4:videoreferenceVideo5:videoreferenceAudio:voiceoverreferenceAudio2:voiceoverreferenceAudio3:voiceoverreferenceAssetUris:image[]<=15