메인 콘텐츠로 건너뛰기
POST
/
kling
/
v1
/
videos
/
video-extend
Video Extension
curl --request POST \
  --url https://api.cometapi.com/kling/v1/videos/video-extend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "video_id": "example"
}
'
{
  "code": 123,
  "message": "<string>",
  "request_id": "<string>",
  "data": {
    "task_id": "<string>",
    "task_status": "<string>",
    "task_status_msg": "<string>",
    "task_info": {
      "parent_video": {
        "id": "<string>",
        "url": "<string>",
        "duration": "<string>"
      }
    },
    "task_result": {
      "videos": [
        {
          "id": "<string>",
          "url": "<string>",
          "duration": "<string>"
        }
      ]
    },
    "created_at": 123,
    "updated_at": 123
  }
}
이 엔드포인트를 사용해 기존 Kling 비디오를 후속 작업으로 연장할 수 있습니다.

호출 전 확인 사항

  • 완료된 Kling 비디오 결과에서 시작하세요
  • 상위 task 결과의 video_id를 전달하세요
  • 상위 task와 동일한 계정 컨텍스트에서 연장 작업을 실행하세요
  • 상위 task 리소스가 만료되기 전에 가능한 한 빨리 연장 작업을 트리거하세요

작업 흐름

1

상위 비디오 작업 완료

원본 Kling 비디오를 생성하고 결과를 사용할 수 있을 때까지 기다리세요.
2

연장 요청 제출

video_id와 선택적 프롬프트를 전송한 뒤, 반환된 task id를 저장하세요.
3

연장 작업 폴링

연장된 비디오가 종료 상태에 도달할 때까지 개별 조회를 계속 진행하세요.
전체 파라미터 참조는 Kling 공식 문서를 확인하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

application/json
video_id
string
기본값:example
필수

Video id from a previously generated Kling video task to extend.

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.

응답

200 - application/json

Successful Response

code
integer
필수

Error code; specifically define the error code

message
string
필수

error message

request_id
string
필수

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

data
object
필수