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-o3-video-edit "kling-o3-video-edit"
Edit instruction, max 2500 characters. Required when multi_shot=false (default), when multi_shot=true each shot's content is provided via multi_prompt
Reference syntax: You can reference elements, images, and videos in the prompt using <<<xxx>>> syntax, for example: Replace the person in the video with <<<element_1>>>
2500"Adjust the color to warm tones and add a cinematic feel"
Video URL to edit
Video format requirements:
Constraints:
"https://example.com/original.mp4"
Whether to keep original video sound
Note:
true: Keep the original video sound (default)false: Do not keep the original video soundtrue
Reference image URL array (style reference)
Constraint: Reference image count + element count <= 4 when video is provided
["https://example.com/style_ref.jpg"]Resolution quality
Options:
720p: Standard 720P1080p: High quality 1080PBilling: Base unit price 81,000 UC/second x input video duration (rounded up). 1080p multiplier 1.334
720p, 1080p "720p"
Advanced parameters
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-o3-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