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-image-to-video"
Prompt describing what video to generate
5000"A cat walking gracefully"
Reference image URL list for image-to-video generation
Note:
1 to 2 images per request (1 image for first-frame video generation, 2 images for first-and-last-frame video generation)10MB.jpg, .jpeg, .png, .webp.png, .jpg)1 - 2 elements["https://example.com/image1.jpg"]Video aspect ratio
Options:
16:9: Landscape video9:16: Portrait video1:1: Square video16:9, 9:16, 1:1 "16:9"
Video duration in seconds, defaults to 5 seconds
Note:
5 or 10 values, representing 5 seconds or 10 secondsduration value, longer duration costs more5, 10 5
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-image-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