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-3-standard-text2video";
const data = {
"prompt": "A vivid scene of a panda gliding through clear waters surrounded by vibrant greenery.",
"negative_prompt": "blur, distort, low quality",
"duration": 5,
"aspect_ratio": "16:9",
"shot_type": "customize",
"cfg_scale": 0.5,
"generate_audio": false
};
(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);
}
})();Describe the video scene. E.g., 'A feline basking in golden sunsets.'
Identify elements to avoid. Use 'chaos, abstract' for a clear scene.
Sets video length. Use '15' for longer storytelling.
Allowed values:
Selects video format. '9:16' for vertical, '16:9' for landscape.
Allowed values:
The type of multi-shot video generation.
Allowed values:
Controls prompt precision. Set '0.8' for strong adherence.
min : 0,
max : 1
Enable for sound effects. Check for immersive experiences.
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.
Kling 3.0 is a generative AI video model built for cinematic 1080p text-to-video creation. It’s optimized for multi-shot, story-driven clips with realistic motion/physics, strong visual coherence, and optional native audio generation. Developers can use Kling 3.0 to turn a single prompt into a polished video sequence suitable for product storytelling, social content, and prototyping.
Kling ships in two variants: Kling V3 for prompt-driven cinematic output (including multilingual audio and multi-character scenes) and Kling O3 (Omni) for reference-heavy workflows, adding element referencing (multi-image/video input), voice control, and improved character consistency.
generate_audio16:9, 9:16, 1:1cfg_scale (0–1)negative_prompt to prevent artifacts: start with blur, distort, low quality, then add specifics like “text, watermark, extra limbs.”cfg_scale (e.g., 0.7–0.9) for tighter prompt fidelity; lower it for more creative variation.aspect_ratio intentionally: 9:16 for Reels/TikTok, 16:9 for YouTube, 1:1 for feeds.duration (12–15s) when you need clearer story progression.Is Kling 3.0 open-source?
Kling 3.0 is provided as an API-accessed generative video model; it’s not described as open-source here.
How is Kling V3 different from Kling O3 (Omni)?
V3 is optimized for prompt-first cinematic generation; O3 adds element referencing (image/video inputs), voice control, and stronger character consistency.
What parameters matter most for quality?
Start with prompt, then tune negative_prompt, cfg_scale, duration, and aspect_ratio.
Does it support audio?
Yes—set generate_audio: true to generate sound effects/ambient audio.
What video lengths can I generate?
Set duration from 3 to 15 seconds depending on your storytelling needs.