Skip to main content
POST
Kling 4.0 Flash T2V

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Kling 4.0 Flash T2V request.

prompt
string
required

Required non-whitespace prompt. Up to 26,000 English characters or 11,000 non-English characters. Mixed prompts must satisfy English/26000 + non-English/11000 <= 1.

Required string length: 1 - 26000
Example:

"A cat walks through a sunlit garden."

duration
integer

Optional output duration in seconds (3-20). When omitted, duration is inferred from the prompt and inputs. Final billing uses the output duration reported for the completed task.

Required range: 3 <= x <= 20
Example:

5

resolution
enum<string>
default:720p

Output resolution. 720p is native; 1080p, 2k and 4k are upscaled outputs.

Available options:
720p,
1080p,
2k,
4k
aspect_ratio
enum<string>
default:16:9

Output aspect ratio. Defaults to 16:9.

Available options:
21:9,
16:9,
9:16,
1:1

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.