Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYVideo generation model name
"kling-o1-video-edit"
Prompt describing how to edit the video
5000"Make the video more cinematic"
Original video URL list for editing
Note:
1 video per request3 to 10 seconds (videos under 3 seconds are billed as 3 seconds, videos over 10 seconds are billed as 10 seconds)100MB.mp4, .mov1 element["https://example.com/video.mp4"]Reference image URL list for specifying editing effect
Note:
4 reference images per request10MB.jpg, .jpeg, .png, .webp1 - 4 elements["https://example.com/reference.jpg"]Video aspect ratio
Options:
16:9: Landscape video9:16: Portrait video1:1: Square video16:9, 9:16, 1:1 "16:9"
Whether to keep the original video sound
Options:
true: Keep the original video soundfalse: Do not keep the original video soundtrue
HTTPS callback URL for task completion
Callback Timing:
Security Restrictions:
2048 charactersCallback Mechanism:
10 seconds3 retries after failure (at 1/2/4 seconds after failure)"https://your-domain.com/webhooks/video-task-completed"
Video generation task created successfully
Task creation timestamp
1757169743
Task ID
"task-unified-1757169743-7cvnl5zw"
Actual model name used
"kling-o1-video-edit"
Task type
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Video task details
Task output type
text, image, audio, video "video"
Usage and billing information