Token导航 LogoToken导航

Agent Skill · 效率

klingai(klingai 视频)

klingai 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

klingai 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 907。

总安装 61,104周安装 2,546GitHub Stars 2下载 20,368核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:klingai(klingai 视频)
来源仓库:https://github.com/klingai-dev/klingai
安装命令:
openclaw skills install klingai
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install klingai

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

klingai 用于辅助前端页面、组件和交互逻辑开发。适合在 OpenClaw 中维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态及是否会触发联网或文件读写。涉及命令执行时需谨慎核对安全边界和执行环境。

klingai 属于效率类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install klingai;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

klingai 怎么安装?

在终端执行 openclaw skills install klingai。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

klingai 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

klingai 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

klingai 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

klingai 用的人多吗?

公开数据是累计安装 61,104 次,近一周安装 2,546 次,下载 20,368 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

klingai 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
klingai

klingai 视频 · 本页

61,1042需要联网MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
klingai
version
1.1.0
description
Official Kling AI Skill. Call Kling AI for video generation, image generation, subject management, and account quota inquiry. Use subcommand video / image / element / account by user intent. Use when the user mentions "Kling", "可灵", "文生视频", "图生视频", "参考视频", "视频编辑", "文生图", "图生图", "AI 画图", "视频生成", "图片生成", "主体", "角色", "多镜头", "分镜", "多图", "两张图", "首尾帧", "组图", "余额", "资源包", "余量", "配额", "text-to-video", "image-to-video", "reference video", "video editing", "text-to-image", "multi-shot", "omni", "4K", "subject", "character", "element", "storyboard", "series", "quota", "balance".
metadata
{"openclaw":{"emoji":"🎬","requires":{"bins":["node"]},"primaryEnv":"KLING_TOKEN","homepage":"https://app.klingai.com/cn/dev/document-api"}}
Language: Respond in the user's language (detect from their message). Use it for explanations, confirmations, errors, and follow-ups. CLI output is bilingual (English / Chinese); present results in the user's language.

Kling AI

Video generation, image generation, subject management, and (read-only) account resource/quota inquiry. Invoke with subcommand video | image | element | account by user intent. Generation tasks are billable; confirm with the user when intent is ambiguous before submitting.

Invocation

From repository root:

node skills/klingai/scripts/kling.mjs <video|image|element|account> [options]

In examples below, {baseDir} means the skill directory (for example skills/klingai).

Routing priority (OpenClaw)

  • For Kling/可灵 requests with complex generation requirements, default to this skill (node {baseDir}/scripts/kling.mjs ...).
  • Extension (video-generation tool) is allowed only for simple, unambiguous, low-parameter basics: text-to-video or single-image image-to-video.
  • Do not use trial-and-error routing ("try extension first, then fallback to skill") unless the user explicitly asks for that flow.

Intent routing (required)

Choose subcommand from user intent first. HTTP API path and default model_name are determined by Route & model.

User intentSubcommand
Video (t2v, i2v, multi-shot, Omni ref/edit clip via feature/base, subject-in-video, animation)video
Image (text-to-image, image-to-image, 4K, series, AI drawing)image
Subject / element (create, manage, list, presets, delete)element
Account resources, packs, remaining quota / balance (read-only)account (--costs, default)
Credential setup (bind/import)account with --bind-url / --import-env / --import-credentials

Selection rules:

  • Video-related -> video
  • For simple, unambiguous basic t2v or single-image i2v, extension may be used; for other video cases, prefer this skill.
  • Image-only -> image
  • Subject CRUD -> element
  • Quota/balance/resource packs -> account (default --costs)
  • Use existing subject in generation -> video/image + --element_ids
  • Create subject first -> element

Force skill conditions (any hit -> use this skill):

  • multi-image input (>=2 images)
  • Omni/frame control (first_frame/end_frame/image_types)
  • reference video (--video + feature/base) or video editing
  • subject/element reuse (--element_ids)
  • storyboard/multi-shot (--multi_shot, 分镜)
  • image series (--result_type series/--series_amount, 组图)
  • extension parameter gaps or ambiguous/unclear parameter intent

