Kling 4.0 Reference Video Original Audio
Preserve the original audio track of a reference video in Kling 4.0 and Kling 4.0 Flash requests
Reference-video requests for kling-4.0 and kling-4.0-flash can control original audio via metadata.keep_original_sound. This field must be a boolean.
true: Preserves the original audio track of the input video. At least one reference video orbase_videomust be provided.false: Does not preserve the original audio track; applies to reference-input mode (requires at least one reference image or one reference video). The model generates native audio.- Omitted: Uses the default behavior (generates native audio by default).
The model prioritizes the audio track of base_video; if base_video is absent, it uses the audio track of the first reference video. The current endpoint does not support providing voice references (audio_with_roles or metadata.voices) at the same time.
Text-to-video and keyframe / first-frame modes (first_frame, keyframe, last_frame) do not support metadata.keep_original_sound; even a value of false will be rejected.
Official parameter reference: settings.audio in Kling 4.0 Omni and Kling 4.0 Flash Omni.
{
"model": "kling-4.0-flash",
"prompt": "Keep the motion and original audio of the reference video",
"duration": 3,
"resolution": "720p",
"aspect_ratio": "9:16",
"image_with_roles": [
{"url": "https://example.com/person.png", "role": "reference_image"}
],
"video_with_roles": [
{"url": "https://example.com/reference.mp4", "role": "reference_video"}
],
"metadata": {"keep_original_sound": true}
}Submit the request to POST /v1/videos/generations. Images and videos must use publicly accessible HTTP or HTTPS URLs. The API returns HTTP 400 and flags metadata.keep_original_sound if the field type is invalid or the required video is missing.