generate_video
Create AI-generated videos from text prompts using Kling AI. Specify aspect ratio, duration, creative freedom, and camera controls for precise video customization.
Instructions
Generate a video from text prompt using Kling AI
Input Schema
Name | Required | Description | Default |
---|---|---|---|
aspect_ratio | No | Video aspect ratio (default: 16:9) | |
camera_control | No | Camera movement settings for V2 models | |
cfg_scale | No | Creative freedom scale 0-1 (0=more creative, 1=more adherent to prompt, default: 0.5) | |
duration | No | Video duration in seconds (default: 5) | |
mode | No | Video generation mode (default: standard) | |
model_name | No | Model version to use (default: kling-v2-master) | |
negative_prompt | No | Text describing what to avoid in the video (optional, max 2500 characters) | |
prompt | Yes | Text prompt describing the video to generate (max 2500 characters) |
Input Schema (JSON Schema)
{
"properties": {
"aspect_ratio": {
"description": "Video aspect ratio (default: 16:9)",
"enum": [
"16:9",
"9:16",
"1:1"
],
"type": "string"
},
"camera_control": {
"description": "Camera movement settings for V2 models",
"properties": {
"config": {
"description": "Camera movement configuration (only for \"simple\" type)",
"properties": {
"horizontal": {
"description": "Horizontal movement [-10, 10]",
"maximum": 10,
"minimum": -10,
"type": "number"
},
"pan": {
"description": "Pan rotation [-10, 10]",
"maximum": 10,
"minimum": -10,
"type": "number"
},
"roll": {
"description": "Roll rotation [-10, 10]",
"maximum": 10,
"minimum": -10,
"type": "number"
},
"tilt": {
"description": "Tilt rotation [-10, 10]",
"maximum": 10,
"minimum": -10,
"type": "number"
},
"vertical": {
"description": "Vertical movement [-10, 10]",
"maximum": 10,
"minimum": -10,
"type": "number"
},
"zoom": {
"description": "Zoom [-10, 10]",
"maximum": 10,
"minimum": -10,
"type": "number"
}
},
"type": "object"
},
"type": {
"description": "Camera movement type",
"enum": [
"simple",
"down_back",
"forward_up",
"right_turn_forward",
"left_turn_forward"
],
"type": "string"
}
},
"type": "object"
},
"cfg_scale": {
"description": "Creative freedom scale 0-1 (0=more creative, 1=more adherent to prompt, default: 0.5)",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"duration": {
"description": "Video duration in seconds (default: 5)",
"enum": [
"5",
"10"
],
"type": "string"
},
"mode": {
"description": "Video generation mode (default: standard)",
"enum": [
"standard",
"professional"
],
"type": "string"
},
"model_name": {
"description": "Model version to use (default: kling-v2-master)",
"enum": [
"kling-v1",
"kling-v1.5",
"kling-v1.6",
"kling-v2-master"
],
"type": "string"
},
"negative_prompt": {
"description": "Text describing what to avoid in the video (optional, max 2500 characters)",
"type": "string"
},
"prompt": {
"description": "Text prompt describing the video to generate (max 2500 characters)",
"type": "string"
}
},
"required": [
"prompt"
],
"type": "object"
}