Kling 4.0 Flash API
$0.0940/s
A faster Kling 4.0 with greater value. Video from text, images or a reference video at 720p.
Call Kling 4.0 Flash
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-flash", "prompt": "A paper lantern drifts up into a night sky full of other lanterns, slow upward camera", "aspect_ratio": "16:9", "resolution": "720p", "seconds": 10, "audio": true }'
Parameters
modelstringDefaultkling-4.0-flash- 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
resolutionstringDefault720p- 720p
secondsintegerDefault10- 3 to 20
audiobooleanDefaulttrue- true
input_referencestring- One image file, as URLs
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.0 FlashWith reference video · 720p$0.0630/sOutput videoOutput video
Kling 4.0 Flash720p$0.0630/sInput videoBilled seconds: the longer of input and outputInput videoBilled seconds: the longer of input and output