Agent skill

Kling Official

by calesthio in calesthio/OpenMontage

Official Kling direct API guidance for OpenMontage providers.

AGPL-3.0Auto-check passedMedia & Creative

Install Kling Official

skills CLI
$ npx skills add calesthio/OpenMontage --skill kling-official -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install calesthio/OpenMontage kling-official --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/calesthio/OpenMontage.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/kling-official .claude/skills/kling-official && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kling-official
GitHub stars
66k
Token cost
~2.4k tokens
SKILL.md length
1,133 words
Files
1
Skills in repo
41
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Official Kling direct API guidance for OpenMontage providers.

  • Works in 2 steps: POST /v1/videos/identify-face with… → POST /v1/videos/advanced-lip-sync with…
  • Tasks that involve AI video generation
  • SKILL.md covers Provider Split, Auth And Endpoint, Task Protocols and Omni References, plus 13 more sections
  • Reaches api-singapore.klingai.com; needs KLING_API_KEY and FAL_KEY

What it does

Kling Official is an agent skill from calesthio/OpenMontage. Official Kling direct API guidance for OpenMontage providers. Use before calling klingofficialvideo, klingofficialimage, klingtts, klingavatar, or klinglipsync.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering AI video generation and Text to speech and voice. It works with fal. The repository describes itself as: World's first open-source, agentic video production system. 12 production pipelines, 100+ tools, 700+ agent skill and production-knowledge files. Turn your AI coding assistant… The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve AI video generation
  • Tasks that involve Text to speech and voice

Example prompts

  • “/kling-official”

Requirements

  • A credential in KLING_API_KEY
  • A credential in FAL_KEY

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. POST /v1/videos/identify-face with video_id or video_url; read faces from data.face_data[]
  2. POST /v1/videos/advanced-lip-sync with session_id and one face_choose[] item containing face_id, audio_id or sound_file, and the sound…

What it can do on your machine

Read from SKILL.md and the folder at commit 9327439. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api-singapore.klingai.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • KLING_API_KEY
    • FAL_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kling Official loads about 2.4k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 1,133 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from calesthio/OpenMontage at commit 9327439, republished under its AGPL-3.0 licence (© calesthio). 1,133 words, ~2,361 tokens.

