kling-advanced-lip-sync
БесплатноБез исполняемых скриптовНе проверенProduction guidance for Kling AI Open Platform Advanced Lip-Sync. Use for identifying/selecting one face in an existing video, assigning URL/Base64 or Kling…
от calesthio★ 262 звезды на GitHubОб этом скилле
Kling Advanced Lip-Sync
Use this skill for Kling AI Open Platform's documented Advanced Lip-Sync workflow on an existing video. It is distinct from Avatar, which generates a new talking performance from a still image and audio.
Verification and evidence
- Documented fact: behavior stated in first-party Kling Open Platform pages.
- Production heuristic: a practical sync/repair recommendation not guaranteed by Kling.
- Empirical observation: a result measured from an actual task/output.
Facts were verified 2026-07-12. Endpoint visibility, entitlement, pricing, callback behavior, retention, limits, and policy can change. Re-check official documentation, authenticated console, account package, and applicable agreement before paid use.
Official workflow
Base URL in current examples:
https://api-singapore.klingai.com
Operations:
POST /v1/videos/identify-facePOST /v1/videos/advanced-lip-syncGET /v1/videos/advanced-lip-sync/{id}GET /v1/videos/advanced-lip-sync
Although the navigation may call a tab Face Recognition, the operation is Identify Face. Describe it as face identification/detection for selecting a visible face; do not claim general identity matching.
Authentication
Official docs use JWT Bearer authentication derived from Kling Open Platform access/secret credentials:
Authorization: Bearer ${KLING_JWT}
Content-Type: application/json
Follow the current authentication page for token construction and lifetime. Generate server-side, use least privilege, and never place keys/secrets/JWTs in browser code, logs, callbacks, or fixtures.
Validate the video source
Identify Face accepts exactly one:
video_id: Kling-generated video from the documented recent window;video_url: accessible external video.
They are mutually exclusive.
Current external-video constraints include .mp4 or .mov, 2-60 seconds, at most 100 MB, 720p or 1080p, and width/height each 512-2160 pixels. Current docs also limit Kling video_id recency to 30 days. Kling performs content validation.
Preflight codec/container, duration, dimensions, file size, URL reachability, audio presence, face visibility, cuts, occlusion, and consent. Do not upload a private URL that Kling cannot access or a mutable URL that can change between operations.
Identify and select a face
Example:
POST /v1/videos/identify-face
{"video_url":"https://example.com/source.mp4"}
The response includes session_id and face_data[]; each face can include face_id, face_image, start_time, and end_time in milliseconds.
Present detected face crops/intervals to the user or authorized operator. If several faces exist, require an explicit face_id unless a documented, approved selection rule exists. Record selected face, reason, and interval.
face_choose is an array, but current docs explicitly say only one-person lip-sync is supported. Do not claim simultaneous multi-speaker replacement. Re-identify after any source-video edit; do not reuse a stale session against changed media.
Kling does not publicly establish session expiry/reuse semantics in the verified docs. Keep identify/create close together and handle invalid sessions as a new identification job.
Prepare audio and timing
For the selected face, provide exactly one:
audio_id: recent Kling TTS audio;sound_file: accessible URL or Base64 audio.
They are mutually exclusive.
Current external-audio constraints include .mp3, .wav, .m4a, or .aac, 2-60 seconds, and at most 5 MB. Current docs limit audio_id recency to 30 days.
Timing fields are milliseconds:
sound_start_time: crop start in source audio;sound_end_time: crop end;sound_insert_time: insertion point in source video.
Validate:
$$ cropDuration = soundEnd - soundStart \ge 2000\text{ ms} $$
The crop must fit inside the source audio, the inserted range must fit inside the video, and the inserted range must overlap the selected face's detected appearance interval by at least two seconds.
Use explicit millisecond arithmetic. Never pass seconds by accident.
Mix controls:
sound_volume: current documented range 0-2, default 1;original_audio_volume: range 0-2, default 1; no effect for silent source.
Preserve ambience when it matters, but ensure source dialogue does not create double speech. Review the final mix separately from lip motion.
Create the task
Illustrative request:
{
"session_id": "<identify-face-session>",
"face_choose": [
{
"face_id": "<approved-face-id>",
"sound_file": "https://example.com/dialogue.wav",
"sound_start_time": 0,
"sound_end_time": 3000,
"sound_insert_time": 1000,
"sound_volume": 1,
"original_audio_volume": 0.25
}
],
"external_task_id": "scene-014-take-03",
"callback_url": "https://example.com/hooks/kling",
"watermark_info": {"enabled": false}
}
This assumes a three-second crop, suffi
Установить kling-advanced-lip-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл kling-advanced-lip-sync?
Production guidance for Kling AI Open Platform Advanced Lip-Sync. Use for identifying/selecting one face in an existing video, assigning URL/Base64 or Kling TTS audio, cropping and inserting audio in milliseconds, mixing original sound, creating and monitoring tasks, downloading expiring results, consent/privacy review, sync QA, and repair. Do not use for still-image avatar generation or ordinary Kling video generation.
Как установить скилл kling-advanced-lip-sync?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл kling-advanced-lip-sync запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от 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…
от 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…
от GitHub