kling
FreeNo executable scriptsNot checkedGenerate images and video with Kling through RunAPI. Use when the user asks an agent for Kling standard images, image series, ecommerce or webpage long…
by runapi-ai1,987 installs in other catalogsAbout 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
klingservice in therunapiCLI. 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. Usetext_to_imagefor bothkling-v4-imageandkling-v4-long-image. - Standard image references use ordered
source_image_urlsas@image_Nand namedelementsas@name. Names are case-insensitively unique, reserveimage_Nandobject_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_typeacceptscustomorautomaticand defaults tocustomonly in multi-shot mode. Omitshot_typefor single-shot requests. - Custom storyboards require 1-6
multi_promptshots with integer durations from 1-12 seconds. Their sum must equal the totalduration_secondsfrom 3-15, default 5. Each shot prompt allows 500 effective characters, with each named@elementreference counting as 37. - Automatic storyboarding requires
promptand omitsmulti_prompt.enable_soundis 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
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
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
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
by Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
by GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
by GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
by GitHub