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

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/v1/standard/image-to-video",
    arguments={
        "prompt": "Snowflakes fall as a car moves forward along the road.",
        "image_url": "https://storage.googleapis.com/falserverless/kling/kling_input.jpeg"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Input Schema

prompt
string
required
The prompt for the video
image_url
string
required
URL of the image to be used for the video
duration
DurationEnum
default:"5"
The duration of the generated video in seconds Default value: "5"Possible values: 5, 10
negative_prompt
string
default:"blur, distort, and low quality"
Default value: "blur, distort, and low quality"
cfg_scale
float
default:"0.5"
The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt. Default value: 0.5Range: 0 to 1
tail_image_url
string
URL of the image to be used for the end of the video
static_mask_url
string
URL of the image for Static Brush Application Area (Mask image created by users using the motion brush)
dynamic_masks
list<DynamicMask>
List of dynamic masks

Output Schema

video
File
required
The generated video

Input Example

{
  "prompt": "Snowflakes fall as a car moves forward along the road.",
  "image_url": "https://storage.googleapis.com/falserverless/kling/kling_input.jpeg",
  "duration": "5",
  "negative_prompt": "blur, distort, and low quality",
  "cfg_scale": 0.5,
  "static_mask_url": "https://storage.googleapis.com/falserverless/kling/new_static_mask.png",
  "dynamic_masks": [
    {
      "mask_url": "https://storage.googleapis.com/falserverless/kling/new_dynamic_mask.png",
      "trajectories": [
        {
          "x": 279,
          "y": 219
        },
        {
          "x": 417,
          "y": 65
        }
      ]
    }
  ]
}

Output Example

{
  "video": {
    "url": "https://storage.googleapis.com/falserverless/kling/kling_i2v_output.mp4"
  }
}

Limitations

  • duration restricted to: 5, 10
  • cfg_scale range: 0 to 1
  • aspect_ratio restricted to: 16:9, 9:16, 1:1
  • camera_control restricted to: down_back, forward_up, right_turn_forward, left_turn_forward