Kling-O1 Image to Video
- Kling-O1 Image to Video (kling-o1-image-to-video) model supports image-to-video generation
- Asynchronous processing mode, use the returned task ID to query status
- Generated video links are valid for 24 hours, please save them promptly
Authorizations
All APIs require Bearer Token authentication
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYBody
Video generation model name
kling-o1-image-to-video "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:
- Supports
1to2images per request (1image for first-frame video generation,2images for first-and-last-frame video generation) - Image size: up to
10MB - Supported formats:
.jpg,.jpeg,.png,.webp - Image URL must be directly accessible by the server, or the URL should trigger a direct download when accessed (typically URLs ending with image extensions like
.png,.jpg)
1 - 2 elements["https://example.com/image1.jpg"]Video aspect ratio
Options:
16:9: Landscape video9:16: Portrait video1:1: Square video
16:9, 9:16, 1:1 "16:9"
Video duration in seconds, defaults to 5 seconds
Note:
- Only supports
5or10values, representing5 secondsor10 seconds - Billing is based on the
durationvalue, longer duration costs more
5, 10 5
HTTPS callback URL for task completion
Callback Timing:
- Triggered when task is completed, failed, or cancelled
- Sent after billing confirmation
Security Restrictions:
- HTTPS protocol only
- Internal IP addresses are prohibited (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
- URL length must not exceed
2048characters
Callback Mechanism:
- Timeout:
10seconds - Maximum
3retries after failure (at1/2/4seconds after failure) - Callback response format is consistent with task query API
- 2xx status code is considered successful, other codes trigger retry
"https://your-domain.com/webhooks/video-task-completed"
Response
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