Kling Video V2
Generate video clips from your prompts using Kling 2.0 Master
Header parameters
AuthorizationstringRequiredExample:
sk-Qp03mnjjNqXKxpnw5qQ4IqVABNfad5YOk1axUhp7pJbokFmuBody
modelstringRequiredExample:
model is the model name
kling-video-v2-master-text-to-videopromptstringRequiredExample:
prompt is the prompt.
A cute baby sea otter.durationstring · enumOptionalDefault:
The duration of the generated video in seconds Default value: "5"
Possible enum values: 5, 10
5Example: 5Possible values: aspect_ratiostring · enumOptionalDefault:
The aspect ratio of the generated video frame Default value: "16:9"
Possible enum values: 16:9, 9:16, 1:1
16:9Example: 16:9Possible values: negative_promptstringOptionalDefault:
Default value: "blur, distort, and low quality"
blur, distort, and low qualityExample: blur, distort, and low qualitycfg_scalenumberOptionalDefault:
The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt. Default value: 0.5
0.5Example: 0.5output_formatstring · enumOptionalDefault:
output_format indicate the output format, default value is url.
urlExample: urlPossible values: Responses
200Success
application/json
post
/v1/videos/generationsPOST /v1/videos/generations HTTP/1.1
Host: video.onerouter.pro
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 235
{
"model": "kling-video-v2-master-text-to-video",
"prompt": "A cute baby sea otter.",
"duration": "5",
"aspect_ratio": "16:9",
"negative_prompt": "low resolution, error, worst quality, low quality, defects",
"cfg_scale": 0.5,
"output_format": "url"
}200Success
{
"data": [
{
"url": "https://resource.onerouter.pro/video/generated%2Fonerouter_eeb1c0a7-d706-451f-a0b3-0f8f5c8522be.mp4",
"revised_prompt": ""
}
],
"created": 1760447058
}