Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Kling Video O1 V2V. Feature video requires audio=off. Duration enum is 3-10 (first-frame-only 5/10 rule applies to the I2V slice, not V2V).

prompt
string
required

Video generation prompt.

Required string length: 1 - 2500
Example:

"Transform the source clip into a cinematic sci-fi sequence"

videos
string[]
required

Required reference video list (max 1). Flat URL maps to base video by default.

Required array length: 1 element

Reference video URL or Base64 string.

Minimum string length: 1
images
string[]

Optional reference image list (first/last/refer frames flattened as URLs). Max 4 when a reference video is present.

Required array length: 1 - 4 elements

Reference image URL or Base64 string.

Minimum string length: 1
audio
enum<string>
default:off

Whether to generate audio. Official O1 settings.audio: original | off. Feature video requires off.

Available options:
original,
off
Example:

"off"

resolution
enum<string>
default:720p

Output video resolution.

Available options:
720p,
1080p
Example:

"1080p"

aspect_ratio
enum<string>
default:16:9

Video aspect ratio. Optional when a reference video is provided.

Available options:
16:9,
9:16,
1:1
Example:

"16:9"

duration
enum<integer>
default:5

Video duration in seconds (3-10). Not further restricted when a reference video is provided.

Available options:
3,
4,
5,
6,
7,
8,
9,
10
Example:

5

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.