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.

720p3 to 20 sFirst frameUp to 15 references

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

modelstringDefault kling-4.0-flash
Model ID, same as the official one
promptstring
What to generate.
aspect_ratiostringDefault 16:9
21:9, 16:9, 9:16, 1:1, 4:3, 3:4
resolutionstringDefault 720p
720p
secondsintegerDefault 10
3 to 20
audiobooleanDefault true
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/videos returns the video's id straight away. Its status moves from queued to in_progress to completed, failed or expired.
  • Read it with GET /v1/videos/{id} until it ends; a completed video carries its url.
  • Result files are kept for 7 days. Save the file to your own storage.

Pricing

ModelSettingPriceBilled forDiscount
Kling 4.0 FlashNo reference video · 720p$0.0940/sOutput videoOutput video
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