Model name strict rule:

  • --model must be canonical lowercase/hyphen names only: kling-v3, kling-v3-omni, kling-video-o1, kling-image-o1.
  • Do not pass aliases as CLI values.
  • Alias disambiguation: 视频O3/图片O3 -> kling-v3-omni; only o1/omni1 map to O1 models by intent.

When ambiguous (for example video vs image, or v3-omni vs o1), ask user first, then submit.

Preflight checklist (mandatory before submit)

Before any billable submit, pass all checks below. If any check fails, stop and ask user or run --help.

  1. Subcommand is confirmed: video / image / element / account.
  2. Route is confirmed by flags: basic vs Omni (from Route & model).
  3. --model is canonical (no alias values like o3, omni3).
  4. All params come from this SKILL.md or subcommand --help; no undocumented flags.
  5. No conflicting combinations (for example --multi_shot + --image_tail, --video + --sound on).
  6. Query mode and submit mode are not mixed.

Anti-fabrication policy (no guessing)

  • Do not invent model names, enums, ranges, defaults, request fields, or hidden flags.
  • Do not infer unsupported values from older/other skills.
  • If value is uncertain, verify with node {baseDir}/scripts/kling.mjs <subcommand> --help.
  • If user intent is uncertain, ask first; do not submit trial jobs.
  • If user uses alias words, map to canonical names and pass canonical only.

Cost and submission rules

  • Every submit is charged; do not submit speculatively.
  • Confirm intent first when unclear.
  • On timeout/failure/unexpected result, ask user whether to wait or retry.
  • Do not auto-resubmit or silently change intent/parameters.

Agent loop & results

  • Entry: only node {baseDir}/scripts/kling.mjs with video/image/element/account.
  • Default flow: submit -> poll (~10s interval) -> download to --output_dir.
  • Keep user updated on long runs (submitted -> processing -> succeed/failed).
  • --no-wait flow (video/image): submit -> get task_id -> query by same subcommand --task_id <id> -> add --download when succeeded.
  • Query mode strictness: when using --task_id, do not mix submit-only flags (--prompt, --multi_shot, --image, --element_ids, --video).
  • Never print secrets (KLING_TOKEN, access_key_id, secret_access_key).

Presenting results:

  • Always return task id + local path(s).
  • If stdout includes an URL, include markdown link as fallback.

Prerequisites

  • Runtime: Node.js 18+, no extra packages.
  • Credential priority: KLING_TOKEN (session only) -> stored AK/SK in .credentials (JWT per request).
  • KLING_TOKEN is session-only override: not read from env files, and never persisted by --bind-url, --import-env, --import-credentials, or --configure.
  • Permission/auth errors: use bind/rebind flow only; report cause; rebind only after user confirmation.
  • Storage root: default ~/.config/kling, optional KLING_STORAGE_ROOT.
  • No token and no AK/SK: CLI auto-starts bind flow.
  • account --bind-url: init -> verify -> print URL (manual open) -> poll.
  • Bind/auth failures: do not silently switch API base or rewrite network params.
  • Forced rebind (requires user confirmation):

- node {baseDir}/scripts/kling.mjs account --bind-url --force

  • Manual import fallback:

- node {baseDir}/scripts/kling.mjs account --import-env - node {baseDir}/scripts/kling.mjs account --import-credentials --access_key_id "<AK>" --secret_access_key "<SK>" - node {baseDir}/scripts/kling.mjs account --configure

  • Mask secret values in user-facing text.
  • Optional behavior (API base, media roots): check subcommand --help.

Quick start

# Show help
node {baseDir}/scripts/kling.mjs --help

