Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Extends a completed Kling AI video by appending seconds through its video-extend API endpoint.
75% 100%+25 ptsof test cases passed
Passed 24 of 24 test cases with the skill, and 18 of 24 without it.
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?
Identifies default model_name as kling-v2-master.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
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",
Next to this one in the catalogue, plus more from the same author.