Overview
Generate a video from text and an optional input image with Kling- Output Type: video
- Base Model: kling
- Estimated Cost: quality == “high” ? 25 * duration : 10 * duration credits
- Handler: replicate
Parameters
Required Parameters
string
required
Text prompt
- Label: Prompt
string
default:"1:1"
required
Width/height (ignored when using a starting image)
- Label: Aspect ratio
- Options:
16:9,1:1,9:16
string
default:"medium"
required
The quality of the Kling video model.
- Label: Quality
- Options:
high,medium,low
integer
default:5
required
Duration of the video in seconds
- Label: Duration
- Options:
5,10
Optional Parameters
string
Negative text prompt
- Label: Negative prompt
image
First frame of the video to use as a keyframe
- Label: Starting image
image
Last frame of the video to use as a keyframe (quality=medium only, not supported for high or low)
- Label: Ending image
float
default:0.5
Flexibility in video generation; The higher the value, the lower the model’s degree of flexibility, and the stronger the relevance to the user’s prompt.
- Label: Guidance scale
- Minimum: 0
- Maximum: 1

