Install any skill in seconds. Free to start, no credit card required.
Get Started Free →jeremylongshore/klingai-video-extension
Extend video duration using Kling AI continuation.
Passed 24 of 24 test cases with the skill, and 18 of 24 without it.
and 8 more in the full report
6 fixed18 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
When invoking the Kling AI video extension endpoint without specifying an explicit model_name in the JSON payload, which default model name is used by the system?
| Checked | Without skill | With skill |
|---|---|---|
| Identifies default model_name as kling-v2-master. | Missed | Passed |
The instructions your model reads when the skill loads.
Extend an existing video by appending additional seconds. The extension endpoint takes the task_id of a completed video and generates a seamless continuation.
Endpoint: POST https://api.klingai.com/v1/videos/video-extend
| Parameter | Type | Required | Description |
|---|---|---|---|
task_id | 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" |
model_name | string | No | Default: "kling-v2-master" |
callback_url | string | No | Webhook for completion |
import jwt, time, os, requests
BASE = "https://api.klingai.com/v1"
def get_headers():
ak, sk = os.environ["KLING_ACCESS_KEY"], os.environ["KLING_SECRET_KEY"]
token = jwt.encode(
{"iss": ak, "exp": int(time.time()) + 1800, "nbf": int(time.time()) - 5},
sk, algorithm="HS256", headers={"alg": "HS256", "typ": "JWT"}
)
return {"Authorization": f"Bearer {token}", "Content-Type": "application/json"}
# Step 1: Generate the initial 5s video
initial = requests.post(f"{BASE}/videos/text2video", headers=get_headers(), json={
"model_name": "kling-v2-master",
"prompt": "A rocket launching from a desert landscape, cinematic",
"duration": "5",
"mode": "standard",
test cases passed, vs 18 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.