Skip to main content
Glama

Kling AI MCP Server by useapi.net (third-party)

Generate a video from text

kling_text_to_video

Generate a video from a prompt (or custom multi-shot with shot_N_prompt / shot_N_duration on kling-v3-0 / kling-v4-0). Per model: kling-v4-0 3-30 s, std / pro / 4k, hdr in pro or 4k, audio always on, multi-shot; kling-v4-0-flash 3-20 s, std (720p) only, audio always on, start image only, no custom shots; kling-v3-0 3-15 s, std / pro / 4k, audio on by default (enable_audio false is cheaper); kling-v3-0-turbo 3-15 s, std / pro; kling-v2-6 5 or 10 s, std / pro (native audio needs pro); older models 5 or 10 s, no 4k. negative_prompt and cfg_scale only on older models. kling-v2-5 and kling-v2-1-master run in pro only. Uses Kling credits: kling-v2-6 std is the cheapest at 15 credits for 5 s; kling-v3-0 6-9 credits a second (12 at pro), kling-v4-0 10 a second (15 at pro / 1080p, 35 at 4k; hdr adds 3 at 1080p and 5 at 4k), kling-v4-0-flash 6 a second, 4k and Master models cost much more. A job: waits up to ~50 s, then returns task_id + email for kling_get_task. POST /videos/text2video.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "kling_text_to_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
hdrNoHDR video (kling-v4-0 only, mode pro or 4k; not in std / 720p). Default false.
modeNostd (720p), pro (1080p) or 4k, as the model allows.
emailNoThe Kling account email. Optional: by default the account with the most free job slots; results name the account used. Pass it whenever an input belongs to one account (an uploaded file, a voice, an element, your own avatar or motion, a task_id).
promptNoWhat happens in the video.
durationNoSeconds; allowed values depend on the model (default 5).
cfg_scaleNoPrompt adherence 0-1 (kling-v1-x only).
model_nameNoModel (default kling-v1-6).
multi_shotNoKling picks the shots (kling-v3-0; kling-v4-0 is always multi-shot).
aspect_ratioNo16:9 (default), 9:16, 1:1, or 21:9 (kling-v4-0 only).
enable_audioNoSound: kling-v3-0 on by default (false = cheaper); kling-v2-6 native audio needs mode pro; not accepted by kling-v4-0 / turbo (always on).
shot_1_promptNoCustom multi-shot: shot 1's prompt (with shot_1_duration; at least 2 shots, total 3-15 s; not with prompt / duration).
shot_2_promptNoCustom multi-shot: shot 2's prompt (with shot_2_duration; at least 2 shots, total 3-15 s; not with prompt / duration).
shot_3_promptNoCustom multi-shot: shot 3's prompt (with shot_3_duration; at least 2 shots, total 3-15 s; not with prompt / duration).
shot_4_promptNoCustom multi-shot: shot 4's prompt (with shot_4_duration; at least 2 shots, total 3-15 s; not with prompt / duration).
shot_5_promptNoCustom multi-shot: shot 5's prompt (with shot_5_duration; at least 2 shots, total 3-15 s; not with prompt / duration).
shot_6_promptNoCustom multi-shot: shot 6's prompt (with shot_6_duration; at least 2 shots, total 3-15 s; not with prompt / duration).
negative_promptNoWhat to avoid (older models only).
shot_1_durationNoCustom multi-shot: shot 1's seconds, 1-15.
shot_2_durationNoCustom multi-shot: shot 2's seconds, 1-15.
shot_3_durationNoCustom multi-shot: shot 3's seconds, 1-15.
shot_4_durationNoCustom multi-shot: shot 4's seconds, 1-15.
shot_5_durationNoCustom multi-shot: shot 5's seconds, 1-15.
shot_6_durationNoCustom multi-shot: shot 6's seconds, 1-15.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / hdr
      Added value: +{
      +  "description": "HDR video (kling-v4-0 only, mode pro or 4k; not in std / 720p). Default false.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / model_name / enum
      Previous value: -[
      -  "kling-v4-0",
      -  "kling-v3-0",
      -  "kling-v3-0-turbo",
      -  "kling-v2-6",
      -  "kling-v2-5",
      -  "kling-v2-1-master",
      -  "kling-v1-6",
      -  "kling-v1-5"
      -]New value: +[
      +  "kling-v4-0",
      +  "kling-v4-0-flash",
      +  "kling-v3-0",
      +  "kling-v3-0-turbo",
      +  "kling-v2-6",
      +  "kling-v2-5",
      +  "kling-v2-1-master",
      +  "kling-v1-6",
      +  "kling-v1-5"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses job behavior: waits up to ~50s, returns task_id + email for kling_get_task, and uses Kling credits with specific model rates. It also documents cross-parameter constraints for audio, HDR, and multi-shot that matter before invocation.

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?

It is front-loaded and compact for a 23-parameter tool supporting nine models, using semicolon-separated model capability lists. It is dense and repeats some schema details, but most repetition serves as useful cross-parameter context rather than padding.

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

Completeness5/5

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

For a complex generation tool with no output schema, it covers model constraints, job lifecycle, return handoff to kling_get_task, and credit cost. The schema handles individual parameter descriptions, so the description is complete enough to invoke correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds integrated model-level semantics and cost tradeoffs, such as v3 audio default being cheaper when false and negative_prompt/cfg_scale applying only to older models. Much per-parameter detail is duplicated from the schema, but the cross-parameter guidance adds value.

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?

The opening 'Generate a video from a prompt' states a specific verb and resource, and the parenthetical clarifies the custom multi-shot variant. It distinguishes this text-to-video generator from image/avatar/effect siblings by naming model variants and the endpoint.

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

Usage Guidelines4/5

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

The description gives clear model-selection guidance with per-model duration, mode, audio, HDR, multi-shot, and credit-cost tradeoffs. It does not explicitly name alternatives such as kling_image_to_video or state when not to use this tool, so it falls short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources