Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

kling

FreeNo executable scriptsNot checked

Generate images and video with Kling through RunAPI. Use when the user asks an agent for Kling standard images, image series, ecommerce or webpage long…

runapi-aiby runapi-ai1,987 installs in other catalogs

About this skill

Kling on RunAPI

Retired versions below are historical references only. Do not select them for a new request.

Choose route

  • For a one-off artifact or result, use the registered kling service in the runapi CLI. If the installed command catalog does not list it, stop and report the missing service instead of inventing a command.
  • For an app, backend, worker, library, webhook pipeline, or production codebase, go directly to Integrate with SDK. Never shell out to the CLI as the production runtime.

Discover contract

Authenticate, then inspect the installed command catalog and the selected operation's current contract:

runapi auth status > auth.json
jq -e '.authenticated == true' auth.json
runapi kling --help
runapi kling <operation> --help
curl --fail --location https://runapi.ai/docs/api/kling/<operation>.md --output contract.md

If authentication is false, stop before submitting. Ask the user to provide a valid RUNAPI_API_KEY, or import a user-provided key from stdin with runapi auth import-token --token -; use interactive browser login only when the user explicitly requests it. Choose <operation> only from service help. Treat command help as authoritative for the installed operation, model, and top-level field roster. Treat its API Reference as authoritative for the complete request schema, nested fields, conditional rules, task behavior, and response variants. If the two surfaces disagree, stop and report the contract mismatch instead of guessing.

Build request

Create request.json as valid JSON using only fields accepted by the discovered operation contract. For the chosen model and values, evaluate every applicable conditional rule as a set: satisfy every required field, omit every forbidden field, and stop on unresolved contradictions.

Traverse nested objects and arrays before execution. Close every relationship stated by the discovered contract, including uniqueness constraints and cross-references between nested values.

For a discovered local media input, including file-typed fields and top-level media URL fields, put an agent-readable local file path directly in request.json. The CLI consumes file fields as declared and uploads local paths in top-level media URL fields. Use runapi files create only when the user needs a reusable URL, provides Base64, or the discovered contract explicitly requires a separate upload.

Semantic invariants:

  • Kling 4.0 image tasks return ordered images, including a complete series in one task. 8k output is JPEG. Use text_to_image for both kling-v4-image and kling-v4-long-image.
  • Standard image references use ordered source_image_urls as @image_N and named elements as @name. Names are case-insensitively unique, reserve image_N and object_N, and match the longest supplied name. Letters, digits, or underscores immediately after an English name do not terminate its reference.
  • Long image prompts treat @ followed by letters, digits, underscores, or Chinese characters as a reference, including emails and handles. Use a full-width @ or a space after @ for literal text. Supply the referenced image before using @style, @subject, or @image_N.
  • For Kling 3.0 multi-shot, use multi_shots: true. shot_type accepts custom or automatic and defaults to custom only in multi-shot mode. Omit shot_type for single-shot requests.
  • Custom storyboards require 1-6 multi_prompt shots with integer durations from 1-12 seconds. Their sum must equal the total duration_seconds from 3-15, default 5. Each shot prompt allows 500 effective characters, with each named @element reference counting as 37.
  • Automatic storyboarding requires prompt and omits multi_prompt. enable_sound is optional for multi-shot requests.

Validate the file before sending it:

jq empty request.json

Execute

Submit exactly once and persist the task response before waiting:

runapi kling <operation> --async --input-file request.json > task.json
task_id="$(jq -er '.id' task.json)"

For a one-off result, immediately wait for that same task and save the complete JSON response. This blocking wait is the default:

runapi wait "$task_id" --service kling --action <operation> > result.json

Only when the user explicitly asks for background execution, polling, or webhook integration may you stop after validating task.json. Report the task id and do not claim that the deliverable is complete.

Verify

A success status is not the deliverable. Read and validate the complete response according to the discovered result contract. Preserve the complete non-media result in the exact requested format, including JSON, text, SRT, or VTT.

For every requested media deliverable listed anywhere in the response, download all of them rather than returning only the first URL. Before downloading, derive its expected MIME type or family from response metadata when present, then the selected output forma

Full SKILL.md on ClawHub

Install kling in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the kling skill do?

Generate images and video with Kling through RunAPI. Use when the user asks an agent for Kling standard images, image series, ecommerce or webpage long images, video generation, or video editing. Default to the RunAPI CLI for one-off generation; use SDKs only when the user is integrating RunAPI into an app or backend.

How do I install the kling skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the kling skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare kling with