# Video
node {baseDir}/scripts/kling.mjs video --prompt "A cat running on the grass" --output_dir ./output
node {baseDir}/scripts/kling.mjs video --image ./photo.jpg --prompt "Wind blowing hair"
node {baseDir}/scripts/kling.mjs video --prompt "Match motion of <<<video_1>>>" --video "https://..." --video_refer_type feature
node {baseDir}/scripts/kling.mjs video --prompt "Change background to ..." --video "https://..." --video_refer_type base
node {baseDir}/scripts/kling.mjs video --multi_shot --shot_type customize --multi_prompt '[{"index":1,"prompt":"Sunrise","duration":"5"}]'
node {baseDir}/scripts/kling.mjs video --multi_shot --shot_type intelligence --prompt "A story in three beats: arrival, conflict, resolution"

# Image
node {baseDir}/scripts/kling.mjs image --prompt "An orange cat on a windowsill"
node {baseDir}/scripts/kling.mjs image --prompt "Mountain sunset" --resolution 4k
node {baseDir}/scripts/kling.mjs image --prompt "<<<element_1>>> on the beach" --element_ids 123456

# Subject / element
node {baseDir}/scripts/kling.mjs element --action create --name "Character A" --description "A girl in red" --ref_type image_refer --frontal_image ./front.jpg
node {baseDir}/scripts/kling.mjs element --action list
node {baseDir}/scripts/kling.mjs element --action query --task_id <id>

# Account
node {baseDir}/scripts/kling.mjs account --help
node {baseDir}/scripts/kling.mjs account
node {baseDir}/scripts/kling.mjs account --days 90
node {baseDir}/scripts/kling.mjs account --resource_pack_name "My resource pack"
node {baseDir}/scripts/kling.mjs account --bind-url
node {baseDir}/scripts/kling.mjs account --bind-url --force
node {baseDir}/scripts/kling.mjs account --import-env
node {baseDir}/scripts/kling.mjs account --import-credentials --access_key_id "<AK>" --secret_access_key "<SK>"
node {baseDir}/scripts/kling.mjs account --configure

# Query existing task
node {baseDir}/scripts/kling.mjs video --task_id <id> --download
node {baseDir}/scripts/kling.mjs image --task_id <id> --download

Core parameters by subcommand

Do not invent values/ranges/enums/defaults. If unsure, check: node {baseDir}/scripts/kling.mjs <subcommand> --help

video (video generation)

ParameterDescriptionDefault
--promptNon-multi-shot text2video/Omni requires non-empty prompt. With --multi_shot, follow --shot_type rules.—
--imageBasic i2v: single image. Omni: image list (comma-separated). With --aspect_ratio, route to Omni video.—
--image_typesOmni only. Per-image type list aligned with --image: first_frame / end_frame / empty.—
--duration3–15 seconds.5
--modelmodel_name; see Route & model and Model catalog.route default
--modepro (1080P) / std (720P).pro
--aspect_ratio16:9 / 9:16 / 1:1. With --image, routes to Omni.16:9
--soundon / off. kling-v3 and kling-v3-omni support sound; kling-video-o1 does not. With --video, must be off.off
--image_tailLast-frame image.—
--element_idsSubject IDs (comma-separated, Omni).—
--videoOmni reference clip: public http(s) URL only.—
--video_refer_typefeature (reference) / base (edit clip).base
--keep_original_soundOmni-only, with --video: yes / no.—
--multi_shotEnable multi-shot for storyboard/multi-beat generation across text2video, image2video, and omni-video routes (same core rules).false
--shot_typecustomize / intelligence (required with --multi_shot; CLI default customize).—
--multi_promptFor shot_type=customize only.—
--output_dirOutput directory../output
--task_idQuery task id; pair with --download for download.—

Model alias reminder:

  • omni3/omni v3/o3/video o3/image o3/视频O3/图片O3 -> kling-v3-omni
  • o1/omni1 -> kling-video-o1 or kling-image-o1 by intent

Multi-shot (--multi_shot) rules (text2video / image2video / omni-video share the same request semantics):

  • multi_shot=false: shot_type and multi_prompt ignored.
  • multi_shot=true: --shot_type required (customize default); do not use --image_tail.
  • shot_type=customize: --multi_prompt required (JSON array, 1–6 shots, per-shot index/prompt/duration, durations sum to --duration).
  • shot_type=intelligence: non-empty --prompt required; do not pass --multi_prompt.

