API Documentation

Kling

API documentation and implementation examples for the Kling model.

Part of the Video / Kling collection

API Endpoint

/v1/video/kling

Request Parameters

prompt(Required)string

Prompt for video generation

durationinteger

Duration of the video in seconds.

aspect_ratiostring

Aspect ratio for the generated video

Code Examples

Response Example

Response Fields

video(Required)object
urlstring

URL of the generated video

file_namestring

Name of the video file

file_sizeinteger

Size of the video file in bytes

content_typestring

Content type/MIME type of the video