Skip to content
Home

Kling Video Extend

kling-video-extend

Video duration extension interface, supporting forward and backward extension.

POST /v1/queue/kling-video-extend # Create task
GET /v1/queue/kling-video-extend/requests/{request_id}/status # Check status
GET /v1/queue/kling-video-extend/requests/{request_id}/response # Get result
PUT /v1/queue/kling-video-extend/requests/{request_id}/cancel # Cancel task
Окно терминала
curl --request 'POST' 'https://odirouter.ai/model/v1/queue/kling-video-extend' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--location \
--data-raw '{
"video_id": "",
"prompt": "A beautiful sunset scene",
"negative_prompt": "blurry, low quality",
"cfg_scale": 0.5,
"callback_url": "https://example.com/webhook"
}'
video_id string required

Video ID

Supports the ID of videos generated through text, image, and video extension (original video cannot exceed 3 minutes)

prompt string

Positive text prompt, max 2500 characters

negative_prompt string

Negative text prompt, max 2500 characters

cfg_scale float

Prompt reference strength. Higher values mean stronger reference

Range: 0 - 1

Default: 0.5

callback_url string

Callback notification URL for task results. If configured, the server will actively notify when task status changes

external_task_id string

Custom task ID

User-defined task ID that will not override the system-generated task ID but can be used for task queries

{
"request_id": "task_01hxyz...",
"response_url": "https://odirouter.ai/model/v1/queue/kling-video-extend/requests/task_01hxyz.../response",
"status_url": "https://odirouter.ai/model/v1/queue/kling-video-extend/requests/task_01hxyz.../status",
"cancel_url": "https://odirouter.ai/model/v1/queue/kling-video-extend/requests/task_01hxyz.../cancel",
"queue_position": 0
}
FieldTypeDescription
request_idstringTask ID used for all follow-up operations.
response_urlstringURL to fetch the final result.
status_urlstringURL to query task status.
cancel_urlstringURL to cancel the task.
queue_positionintCurrent queue position.