Video

Kling 4.0 Flash

Changed on

Faster Kling 4.0 tier with up to 20s outputs at 720p.

post/generate/video/kling/kling-4-flash

Request

Headers

X-Webhook-URLstring uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results. Deliveries are signed with Ed25519 (EdDSA); verify them with the keys at https://api.krea.ai/.well-known/jwks.json (see X-Krea-Webhook-* headers). Treat requests without these headers as unauthenticated.

Request body

promptstring required
start_imagestring uri nullable

Can be an external URL, base64 data URI, or uploaded asset URL.

aspect_ratio'16:9' | '9:16' | '1:1' | '21:9'
resolution'720p'
durationinteger
reference_imagesstring[]
reference_videosstring[]
edit_videostring uri

Can be an external URL, base64 data URI, or uploaded asset URL.

Response

The resulting job data. This will be returned in a pending state until the job is completed. See /jobs/{id} for retrieving the results.

job_idstring uuid required
status'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'completed' | 'failed' | 'cancelled' required
created_atstring date-time required
completed_atunknown required
resultunknown required
progressnumber nullable

Changes