Логотип Kling Advanced Lip Sync

Kling Advanced Lip Sync

Спільнота
calesthio
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.

Огляд

Видавецьcalesthio
Репозиторійgenerative-media-skills
Назва навичкиkling-advanced-lip-sync
Зірки
212
Форки
45
Файли в пакеті
1
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: calesthio. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Kling Advanced Lip Sync у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/calesthio/generative-media-skills/tree/main/skills/providers/lip-sync/kling-advanced-lip-sync
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/calesthio/generative-media-skills.git /tmp/generative-media-skills
mkdir -p .claude/skills
cp -r /tmp/generative-media-skills/skills/providers/lip-sync/kling-advanced-lip-sync .claude/skills/kling-advanced-lip-sync
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Kling Advanced Lip Sync в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Kling Advanced Lip Sync, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Kling Advanced Lip Sync не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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:

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

Operations:

  1. POST /v1/videos/identify-face
  2. POST /v1/videos/advanced-lip-sync
  3. GET /v1/videos/advanced-lip-sync/{id}
  4. 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:

http
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:

http
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:

json
{
  "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, sufficient video duration, and at least two seconds of overlap with the selected face interval.

external_task_id uniqueness is caller-owned. Store it with the system task_id, source/audio hashes, session/face IDs, timings, volumes, attempt, consent record, and cost preflight.

Monitor and reconcile

Task statuses:

  • submitted
  • processing
  • succeed
  • failed

Use the single-task endpoint as source of truth. Callbacks can reduce polling latency, but production handling should be idempotent and accept duplicates/out-of-order events. Unless the current callback page documents a signature mechanism, do not invent one. Retrieve the task before trusting or publishing callback data.

List queries use current pagination ranges; do not scan the list when a task ID is known.

Retry transient rate/concurrency/server errors with bounded jitter. Do not retry auth, permission, parameter, policy, or invalid-media failures unchanged. Preserve provider code/message/request ID.

Cost, access, and result custody

The public pricing page did not clearly establish a dedicated Advanced Lip-Sync list price during verification. Do not assume Avatar pricing applies. Check authenticated console/package entitlement and create a dated budget approval.

Successful task responses expose final deduction fields; reconcile actual units/balance against the estimate.

Generated media is documented as deleted after 30 days. Download promptly into controlled storage, checksum, probe, and preserve provenance. Do not use provider URLs as permanent delivery storage.

Endpoint entitlement and concurrency are account/package dependent. Errors such as rate, concurrency, package exhaustion, or permission denial should be surfaced precisely.

Consent, privacy, and rights

This workflow processes recognizable face video and voice/audio. Require:

  • explicit recorded authority for likeness and audio/voice;
  • intended use, audience, territory, term, modification scope, revocation, and retention;
  • additional review for minors, employees, public figures, political use, deceased persons, and sensitive contexts;
  • no deceptive impersonation or undisclosed material alteration;
  • access controls and deletion procedure for source video, face crops, audio, sessions, and output;
  • platform/legal disclosure and provenance where required.

Kling's technical face_id does not prove identity or consent. Review current API privacy/terms for hosting, storage, transfer, processing, model improvement, and enterprise exceptions. Do not make unqualified training, residency, or deletion claims.

Sync QA and repair

Kling does not publish a formal sync-quality metric or repair API. The following are production heuristics:

  1. Review normal speed and frame-by-frame around plosives, labials, word starts, and phrase ends.
  2. Check mouth motion begins/ends with speech rather than room tone.
  3. Verify the selected face stays visible across the insertion.
  4. Inspect profiles, cuts, occlusion, hand-over-mouth, facial hair, and motion blur.
  5. Check jaw, teeth/tongue, frozen expression, identity drift, and surrounding pixels.
  6. Check ambience continuity and double speech after mix changes.
  7. Repair timing first by recropping or changing insertion time.
  8. Shorten difficult segments rather than repeatedly processing a full clip.
  9. Preserve an untouched master and compare outside the altered range.

Do not claim a rerun will necessarily improve output. Change one variable, record it, and compare.

Example 1: single-speaker localization insert

This is a complete example, not a mandatory formula.

Intent: replace a three-second line in an authorized interview while keeping room ambience.

Preflight a 12-second 1080p MP4 under 100 MB, confirm one visible consented speaker, and provide a 3.2-second WAV under 5 MB. Identify faces, select the approved face whose interval covers seconds 2-10, then crop audio 100-3100 ms and insert at 3500 ms. This yields a 3000 ms insertion within video and at least two seconds inside the face interval. Set source dialogue low enough to avoid doubling while retaining ambience.

Monitor by task ID, download/checksum immediately, then review consonants, start/end motion, identity, occlusion, and ambience. If sync starts late, adjust insertion/crop before changing volume or regenerating audio.

Example 2: multiple detected faces

This is a complete example, not a mandatory formula.

Intent: replace one host line in a two-person panel clip.

Identify Face returns two faces with distinct crops and intervals. Present both; the authorized editor selects the host. Because only one-person lip-sync is documented, create one task for that face and do not promise simultaneous guest replacement. Choose a segment where the host remains visible and the guest does not occlude the mouth. Keep original audio if only ambience remains; otherwise use a prepared mix.

If the requirement becomes replacing both speakers, stop and choose another supported workflow rather than chaining undocumented multi-face tasks.

Sources

Official sources verified 2026-07-12:

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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 у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Kling Advanced Lip Sync — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Kling Advanced Lip Sync у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/calesthio/generative-media-skills/tree/main/skills/providers/lip-sync/kling-advanced-lip-sync. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Kling Advanced Lip Sync?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Kling Advanced Lip Sync?

Зі скількома забажаєте. У TypingMind ви можете використовувати Kling Advanced Lip Sync із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Kling Advanced Lip Sync?

Так. На GitHub цю навичку публікує calesthio за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