1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/kling-o1-reference-image-to-video";
const data = {
"prompt": "Create a cinematic video sequence with smooth camera movements of @image1 riding on @image2",
"image_urls": [
"https://segmind-resources.s3.amazonaws.com/output/01641ffc-a5dc-4383-a978-8d14f785247d-Screenshot_2025-11-24_120343.png",
"https://segmind-resources.s3.amazonaws.com/output/5aab39a0-7dbb-42c3-9269-bf52141ae0ca-horse.jpg"
],
"duration": 5,
"aspect_ratio": "16:9"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Detailed scene description. Use @Image1, @Image2 for images and @Element1, @Element2 for elements
List of reference image URLs. Reference them as @Image1, @Image2 in prompt
List of elements with reference and frontal images. Each element should have 'reference_image_urls' (list) and 'frontal_image_url' (str). Reference as @Element1, @Element2 in prompt
Video duration in seconds
Allowed values:
Sets frame dimensions
Allowed values:
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Edited by Segmind Team on January 16, 2026.
Kling Omni Video O1 stands out as a cutting-edge image-to-video model, designed by WaveSpeedAI, which seamlessly converts plain images into dynamic, cinematic-level videos that maintain impressive visual fidelity. It works exceptionally well to keep the core identity of the subject intact, while it introduces lifelike movement, authentic physics, and seamless transitions. Kling Omni Video O1 is an asset for developers who want to scale up video creation pipelines since it can handle videos ranging from 5 to 10 seconds and runs using a robust, production-grade REST API, ensuring there are no cold start delays.
Implement Image Reference Strategy by using landscape images for establishing wide shots and detailed close-ups for focal elements. The model can blend multiple images; reference them with @Image1, @Image2 (and so on...) notation in the prompt.
For Creative Freedom use detailed, descriptive prompts that specify mood, lighting, and action. Example: "Create a dynamic sequence of @Image1 piloting a futuristic @Image2 through a neon-lit cityscape at dusk."
For Precision Control use short and direct prompts, while focusing on the specific transformation. Example: "Rotate @Image1 360 degrees, slow zoom out."
Select Duration based on the platform: choose 5 seconds for quick social media clips or product demos; opt for 10 seconds to showcase complex movements or narrative sequences.
Consider Aspect Ratio as per the social platform: select 16:9 for YouTube and standard video platforms; 9:16 for TikTok and Instagram Stories; or 1:1 for balanced social feeds.
What makes Kling Omni O1 different from other image-to-video models?
Kling Omni Video O1 specializes in preserving the core identity of the original subject, while supporting multi-image references. These aspects let the model combine multiple elements from different sources and maintain visual consistency throughout the animation.
Can I use multiple reference images in one video?
Yes, it is possible to use multiple URLs in the image_urls parameter and reference them in the prompt using @Image1, @Image2 notation to control how each image is incorporated.
What's the optimal video duration for most use cases?
5 seconds works well for social media content, product demos, and quick animations; 10 seconds will be ideal for storytelling, complex movements, or when you need more context.
How does prompt length affect output quality?
A detailed prompt enables creative interpretation and varied results in the output videos, while concise prompts deliver precise, predictable transformations; opt for the apt prompt length to match your approach to your use case.
Is the model suitable for production applications?
Kling Omni Video O1's API is optimized for stability with no cold starts, making it reliable for customer-facing applications, automated workflows, and high-volume processing.
What aspect ratio should I choose?
Use 16:9 for traditional video platforms and presentations; 9:16 for vertical mobile content (Stories, Reels, Shorts); and 1:1 for versatile social media posts.