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-text-to-video "kling-o3-text-to-video"
Text prompt describing what video to generate
Note:
2500 charactersmulti_shot=true and shot_type=customize<<<element_1>>> syntax2500"A cat running on a grassy field under bright sunshine"
Video duration in seconds, defaults to 5 seconds
Note:
3 to 15duration value, longer duration costs more3 <= x <= 155
Video aspect ratio
Options:
16:9: Landscape video9:16: Portrait video1:1: Square video16:9, 9:16, 1:1 "16:9"
Resolution quality
Options:
720p: Standard 720P1080p: High quality 1080P720p, 1080p "720p"
Sound effect control
Options:
on: Enable sound effectsoff: Disable sound effectson, off "off"
Model extension parameters
Constraint: Maximum 7 elements
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-text-to-video"
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