ReferenceAsk
W

Kling 4.0

Kling 4.0, a video model from WaveSpeed.
videoModelOverride: { model: "kling-video-v4.0" }
Kling·served viaWaveSpeed·Released October 2026
Pricing
List price
$0.18-$0.27/second
Per generation
$0.00010
Specifications
Context window
2,500 tokens
Aspect ratios
4
Released
October 2026
Model string
kwaivgi/kling-v4.0/text-to-video
Parameters
Model options, passed in videoModelOverride.config.
ParameterTypeDefaultRange / options
$modeSelecttext-to-videotext-to-videoimage-to-videoreference-to-video
imageImage URL——
last_imageImage URL——
keyframes
Middle frames in order, between the first and last. At most 10 frames in all.
Image URLs——
images
Up to 10. Refer to them in the prompt as @Image1, @Image2, ...
Image URLs——
videos
Up to 5, guiding motion, camera and pacing.
Video URLs——
audios
Up to 3 clips of 5 to 30 seconds, guiding voice and sound.
Audio URLs——
keep_original_sound
Keep the reference video's own sound. Needs a reference video.
Booleanfalse
aspect_ratioSelect16:916:99:161:121:9
resolutionSelect720p720p1080p
durationNumber53–30
Use this model
await mindstudio.generateVideo({
  prompt: "...",
  videoModelOverride: {
    model: "kling-video-v4.0",
    config: {
      aspect_ratio: "16:9",
      resolution: "720p",
    },
  },
});