Agent skill · creative production · jeremylongshore

klingai-video-extension

Extend video duration using Kling AI continuation. Use when creating

Why this skill is useful

Adds executable scripts for video extension using the Kling AI API that are not publicly documented.

What it needs

Requires npm installed locally. Requires kling-ai account access. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Kling AI Video Extension Overview Extend an existing video by appending additional seconds. The extension endpoint takes the taskid of a completed video and generates a seamless continuation. Endpoint: POST https://api.klingai.com/v1/videos/video-extend Request Parameters Parameter Type Required Description ----------- ------ ---------- ------------- taskid string Yes Task ID of the completed source video prompt string No Motion/scene description for extension duration string No Extension length: "5" (default) mode string No "standard" or "professional" modelname string No Default: "kling-v2-master" callbackurl string No Webhook for completion Basic Extension Chain Multiple Extensions Usage: Build a 20-Second Video Cost Each extension costs the same as a new generation: Extension Duration Standard Professional ------------------- ---------- ------------- 5 seconds 10 credits 35 credits A 20-second video (initial + 3 extensions) costs 40 credits in standard mode. Error Handling Error Cause Fix ------- ------- ----- Invalid taskid Source task doesn't exist Verify taskid is from a completed generation Source not complete Extending a task still processing Wait for source task to reach succeed status Extension failed Prompt conflict with source Align extension prompt with original scene Prerequisites A completed, rights-cleared or synthetic source draft, approved extension brief, authorized workspace and credit budget, policy review, draft-only destination, and a rollback/removal owner. Instructions 1. Confirm source ownership, completion state, and approved continuity brief before creating an extension; do not use private, unlicensed, or policy-restricted material. 2. Submit one watermarked draft canary within the approved duration and credit cap, then verify policy, rights, quality, and destination controls. 3. Halt on continuity, policy, rights, or budget drift and delete the extension task instead of publishing it. 4. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/klingai-video-extension

View the source on GitHub

Browse the @skills marketplace