Kling Video Extend
kling-video-extend
Video duration extension interface, supporting forward and backward extension.
Endpoints
Section titled “Endpoints”POST /v1/queue/kling-video-extend # Create taskGET /v1/queue/kling-video-extend/requests/{request_id}/status # Check statusGET /v1/queue/kling-video-extend/requests/{request_id}/response # Get resultPUT /v1/queue/kling-video-extend/requests/{request_id}/cancel # Cancel taskRequest parameters
Section titled “Request parameters”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
Supports the ID of videos generated through text, image, and video extension (original video cannot exceed 3 minutes)
Positive text prompt, max 2500 characters
Negative text prompt, max 2500 characters
Prompt reference strength. Higher values mean stronger reference
Range: 0 - 1
Default: 0.5
Callback notification URL for task results. If configured, the server will actively notify when task status changes
Custom task ID
User-defined task ID that will not override the system-generated task ID but can be used for task queries
Response parameters
Section titled “Response parameters”{ "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}| Field | Type | Description |
|---|---|---|
request_id | string | Task ID used for all follow-up operations. |
response_url | string | URL to fetch the final result. |
status_url | string | URL to query task status. |
cancel_url | string | URL to cancel the task. |
queue_position | int | Current queue position. |