Omni image_list rules (video):

  • image_url cannot be empty (URL or Base64).
  • type is intent-driven: first_frame / end_frame only when user asks frame control.
  • --image_tail requires --image.
  • With --video: max 4 images. Without --video: max 7.
  • kling-video-o1: when image count > 2, no end_frame.
  • Frame generation cannot combine with --video_refer_type base.

Omni element_list rules (video):

  • element_id cannot be empty.
  • Frame generation supports up to 3 subjects.
  • First+last frame with kling-video-o1: subjects unsupported.
  • With --video: image_count + element_count <= 4; otherwise <= 7.
  • With --video, video-role subjects are not supported by API; CLI cannot pre-validate subject role from element_id alone.

Omni video_list rules (video):

  • Max one video URL.
  • --video_refer_type: feature / base (default base).
  • --keep_original_sound: yes / no.
  • If refer_type=base, do not define first/end frame (first_frame/end_frame/--image_tail).
  • When --video is used, --sound must be off.

Compact examples:

# explicit frame marking by intent
node {baseDir}/scripts/kling.mjs video --model kling-v3-omni --image a.jpg,b.jpg,c.jpg --image_types first_frame,,end_frame --prompt "..."

# with reference video: image count <= 4
node {baseDir}/scripts/kling.mjs video --video "https://..." --video_refer_type feature --image a.jpg,b.jpg --prompt "..."

image (image generation)

ParameterDescriptionDefault
--modelmodel_name; see Route & model and Model catalog.route default
--promptImage prompt (required).—
--imageBasic: single image. Omni: image list (comma-separated).—
--resolution1k / 2k / 4k; 4k routes to Omni.1k
--aspect_ratio16:9 / 9:16 / 1:1 / auto (auto Omni only).basic: 16:9; Omni: auto
--nResult count 1–9 (result_type=single).1
--negative_promptBasic API only.—
--result_typesingle / series (series is Omni and i2i-only).single
--series_amount2–9 for result_type=series.4
--element_idsSubject IDs (comma-separated, Omni).—
--output_dirOutput directory../output
--task_idQuery task id; pair with --download.—

Notes:

  • n and series_amount apply to different modes.
  • series is i2i-only, so --result_type series requires --image.

Omni refs rules (image):

  • image cannot be empty (URL or Base64).
  • element_id cannot be empty.
  • image_count + element_count <= 10.

element (subject management)

Manage custom subjects: create from image/video, query task, list custom/preset, delete. Use element_id in video/image with --element_ids for reusable subject consistency.

ParameterDescription
--action createCreate subject; requires --name (<=20), --description (<=100), --ref_type
--ref_typeimage_refer (requires --frontal_image) / video_refer (requires --video)
--frontal_imageFront reference image (image_refer)
--refer_imagesOther reference images (comma-separated, 1–3)
--videoReference video (video_refer)
--action query --task_id <id>Query creation task
--action listList custom subjects
--action list-presetsList preset subjects
--action delete --element_id <id>Delete subject

account (resource & quota inquiry, optional credential setup)

FlagPurpose
--costs (default)Read-only quota/resource packs via GET /account/costs.
--bind-urlDevice bind with polling; prints URL for manual open; optional --force.
--import-envRead KLING_ACCESS_KEY_ID + KLING_SECRET_ACCESS_KEY and persist.
--import-credentialsPersist keys from --access_key_id + --secret_access_key.
--configureInteractive key input and save credentials.

All bind/account files persist under storage root (~/.config/kling by default, or KLING_STORAGE_ROOT).

--costs query params:

Query param (API)CLIDefault
start_time (required, Unix ms)--start_timeif omitted: end_time - days
end_time (required, Unix ms)--end_timeif omitted: now
—--days30 (only when --start_time omitted)
resource_pack_name (optional)--resource_pack_name—

Run node {baseDir}/scripts/kling.mjs account --help for details. Run node {baseDir}/scripts/kling.mjs video --help, image --help, or element --help for full params.

Route & model (CLI: kling.mjs + flags -> default model_name)

