Async processing mode — submit a request and receive a task ID. Use the Query Task Status endpoint to retrieve generation results. Video links are valid for 24 hours.
cURL
Python
JavaScript
Go
Java
curl -X POST https://qingbo.dev/v1/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-v2-master",
"action": "generate",
"prompt": "一条锦鲤在清澈的池塘中游动,水面波光粼粼",
"aspect_ratio": "16:9",
"duration": 5,
"extra": {
"mode": "pro"
}
}'
{
"task_id" : "task-wave1775285160b950328499" ,
"model" : "kling-v2-master" ,
"action" : "generate" ,
"status" : "queued" ,
"created_at" : 1775285160040 ,
"progress" : 0
}
Available Models
Model ID Description kling-v3Kling V3, supports 3-15 seconds, multi-shot, native audio kling-v2-masterKling V2 Master kling-v1-6Kling V1.6, supports camera control kling-v1Kling V1
Common Parameters
Video description text, maximum 2500 characters
Aspect ratio: 16:9, 9:16, 1:1 Ignored for image-to-video; aspect ratio is determined by the input image
Video duration (seconds): 5, 10
Content you do not want to appear, maximum 2500 characters. V1 / V1.6 only
Reference image URL (first frame) for image-to-video. JPEG/PNG/WebP, up to 10MB
Last frame image URL, requires image_urls
Additional parameters passed through to Kling (see model tabs)
Model-Specific Parameters
Kling V3
Kling V2 Master
Kling V1.6
Kling V1
duration range: 3-15 secondsGeneration mode: std (720P) or pro (1080P)
Native audio generation, enabled by default
Multi-shot mode: Supports 2-6 shot segment generation using shot_N_prompt + shot_N_duration instead of prompt + duration: "extra" : {
"shot_1_prompt" : "特写:一杯咖啡在桌上冒着热气" ,
"shot_1_duration" : 5 ,
"shot_2_prompt" : "镜头拉远,展示整个咖啡馆的场景" ,
"shot_2_duration" : 5
}
Total duration across all shots must be within the 3-15 second range. Generation mode: std (720P, faster) or pro (1080P, higher quality)
V2 does not support negative_prompt, cfg_scale, or camera_control.
Generation mode: std or pro
Creativity control, range 0-1. Higher values adhere more closely to the prompt
Camera motion control type options: down_back (descend backward), forward_up (advance upward), right_turn_forward (right turn forward), left_turn_forward (left turn forward)
Set type: "simple" and control six-axis motion precisely via config (range -10 to 10):
horizontal — X translation, negative for left, positive for right
vertical — Y translation, negative for down, positive for up
pan — X rotation, negative for down tilt, positive for up tilt
tilt — Y rotation, negative for left turn, positive for right turn
roll — Z rotation, negative for counterclockwise, positive for clockwise
zoom — Focal length, negative for zoom in, positive for zoom out
Static mask image URL (PNG), defines areas that remain stationary. Image-to-video only
Dynamic mask array (up to 6), defines areas that move along trajectories. Image-to-video only Mask image URL (PNG with alpha)
Trajectory coordinate point array, each point contains x and y coordinates, 2-77 points
Generation mode: std or pro
Creativity control, range 0-1
Generation Modes
Mode Parameters Description Text-to-video promptPure text generation Image-to-video prompt + image_urls (1 image)First frame image + text description First/Last frame image_urls (1 image) + last_frameTransition between start and end frames
For image-to-video, aspect_ratio is determined by the input image and does not need to be specified.
Response
Creation time (Unix millisecond timestamp)