Skip to main content
Endpoint: POST https://fal.run/fal-ai/kling-video/o3/standard/video-to-video/edit Endpoint ID: fal-ai/kling-video/o3/standard/video-to-video/edit

Try it in the Playground

Run this model interactively with your own prompts.

Quick Start

import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/kling-video/o3/standard/video-to-video/edit",
    arguments={
        "prompt": "change the main character to be Popeye from @Element1, dark lighting and rain, 3d character. make him sad, with rain dropping on him, dark light on the character.",
        "video_url": "https://storage.googleapis.com/falserverless/example_inputs/kling-o3/standard-v2v-edit/standard_video_reference.mp4"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Input Schema

prompt
string
required
Text prompt for video generation. Reference video as @Video1.
video_url
string
required
Reference video URL. Only .mp4/.mov formats, 3-10s duration, 720-2160px resolution, max 200MB.
image_urls
list<string>
Reference images for style/appearance. Reference in prompt as @Image1, @Image2, etc. Maximum 4 total (elements + reference images) when using video.
keep_audio
boolean
default:"true"
Whether to keep the original audio from the reference video. Default value: true
elements
list<KlingV3ImageElementInput>
Elements (characters/objects) to include. Reference in prompt as @Element1, @Element2.
shot_type
string
default:"customize"
The type of multi-shot video generation. Default value: "customize"

Output Schema

video
File
required
The generated video.

Input Example

{
  "prompt": "change the main character to be Popeye from @Element1, dark lighting and rain, 3d character. make him sad, with rain dropping on him, dark light on the character.",
  "video_url": "https://storage.googleapis.com/falserverless/example_inputs/kling-o3/standard-v2v-edit/standard_video_reference.mp4",
  "image_urls": null,
  "keep_audio": true,
  "elements": [
    {
      "frontal_image_url": "https://storage.googleapis.com/falserverless/example_inputs/kling-o3/standard-v2v-edit/element1_front.jpg",
      "reference_image_urls": [
        "https://storage.googleapis.com/falserverless/example_inputs/kling-o3/standard-v2v-edit/standard_element1_reference1.jpg"
      ]
    }
  ],
  "shot_type": "customize"
}

Output Example

{
  "video": {
    "content_type": "video/mp4",
    "file_name": "output.mp4",
    "file_size": 4322769,
    "url": "https://storage.googleapis.com/falserverless/example_outputs/kling-o3/standard-v2v-edit/output.mp4"
  }
}

Limitations

  • aspect_ratio restricted to: auto, 16:9, 9:16, 1:1