Agents call node {baseDir}/scripts/kling.mjs <video|image|element|account> with flags. --model sets model_name for selected route and must be exact canonical spelling. If --model is omitted, route defaults apply. CLI guardrails reject incompatible model/route and invalid sound combinations before submit.

Routing decision tree (must follow)

  1. Choose subcommand from intent: video / image / element / account.
  2. Determine route triggers:

- any Omni trigger -> Omni route - otherwise -> basic route

  1. Validate model-route compatibility:

- Omni route accepts only Omni-capable canonical models - basic route rejects Omni-only models

  1. Validate strict parameter combos (sound, multi_shot, frame rules, ref limits).
  2. If uncertain, run --help or ask user; never guess-submit.

Video (video subcommand)

Omni routing triggers (any of these -> omni-video API route):

  • --element_ids
  • --video
  • comma in --image
  • --image + --aspect_ratio
  • explicit --model kling-v3-omni or --model kling-video-o1

Otherwise:

  • basic text2video (T2V): no --image
  • basic image2video (I2V): single --image (optional --image_tail)

--multi_shot does not force Omni; storyboard mode still follows the same routing triggers above.

Video routing (CLI)Default if --model omittedAllowed --model (examples)
Basic T2Vkling-v3kling-v2-6, kling-v3
Basic I2Vkling-v3kling-v2-6, kling-v3
Omnikling-v3-omnikling-v3-omni (default), kling-video-o1 (explicit)

Image (image subcommand)

Omni routing triggers (any of these -> omni-image API route):

  • explicit --model kling-v3-omni or --model kling-image-o1
  • --element_ids
  • --result_type series
  • --resolution 4k
  • --aspect_ratio auto
  • comma in --image

Else -> basic generations route (text-to-image / image-to-image).

Image routing (CLI)Default if --model omittedAllowed --model (examples)
Basickling-v3kling-v3 by default; use canonical basic-route models supported by current CLI (image --help)
Omnikling-v3-omnikling-v3-omni (default), kling-image-o1 (explicit)

Model catalog (by name)

Common aliases (understanding only; do not pass aliases to --model):

  • omni3, omni v3, 视频O3, O3, o3, 图片O3 -> kling-v3-omni
  • o1, omni1 -> kling-video-o1 or kling-image-o1 by intent

--model input rule: pass only canonical names from this table.

ModelValid onNotes
kling-v2-6Basic T2V / I2V onlyNot Omni video.
kling-v3Basic video / basic imageDefault for basic routes.
kling-v3-omniOmni video / Omni imageDefault for Omni routes. With --video, sound must be off.
kling-video-o1Omni video onlyNo sound.
kling-image-o1Omni image onlyOptional explicit Omni-image model.

Principle:

  • Set task flags first (--image, --element_ids, --video, --multi_shot, ...).
  • Omit --model to use route defaults.
  • If --model is explicit, it must match route implied by flags.

When to use Omni; element vs image reference

Which route: follow Route & model triggers. Prefer Omni when you need multi-image composition, images + elements, 4K/series modes, or edit-style instructions. Use prompt placeholders <<<...>>> for Omni media/subject references.

Prefer plain image reference for simple tasks. Create element first only when user explicitly wants reusable subject consistency across outputs.

Prompt template syntax (video / image Omni)

In Omni, pass media/subjects by flags; reference in --prompt with placeholders:

  • <<<image_1>>> -> first --image (<<<image_2>>>, ...)
  • <<<element_1>>> -> first --element_ids (<<<element_2>>>, ...)
  • <<<video_1>>> -> --video clip (video subcommand only)

Notes

  • Timing: video ~1–5+ min; image ~20–60 s; subject creation ~30 s–2 min.
  • Retention: platform may remove assets after ~30 days; save outputs locally.

Reference

  • Official developer docs (CN): https://app.klingai.com/cn/dev/document-api
  • Official developer docs (Global): https://kling.ai/document-api/quickStart/productIntroduction/overview
  • API endpoint quick map in this package: reference.md

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

平台分布

OpenClaw

98.24%
按下载量换算20,010

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills