POST
javascript
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); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


promptstr *

Describe the video scene. E.g., 'A feline basking in golden sunsets.'


negative_promptstr ( default: blur, distort, low quality )

Identify elements to avoid. Use 'chaos, abstract' for a clear scene.


durationenum:str ( default: 5 )

Sets video length. Use '15' for longer storytelling.

Allowed values:


aspect_ratioenum:str ( default: 16:9 )

Selects video format. '9:16' for vertical, '16:9' for landscape.

Allowed values:


shot_typeenum:str ( default: customize )

The type of multi-shot video generation.

Allowed values:


cfg_scalefloat ( default: 0.5 )

Controls prompt precision. Set '0.8' for strong adherence.

min : 0,

max : 1


generate_audiobool ( default: 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: Text-to-Video Model (1080p Cinematic)

What is Kling 3.0?

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.

Key Features

  • 1080p cinematic generation with strong scene composition and motion realism
  • Multi-shot storytelling for narrative clips (not just single static shots)
  • Optional audio generation (sound effects / ambient audio) via generate_audio
  • Flexible duration (3–15s) for short-form ads, trailers, and social loops
  • Aspect ratios for delivery: 16:9, 9:16, 1:1
  • Prompt adherence controls with cfg_scale (0–1)

Best Use Cases

  • Marketing and growth: short promos, teasers, app/store visuals
  • Film and media: pre-visualization, storyboards, concept trailers
  • Games and entertainment: cinematic vignettes, character beats, mood reels
  • Education: quick explainers with scene-based narration (when paired with audio)
  • Product teams: rapid prototyping of story-driven video concepts

Prompt Tips and Output Quality

  • Write prompts like a shot list: subject + action + setting + camera + lighting + mood.
    Example: “A panda gliding through clear waters, close-up tracking shot, sun rays, gentle ripples, cinematic color grade.”
  • Use negative_prompt to prevent artifacts: start with blur, distort, low quality, then add specifics like “text, watermark, extra limbs.”
  • Increase cfg_scale (e.g., 0.7–0.9) for tighter prompt fidelity; lower it for more creative variation.
  • Pick aspect_ratio intentionally: 9:16 for Reels/TikTok, 16:9 for YouTube, 1:1 for feeds.
  • Use longer duration (12–15s) when you need clearer story progression.

FAQs

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.