Kling Video O3 API
Complete API reference for Kling Video O3 models by Kuaishou.
Model Variants
This API supports eight model variants:
Quick Comparison
Supported Aspect Ratios
16:9, 9:16, 1:1
Kling Video O3 Text to Video (Std & Pro)
Endpoint
POST /api/v1/video/task
Request Parameters
Required
Optional
Example Request
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model_name: 'kling-video-o3-std-text-to-video',
prompt: 'A drone flying over a mountain range at sunrise',
duration: 5,
aspect_ratio: '16:9'
})
});
const { data } = await response.json();
const taskId = data.task_id;
Kling Video O3 Image to Video (Std & Pro)
Request Parameters
Required
Optional
Example Request
{
model_name: 'kling-video-o3-pro-image-to-video',
image_url: 'https://example.com/image.jpg',
prompt: 'Camera slowly pulls back revealing the landscape',
duration: 5,
image_end_url: 'https://example.com/end-frame.jpg'
}
Kling Video O3 Reference to Video (Std & Pro)
Request Parameters
Required
Optional
@ (AT) Reference Placeholders
The @ (AT) reference feature links reference media to the prompt through numbered <<<...>>> placeholders. Image numbering starts at 1 and follows the order of the images array. Because this model accepts one reference video URL, <<<video_1>>> refers to video_url.
Example Request
{
model_name: 'kling-video-o3-std-reference-to-video',
video_url: 'https://example.com/source.mp4',
images: ['https://example.com/reference-a.jpg', 'https://example.com/reference-b.jpg'],
prompt: 'Character walking through a forest',
duration: 8,
aspect_ratio: '16:9',
keep_original_sound: true
}
@ (AT) Reference-to-Video Request Example
{
model_name: 'kling-video-o3-std-reference-to-video',
video_url: 'https://example.com/motion-reference.mp4',
images: [
'https://example.com/athlete-reference.jpg',
'https://example.com/uniform-reference.jpg'
],
prompt: 'Make the athlete from <<<image_1>>> follow the motion in <<<video_1>>> while preserving the uniform details from <<<image_2>>>',
duration: 8,
aspect_ratio: '16:9',
keep_original_sound: true
}
Kling Video O3 Video Edit (Std & Pro)
Request Parameters
Required
Optional
Example Request
{
model_name: 'kling-video-o3-pro-video-edit',
video_url: 'https://example.com/source.mp4',
duration: 5,
images: ['https://example.com/ref.jpg'],
prompt: 'Add falling snow throughout the scene',
keep_original_sound: true
}
Initial Response
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "submitted"
}
}
Polling Response
Poll GET /api/v1/video/{taskId} to check status:
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "succeed",
"task_status_msg": null,
"task_result": {
"videos": [
{
"url": "https://example.com/generated-video.mp4"
}
]
}
}
}
Status Values
submitted: Task accepted and waiting to be processed
processing: Video generation in progress
succeed: Video generation completed
failed: Video generation failed
Processing Time
- Standard: 2-5 minutes
- Pro: 3-8 minutes
Best Practices
- Tier Selection: Use Std for iteration, Pro for final output
- Motion Description: Include specific camera and subject movement details
- Reference Inputs: Use clear, high-quality reference images or reference videos for better character consistency
- Video Edit Prompts: Be specific about what to change while preserving the original content