Skip to main content
POST
cURL
Use this endpoint to extend an existing Kling video as a follow-up task.

Before you call it

  • Start from a finished Kling video result
  • Pass the video_id from the parent task result
  • Pass the parent task_id together with the video_id
  • Use a source video that is extension-compatible; unsupported source videos return HTTP 400 instead of creating an extension task
  • A completed 5 s Kling v1 or v1-6 text-to-video or image-to-video parent is a safer starting point for extension compatibility
  • Add prompt, negative_prompt, or cfg_scale only when you need to steer the continuation
  • Run the extension on the same account context as the parent task
  • Trigger the extension promptly before parent-task resources expire

Task flow

1

Finish the parent video task

Create the original Kling video and wait until its result is available.
2

Submit the extension request

Send the parent task_id, video_id, and optional prompt, then save the returned task id.
3

Poll the extension task

Continue with Get a Kling task until the extended video reaches a terminal state.
For the complete parameter reference, see the official Kling documentation.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Body

application/json
task_id
string
required

Parent Kling task id for the extension-compatible video being extended.

video_id
string
required

Video id from a parent task result. The source video must be extension-compatible; unsupported videos return HTTP 400.

prompt
string

Text prompt describing the desired motion for the extended segment. Maximum 500 characters.

callback_url
string

Webhook URL to receive task status updates when the task completes.

negative_prompt
string

Elements to avoid in the extension.

cfg_scale
number

Prompt adherence strength for the extension. Range: 0-1.

Response

200 - application/json

Successful Response

code
integer
required

Error code; specifically define the error code

message
string
required

error message

request_id
string
required

Request ID, system-generated, for tracking requests, troubleshooting issues

data
object
required
Last modified on June 25, 2026