Kling 4.0 APINew
$0.2350/s
Kling’s newest video model: long native takes, dynamic motion and omni reference, with precise control over the story’s beats. 720p to 4K, in SDR or HDR.
Call Kling 4.0
The request below mirrors the Playground tab. Change a setting there and this code follows. You need a key first: create an API key.
curl -X POST https://api.letsfliq.com/v1/videos \ -H "Authorization: Bearer $FLIQ_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "kling-4.0", "prompt": "A lone cyclist crosses a rain-soaked city bridge at dawn, the camera tracking alongside as the sky turns gold", "aspect_ratio": "16:9", "resolution": "1080p", "seconds": 10, "audio": true, "dynamic_range": "sdr" }'
Parameters
modelstringDefaultkling-4.0- Model ID, same as the official one
promptstring- What to generate.
aspect_ratiostringDefault16:9- 21:9, 16:9, 9:16, 1:1, 4:3, 3:4
resolutionstringDefault1080p- 720p, 1080p, 4K
secondsintegerDefault10- 3 to 30
audiobooleanDefaulttrue- true
dynamic_rangestringDefaultsdr- sdr, hdr
input_referencestring- One image file, as URLs
last_framestring- One image file, as URLs; needs input_reference
reference_imagesarray- Up to 10 image files, as URLs
reference_videosarray- Up to 5 video files, as URLs
Getting the result
POST /v1/videosreturns the video'sidstraight away. Itsstatusmoves fromqueuedtoin_progresstocompleted,failedorexpired.- Read it with
GET /v1/videos/{id}until it ends; a completed video carries itsurl. - Result files are kept for 7 days. Save the file to your own storage.
Pricing
ModelSettingPriceBilled forDiscount
Kling 4.0SDR · With reference video · 720p$0.0940/sOutput videoOutput video
Kling 4.0SDR · No reference video · 1080p$0.2350/sOutput videoOutput video
Kling 4.0HDR · No reference video · 1080p$0.2820/sOutput videoOutput video
Kling 4.0SDR · With reference video · 1080p$0.1410/sOutput videoOutput video
Kling 4.0HDR · With reference video · 1080p$0.1880/sOutput videoOutput video
Kling 4.0SDR · No reference video · 4K$0.5490/sOutput videoOutput video
Kling 4.0HDR · No reference video · 4K$0.6270/sOutput videoOutput video
Kling 4.0SDR · With reference video · 4K$0.3290/sOutput videoOutput video
Kling 4.0HDR · With reference video · 4K$0.4070/sOutput videoOutput video
Kling 4.0720p$0.0940/sInput videoBilled seconds: the longer of input and outputInput videoBilled seconds: the longer of input and output
Kling 4.01080p$0.1410/sInput videoBilled seconds: the longer of input and outputInput videoBilled seconds: the longer of input and output
Kling 4.04K$0.3290/sInput videoBilled seconds: the longer of input and outputInput videoBilled seconds: the longer of input and output