Skip to main content
Endpoint: POST https://fal.run/fal-ai/kling-video/v3/pro/text-to-video Endpoint ID: fal-ai/kling-video/v3/pro/text-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/v3/pro/text-to-video",
    arguments={},
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Input Schema

prompt
string
Text prompt for video generation. Either prompt or multi_prompt must be provided, but not both.
duration
DurationEnum
default:"5"
The duration of the generated video in seconds Default value: "5"Possible values: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
multi_prompt
list<KlingV3MultiPromptElement>
List of prompts for multi-shot video generation. If provided, overrides the single prompt and divides the video into multiple shots with specified prompts and durations.
generate_audio
boolean
default:"true"
Whether to generate native audio for the video. Supports Chinese and English voice output. Other languages are automatically translated to English. For English speech, use lowercase letters; for acronyms or proper nouns, use uppercase. Default value: true
shot_type
ShotTypeEnum
default:"customize"
The type of multi-shot video generation Default value: "customize"Possible values: customize, intelligent
aspect_ratio
AspectRatioEnum
default:"16:9"
The aspect ratio of the generated video frame Default value: "16:9"Possible values: 16:9, 9:16, 1:1
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

Output Schema

video
File
required
The generated video

Input Example

{
  "prompt": "Close-up of glowing fireflies dancing in a dark forest at twilight. Soft bioluminescent particles float through the air. Shallow depth of field, bokeh lights in background. Magical atmosphere, gentle movement.",
  "duration": "5",
  "multi_prompt": null,
  "generate_audio": true,
  "shot_type": "customize",
  "aspect_ratio": "16:9",
  "negative_prompt": "blur, distort, and low quality",
  "cfg_scale": 0.5
}

Output Example

{
  "video": {
    "content_type": "video/mp4",
    "file_name": "output.mp4",
    "file_size": 8062911,
    "url": "https://storage.googleapis.com/falserverless/example_outputs/kling-v3/pro-t2v/out.mp4"
  }
}

Limitations

  • shot_type restricted to: customize, intelligent
  • aspect_ratio restricted to: 16:9, 9:16, 1:1
  • cfg_scale range: 0 to 1
  • character_orientation restricted to: image, video