Download SKILL.mdSave it as .claude/skills/kling-official/SKILL.md (or your agent's skills folder).
name
kling-official
description
Official Kling direct API guidance for OpenMontage providers. Use before calling `kling_official_video`, `kling_official_image`, `kling_tts`, `kling_avatar`, or `kling_lip_sync`.

Kling Official Direct API

Use this skill for OpenMontage tools with provider="kling_official". This is not the fal.ai Kling gateway. Official Kling uses KLING_API_KEY, optional KLING_API_BASE_URL, and Authorization: Bearer <KLING_API_KEY>.

Provider Split

  • kling_video uses fal.ai, FAL_KEY, fal.ai queue URLs, and provider="kling".
  • kling_official_video uses Kling official API, KLING_API_KEY, official task protocols, and provider="kling_official".
  • kling_official_image uses the same official auth and task protocol for image generation.
  • kling_tts uses the official audio TTS endpoint and stays in the existing tts capability.
  • kling_avatar and kling_lip_sync use official avatar/lip-sync endpoints and stay in the existing avatar capability. They do not replace local talking_head or lip_sync.

Never silently switch between these paths. If the selected provider is unavailable, surface the blocker and ask before substituting.

Auth And Endpoint

Default base URL:

text
https://api-singapore.klingai.com

Users may override it with KLING_API_BASE_URL, for example for a regional endpoint. All requests send JSON and:

text
Authorization: Bearer <KLING_API_KEY>

Task Protocols

Classic APIs:

  • Create ID path: data.task_id
  • Statuses: submitted, processing, succeed, failed
  • Result paths: data.task_result.videos[], data.task_result.images[], data.task_result.audios[]

Turbo APIs:

  • Create ID path: data.id
  • Poll path: GET /tasks?task_ids=<id>
  • Statuses: submitted, processing, succeeded, failed
  • Result path: data[0].outputs[]

Keep the parsers separate. Do not write a fuzzy parser that guesses between task_id and id or between succeed and succeeded.

Omni References

Video Omni and Image Omni stay inside the existing provider tools through api_family="omni". Do not create selector-level Omni operations.

Video Omni accepts official reference structures:

  • image_list[] with image_url and optional type such as first_frame or end_frame.
  • video_list[] with video_url, official refer_type values such as feature or base, and optional keep_original_sound.
  • element_list[] with official element_id values.
  • Structured multi_prompt[]; do not split natural language into shots automatically.

Local image references may be normalized through tools/_kling/media.py. Local video paths must not be silently uploaded through fal.ai; ask for or require a reachable URL.

Image Omni accepts image_list[] with official image values. Prompt placeholders such as <<<image_1>>> must map stably to the provided image order. If the prompt already contains placeholders, validate that the referenced images exist and do not insert duplicates.

Capability Boundaries

TTS, avatar, and lip sync are provider additions to existing OpenMontage capabilities. Audio effects and video effects are official Kling endpoints, but they are not registered as default OpenMontage tools until a pipeline has a stable capability slot for them.

  • Do not add sound_effects or video_effects capabilities from inside a provider implementation.
  • Do not let video effects enter the ordinary video_generation selector path.
  • Do not disguise short sound effects as long background music unless a pipeline explicitly consumes that shape and the tool's best_for / not_good_for says so.

Video Parameters

Use operation for OpenMontage semantics:

  • text_to_video
  • image_to_video
  • reference_to_video

Use api_family for official protocol choice:

  • classic
  • turbo
  • omni

Important constraints:

  • Official video provider input schema must not expose top-level image_url; use reference_image_url or reference_image_path.
  • Classic image-to-video accepts reference_image_url or a local path converted to raw base64 in official field image.
  • Turbo image-to-video requires a URL first frame. Do not upload local files through fal.ai as a fallback.
  • Send aspect_ratio only where the current schema supports it: Classic text-to-video, Turbo text-to-video, and Video Omni.
  • Default paid path should avoid 4k, native sound, or batch behavior unless explicitly selected.

Image Parameters

Use api_family="generation" for /v1/images/generations and api_family="omni" for /v1/images/omni-image.

Generation/edit path:

  • prompt is required and should stay under the official 2500 character limit.
  • image_url passes through as official image.
  • image_path is converted to raw base64 and sent as official image.
  • image_reference can be subject or face.

Omni path:

  • Put references in image_list[] using official image values.
  • Use prompt placeholders such as <<<image_1>>> only when the prompt needs to bind a specific reference image.

TTS Parameters

kling_tts uses:

  • text
  • voice_id
  • voice_language, currently zh or en
  • voice_speed

Require an explicit voice_id unless an official account-specific default has been verified. Do not hard-code a made-up voice. Download every returned audio item, set data.output_path to the first local file, and include voice_id, voice_language, voice_speed, task_id, and non-zero cost_usd.

Avatar Parameters

kling_avatar uses /v1/videos/avatar/image2video and accepts:

  • avatar image via URL or local path converted to raw base64
  • audio_id or sound_file
  • optional prompt
  • mode, such as std or pro

Keep it separate from local talking_head. Pipelines that want Kling avatar output must list and choose it explicitly.

Show full SKILL.md (446 more words)Show less

Lip Sync Parameters

kling_lip_sync has two steps:

  1. POST /v1/videos/identify-face with video_id or video_url; read faces from data.face_data[]
  2. POST /v1/videos/advanced-lip-sync with session_id and one face_choose[] item containing face_id, audio_id or sound_file, and the sound start/end/insert times

Local video paths must not be silently uploaded through fal.ai or any other provider. If multiple faces are returned and the user did not pass face_id or face_choose, stop and return the face list for confirmation unless auto_select_face=True was explicitly set. If auto-selecting, record the selection reason and selected face in the result/artifact.

Audio Effects And Video Effects

Official Kling audio effects (/v1/audio/text-to-audio, /v1/audio/video-to-audio) and video effects (/v1/videos/effects) are intentionally not default OpenMontage selector tools. Record the non-mapping reason in docs/tests instead of registering tools that current pipelines might misuse.

Elements Helper

Elements are an internal Kling Official helper, not a new OpenMontage tool capability. Use tools/_kling/elements.py to normalize element_list[].element_id, optionally query read-only element endpoints, and record element metadata when queried. Do not create or delete elements from the default provider path.

Account Usage Helper

Account Usage is diagnostic only. Use tools/_kling/account.py for low-frequency /account/costs checks, with local cache and throttle protection. Do not call it before every generation and do not put it in selectors or production pipeline stages.

For 1101 or 1102, surface that the account or resource pack is exhausted and include an account-usage diagnostic hint.

Callback Notes

Providers may accept callback_url, but polling remains the default execution mode.

  • Classic and Omni paths pass callback_url at the top level.
  • Turbo paths pass it as options.callback_url.
  • Successful results should record callback_requested=true, polling_used=true, the callback_url, and task_id.
  • Validate callback URLs before sending; only absolute http or https URLs should pass.

Error Handling

Surface official code, message, and request_id whenever available.

Do not retry:

  • Auth failures: 1000-1004
  • Balance/resource-pack exhaustion: 1101, 1102
  • Permission/model access: 1103
  • Parameter errors: 1200, 1201
  • Safety policy: 1301

Limited retry is acceptable for:

  • 1302 request too fast
  • 1303 concurrency/resource-pack slot limit
  • 5000, 5001, 5002 server/maintenance/backlog errors

For 1303, explain that the account hit a concurrency or resource-pack slot limit.

Cost Governance

Official Kling is a paid remote API. Provider tools must return non-zero conservative estimates from estimate_cost() and include cost_usd on successful paid results. Treat estimates as low-confidence until account usage reconciliation is implemented. High-cost Omni inputs such as multiple references, element IDs, result_type="series", mode="4k", and sound="on" must increase or flag the cost estimate.

Prompt Notes

For video, start from the universal OpenMontage video prompt skeleton: subject, subject motion, scene, spatial framing, and camera. Kling tends to respond well to clear temporal action order, camera movement verbs, and concise negative prompts. For reference workflows, state what should stay consistent from the reference and what should change.

© calesthio, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/kling-official of calesthio/OpenMontage.

Open the folder on GitHubat commit 9327439

Compare with similar skills

Kling Official next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kling Official compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kling Official this skillcalesthio/OpenMontage66k—~2.4kAutomated safety check: PassAGPL-3.0
Fal AImikeOnBreeze/cc-crossbeam293—~1.9kAutomated safety check: NotesMIT
Fal AI Mediaaffaan-m/ECC277k4 repos~1.9kAutomated safety check: PassMIT
Narrator AI CLINarratorAI-Studio/narrator-ai-cli-skill3k—~4.5kAutomated safety check: PassMIT
Ergo Remotion Videoitwanger/toBeBetterJavaer18k—~1.1kAutomated safety check: PassNone
Wedding Video Guided Wizardaaronyi97/wedding-video-guided-wizard310—~1kAutomated safety check: PassMIT

Similar skills

  • Fal AI

    mikeOnBreeze/cc-crossbeam

    This skill enables AI video generation from images AND text-to-speech voiceover generation using Fal.ai's API.

    293 GitHub stars~1.9k tokensUpdated 7 mo ago
    Media & CreativeAuto-check: notes
  • Fal AI Media

    affaan-m/ECC

    Unified media generation via fal.ai MCP — image, video, and audio.

    277k GitHub starsUsed in 4 repos~1.9k tokens
    Media & CreativeAuto-check passed
  • Narrator AI CLI

    NarratorAI-Studio/narrator-ai-cli-skill

    AI 电影/短剧解说视频自动生成(AI 解说大师 CLI Skill)。当用户需要创建电影解说视频、短剧解说、影视二创、AI 配音旁白视频、film commentary、video narration、drama dubbing、movie narration 时触发。内置电影素材库、BGM、多语种配音、解说模板。通过 narrator-ai-cli 命令行实现:搜片→选模板→选…

    3k GitHub stars~4.5k tokensUpdated 3 mo ago
    Media & CreativeAuto-check passed
  • Ergo Remotion Video

    itwanger/toBeBetterJavaer

    把口播稿做成二哥风格的 Remotion 视频,包括整理视频用稿、火山 TTS 配音、音画对齐、逐章动画预览和导出带配音的 MP4。用户说“做视频”“口播稿转视频”“Remotion”“继续做下一章”“出片”“渲染”“改读音”“配音读错了”,或给出 docs/src/ai/video/ 下的稿子要做成视频时使用。共享工具、配置和素材在…

    18k GitHub stars~1.1k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Wedding Video Guided Wizard

    aaronyi97/wedding-video-guided-wizard

    Guide a creator through a real couple's custom wedding video, from a shareable story intake card and Kimi writing pack through narration, external GPT image prompts, image-to-video packs, music and…

    310 GitHub stars~1k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • Video-to-Sprite Animation Generator

    0x0funky/agent-sprite-forge

    Turns one approved master still into a full set of animated action clips for a character, one image-to-video take per action, then packages them for a game engine.

    4.4k GitHub stars~3.8k tokensUpdated 4 days ago
    Media & CreativeAuto-check passed

More from calesthio/OpenMontage

All 41 skills in this repo
  • Video Understand

    calesthio/OpenMontage

    Understand video content locally using ffmpeg frame extraction and Whisper transcription.

    66k GitHub stars~841 tokensUpdated 7 days ago
    Auto-check passed
  • Avatar Video

    calesthio/OpenMontage

    Create AI avatar videos with precise control over avatars, voices, scripts, scenes, and backgrounds using HeyGen's v2 API.

    66k GitHub stars~1.6k tokensUpdated 7 days ago
    Auto-check passed
  • D3 Viz

    calesthio/OpenMontage

    Creating interactive data visualisations using d3.js. An agent skill from calesthio/OpenMontage.

    66k GitHub starsUsed in 3 repos~5.4k tokens
    Auto-check passed
  • Create Video

    calesthio/OpenMontage

    Create videos from a text prompt using HeyGen's Video Agent.

    66k GitHub stars~1.3k tokensUpdated 7 days ago
    Auto-check passed
  • Threejs World Generation

    calesthio/OpenMontage

    Build deterministic, editable, free-viewpoint Three.js worlds from text or structured briefs.

    66k GitHub stars~2k tokensUpdated 7 days ago
    Auto-check passed
  • Video Edit

    calesthio/OpenMontage

    Edit videos locally using ffmpeg. An agent skill from calesthio/OpenMontage.

    66k GitHub stars~855 tokensUpdated 7 days ago
    Auto-check: notes

Works with

Questions about Kling Official

What does Kling Official do?

Official Kling direct API guidance for OpenMontage providers. Kling Official is an agent skill from calesthio/OpenMontage. Official Kling direct API guidance for OpenMontage providers.

When should I use Kling Official?

Kling Official fits situations like: tasks that involve AI video generation; tasks that involve Text to speech and voice.

How do I install Kling Official in Claude Code?

Run `npx skills add calesthio/OpenMontage --skill kling-official -a claude-code`. Or copy the skill folder (.agents/skills/kling-official in calesthio/OpenMontage) into .claude/skills/kling-official in your project. Claude Code loads it when a task matches its description.

How do I install Kling Official in Codex?

Run `npx skills add calesthio/OpenMontage --skill kling-official -a codex`. Or copy the skill folder (.agents/skills/kling-official in calesthio/OpenMontage) into .agents/skills/kling-official in your project. Codex loads it when a task matches its description.

Can I use Kling Official in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add calesthio/OpenMontage --skill kling-official -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kling-official, .gemini/skills/kling-official, .github/skills/kling-official and .opencode/skills/kling-official in your project.

What does Kling Official need to run?

Going by SKILL.md and its folder, Kling Official needs credentials named KLING_API_KEY and FAL_KEY. Our summary lists: A credential in KLING_API_KEY; A credential in FAL_KEY.

Does Kling Official access the network?

SKILL.md names 1 domain. In commands or code: api-singapore.klingai.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Kling Official safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kling Official use?

Kling Official is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kling Official use?

About 2.4k tokens (SKILL.md is roughly 9.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kling Official?

Skills that share tags, products or a category with Kling Official: Fal AI (mikeOnBreeze/cc-crossbeam, 293 stars), Fal AI Media (affaan-m/ECC, 277k stars), Narrator AI CLI (NarratorAI-Studio/narrator-ai-cli-skill, 3k stars) and Ergo Remotion Video (itwanger/toBeBetterJavaer, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kling Official?

calesthio (a GitHub user) maintains it in calesthio/OpenMontage, which has 65,930 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on October 3, 2026.

Source: calesthio/OpenMontage on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.