Skip to main content
Glama

kling_generate_video

Generate AI video from a text prompt with Kling. Describe your scene to create a video without reference images, returning a task ID and video URLs.

Instructions

Generate AI video from a text prompt using Kling.

This is the simplest way to create video - just describe what you want and Kling
will generate a high-quality AI video.

Use this when:
- You want to create a video from a text description
- You don't have reference images
- You want quick video generation

For using reference images (start/end frames), use kling_generate_video_from_image instead.

Returns:
    Task ID and generated video information including URLs and state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoGeneration mode. 'std' (standard, default) for faster generation, 'pro' for higher quality, '4k' for native 4K (only supported by kling-v3 and kling-v3-omni, not compatible with motion control).std
modelNoKling model to use. Options: 'kling-v1', 'kling-v1-6', 'kling-v2-master' (default), 'kling-v2-1-master', 'kling-v2-5-turbo', 'kling-v2-6', 'kling-v3', 'kling-v3-omni', 'kling-o1'.kling-v1
promptYesDescription of the video to generate. Be descriptive about the scene, motion, style, and mood. Examples: 'A cat walking through a garden with butterflies', 'Astronauts shuttle from space to volcano', 'Ocean waves crashing on a beach at sunset'
durationNoVideo duration in seconds. kling-v3/kling-v3-omni: 3-15; kling-o1: 5 only; other models: 5 or 10.
cfg_scaleNoClassifier-free guidance scale from 0 to 1. Not supported by Omni generation.
image_listNoOmni reference images for kling-o1 or kling-v3-omni. Cite them as <<<image_1>>>, <<<image_2>>>, and so on.
video_listNoOne Omni reference video for kling-o1 or kling-v3-omni. Cite it as <<<video_1>>>. Use refer_type='feature' to reference it or 'base' to edit it.
aspect_ratioNoVideo aspect ratio. Options: '16:9' (landscape, default), '9:16' (portrait), '1:1' (square).16:9
callback_urlNoWebhook callback URL for asynchronous notifications. When provided, the API will call this URL when the video is generated.
camera_controlNoStructured camera control. Not supported by Omni generation.
generate_audioNoWhether to generate audio synchronously. Supported by kling-v3, kling-v3-omni, and kling-v2-6 (pro mode only). Omit for the model default. Turbo always includes native audio.
negative_promptNoThings to avoid in the video. Example: 'blurry, low quality, distorted faces'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.24
    • addedInput schema / properties / generate_audio / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / generate_audio / default
      Previous value: -falseNew value: +null
    • changedInput schema / properties / generate_audio / description
      Previous value: -"Whether to generate audio synchronously. Supported by kling-v3, kling-v3-omni, and kling-v2-6 (pro mode only). Default is false."New value: +"Whether to generate audio synchronously. Supported by kling-v3, kling-v3-omni, and kling-v2-6 (pro mode only). Omit for the model default. Turbo always includes native audio."
    • removedInput schema / properties / generate_audio / type
      Removed value: -"boolean"
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "kling-v1",
      -  "kling-v1-6",
      -  "kling-v2-master",
      -  "kling-v2-1-master",
      -  "kling-v2-5-turbo",
      -  "kling-v2-6",
      -  "kling-v3",
      -  "kling-v3-omni",
      -  "kling-o1"
      -]New value: +[
      +  "kling-v1",
      +  "kling-v1-6",
      +  "kling-v2-master",
      +  "kling-v2-1-master",
      +  "kling-v2-5-turbo",
      +  "kling-v2-6",
      +  "kling-v3",
      +  "kling-v3-turbo",
      +  "kling-v3-omni",
      +  "kling-o1"
      +]
  2. Changed1 schema field changedv0.1.23
    • addedInput schema / $defs / KlingCameraControlConfig / additionalProperties
      Added value: +{
      +  "maximum": 1,
      +  "minimum": -1,
      +  "type": "number"
      +}
  3. Changed2 schema fields changedv0.1.21
    • changedInput schema / properties / model / default
      Previous value: -"kling-v2-master"New value: +"kling-v1"
    • removedInput schema / properties / timeout
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Timeout in seconds for the API to return data. Default is 300.",
      -  "title": "Timeout"
      -}
  4. Changed13 schema fields changedv0.1.18
    • addedInput schema / $defs
      Added value: +{
      +  "KlingCameraControl": {
      +    "description": "Structured camera-control request.",
      +    "properties": {
      +      "config": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/KlingCameraControlConfig"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null
      +      },
      +      "type": {
      +        "enum": [
      +          "simple",
      +          "down_back",
      +          "forward_up",
      +          "left_turn_forward",
      +          "right_turn_forward"
      +        ],
      +        "title": "Type",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "title": "KlingCameraControl",
      +    "type": "object"
      +  },
      +  "KlingCameraControlConfig": {
      +    "description": "Numeric camera controls accepted by Kling's simple preset.",
      +    "properties": {
      +      "horizontal": {
      +        "anyOf": [
      +          {
      +            "maximum": 1,
      +            "minimum": -1,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Horizontal"
      +      },
      +      "pan": {
      +        "anyOf": [
      +          {
      +            "maximum": 1,
      +            "minimum": -1,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Pan"
      +      },
      +      "roll": {
      +        "anyOf": [
      +          {
      +            "maximum": 1,
      +            "minimum": -1,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Roll"
      +      },
      +      "tilt": {
      +        "anyOf": [
      +          {
      +            "maximum": 1,
      +            "minimum": -1,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Tilt"
      +      },
      +      "vertical": {
      +        "anyOf": [
      +          {
      +            "maximum": 1,
      +            "minimum": -1,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Vertical"
      +      },
      +      "zoom": {
      +        "anyOf": [
      +          {
      +            "maximum": 1,
      +            "minimum": -1,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Zoom"
      +      }
      +    },
      +    "title": "KlingCameraControlConfig",
      +    "type": "object"
      +  },
      +  "KlingReferenceImage": {
      +    "description": "Omni reference image, optionally used as a first or end frame.",
      +    "properties": {
      +      "image_url": {
      +        "format": "uri",
      +        "maxLength": 2083,
      +        "minLength": 1,
      +        "title": "Image Url",
      +        "type": "string"
      +      },
      +      "type": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "first_frame",
      +              "end_frame"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Type"
      +      }
      +    },
      +    "required": [
      +      "image_url"
      +    ],
      +    "title": "KlingReferenceImage",
      +    "type": "object"
      +  },
      +  "KlingReferenceVideo": {
      +    "description": "Omni feature reference or editable base video.",
      +    "properties": {
      +      "keep_original_sound": {
      +        "default": "no",
      +        "enum": [
      +          "yes",
      +          "no"
      +        ],
      +        "title": "Keep Original Sound",
      +        "type": "string"
      +      },
      +      "refer_type": {
      +        "default": "feature",
      +        "enum": [
      +          "feature",
      +          "base"
      +        ],
      +        "title": "Refer Type",
      +        "type": "string"
      +      },
      +      "video_url": {
      +        "format": "uri",
      +        "maxLength": 2083,
      +        "minLength": 1,
      +        "title": "Video Url",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "video_url"
      +    ],
      +    "title": "KlingReferenceVideo",
      +    "type": "object"
      +  }
      +}
    • changedInput schema / properties / camera_control / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/KlingCameraControl"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / camera_control / description
      Previous value: -"Camera control as JSON string. Example: '{\"type\": \"simple\", \"config\": {\"horizontal\": 5, \"vertical\": 0, \"pan\": 0, \"tilt\": 0, \"roll\": 0, \"zoom\": 0}}'. Types: 'simple', 'down_back', 'forward_up', 'left_turn_forward', 'right_turn_forward'."New value: +"Structured camera control. Not supported by Omni generation."
    • removedInput schema / properties / camera_control / title
      Removed value: -"Camera Control"
    • changedInput schema / properties / cfg_scale / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 1,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / cfg_scale / description
      Previous value: -"Classifier-free guidance scale. Higher values follow the prompt more strictly. Typical range: 0.0-1.0."New value: +"Classifier-free guidance scale from 0 to 1. Not supported by Omni generation."
    • changedInput schema / properties / duration / description
      Previous value: -"Video duration in seconds. For kling-v3/kling-v3-omni: 3-15 (integer). Other models: 5 or 10."New value: +"Video duration in seconds. kling-v3/kling-v3-omni: 3-15; kling-o1: 5 only; other models: 5 or 10."
    • removedInput schema / properties / element_list
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {},
      -      "type": "array"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "List of reference subjects from the subject library. Each item should contain an 'element_id'. If a reference video is present, reference subjects + reference images must be ≤ 4; otherwise ≤ 7.",
      -  "title": "Element List"
      -}
    • addedInput schema / properties / image_list
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "$ref": "#/$defs/KlingReferenceImage"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Omni reference images for kling-o1 or kling-v3-omni. Cite them as <<<image_1>>>, <<<image_2>>>, and so on.",
      +  "title": "Image List"
      +}
    • changedInput schema / properties / model / description
      Previous value: -"Kling model to use. Options: 'kling-v1', 'kling-v1-6', 'kling-v2-master' (default), 'kling-v2-1-master', 'kling-v2-5-turbo', 'kling-v2-6', 'kling-v3', 'kling-v3-omni', 'kling-video-o1'."New value: +"Kling model to use. Options: 'kling-v1', 'kling-v1-6', 'kling-v2-master' (default), 'kling-v2-1-master', 'kling-v2-5-turbo', 'kling-v2-6', 'kling-v3', 'kling-v3-omni', 'kling-o1'."
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "kling-v1",
      -  "kling-v1-6",
      -  "kling-v2-master",
      -  "kling-v2-1-master",
      -  "kling-v2-5-turbo",
      -  "kling-v2-6",
      -  "kling-v3",
      -  "kling-v3-omni",
      -  "kling-video-o1"
      -]New value: +[
      +  "kling-v1",
      +  "kling-v1-6",
      +  "kling-v2-master",
      +  "kling-v2-1-master",
      +  "kling-v2-5-turbo",
      +  "kling-v2-6",
      +  "kling-v3",
      +  "kling-v3-omni",
      +  "kling-o1"
      +]
    • changedInput schema / properties / video_list / anyOf
      Previous value: -[
      -  {
      -    "items": {},
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "$ref": "#/$defs/KlingReferenceVideo"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / video_list / description
      Previous value: -"List of reference videos. Each item should contain a 'video_url' (MP4/MOV, 3-10s, 720-2160px, 24-60fps, ≤200MB, max 1 video) and optionally 'refer_type' ('feature' or 'base', default 'base') and 'keep_original_sound' ('yes' or 'no')."New value: +"One Omni reference video for kling-o1 or kling-v3-omni. Cite it as <<<video_1>>>. Use refer_type='feature' to reference it or 'base' to edit it."
  5. Changed4 schema fields changedv0.1.13
    • addedInput schema / properties / element_list
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {},
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "List of reference subjects from the subject library. Each item should contain an 'element_id'. If a reference video is present, reference subjects + reference images must be ≤ 4; otherwise ≤ 7.",
      +  "title": "Element List"
      +}
    • changedInput schema / properties / mode / description
      Previous value: -"Generation mode. 'std' (standard, default) for faster generation, 'pro' for higher quality."New value: +"Generation mode. 'std' (standard, default) for faster generation, 'pro' for higher quality, '4k' for native 4K (only supported by kling-v3 and kling-v3-omni, not compatible with motion control)."
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "std",
      -  "pro"
      -]New value: +[
      +  "std",
      +  "pro",
      +  "4k"
      +]
    • addedInput schema / properties / video_list
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {},
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "List of reference videos. Each item should contain a 'video_url' (MP4/MOV, 3-10s, 720-2160px, 24-60fps, ≤200MB, max 1 video) and optionally 'refer_type' ('feature' or 'base', default 'base') and 'keep_original_sound' ('yes' or 'no').",
      +  "title": "Video List"
      +}
  6. Changed5 schema fields changedv0.1.1
    • changedInput schema / properties / duration / description
      Previous value: -"Video duration in seconds. Options: 5 (default) or 10."New value: +"Video duration in seconds. For kling-v3/kling-v3-omni: 3-15 (integer). Other models: 5 or 10."
    • removedInput schema / properties / duration / enum
      Removed value: -[
      -  5,
      -  10
      -]
    • addedInput schema / properties / generate_audio
      Added value: +{
      +  "default": false,
      +  "description": "Whether to generate audio synchronously. Supported by kling-v3, kling-v3-omni, and kling-v2-6 (pro mode only). Default is false.",
      +  "title": "Generate Audio",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / model / description
      Previous value: -"Kling model to use. Options: 'kling-v1', 'kling-v1-6', 'kling-v2-master' (default), 'kling-v2-1-master', 'kling-v2-5-turbo', 'kling-video-o1'."New value: +"Kling model to use. Options: 'kling-v1', 'kling-v1-6', 'kling-v2-master' (default), 'kling-v2-1-master', 'kling-v2-5-turbo', 'kling-v2-6', 'kling-v3', 'kling-v3-omni', 'kling-video-o1'."
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "kling-v1",
      -  "kling-v1-6",
      -  "kling-v2-master",
      -  "kling-v2-1-master",
      -  "kling-v2-5-turbo",
      -  "kling-video-o1"
      -]New value: +[
      +  "kling-v1",
      +  "kling-v1-6",
      +  "kling-v2-master",
      +  "kling-v2-1-master",
      +  "kling-v2-5-turbo",
      +  "kling-v2-6",
      +  "kling-v3",
      +  "kling-v3-omni",
      +  "kling-video-o1"
      +]
  7. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden. It does disclose that the call returns a Task ID and video state, which implies asynchronous task-based generation, but it never states that polling (e.g. kling_get_task) is required, nor mentions latency, cost, or failure handling — significant omissions for a generation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well front-loaded: purpose first, then when-to-use bullets, then the sibling pointer and return note. The middle sentence ('This is the simplest way... high-quality AI video') is mild marketing padding that doesn't add selection value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need not be explained, and the schema is fully described, so the description's job is selection and routing — which it does well. The remaining gap is the async/polling workflow, which an agent calling a task-returning generation tool would need.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter including model, mode, duration, cfg_scale, camera_control, and generate_audio is already documented in the schema. The description adds no parameter-level detail beyond that, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Generate AI video from a text prompt using Kling') and immediately distinguishes itself from the closest sibling by naming kling_generate_video_from_image as the image-reference alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'Use this when' bullets cover the three selecting conditions (text-only, no reference images, quick generation), and it names the alternative tool plus the condition that routes to it (reference images / start-end frames).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.