CometAPI를 통해 멀티 요소 비디오 편집에서 선택 요소를 추가하고, 대상 편집과 장면 제어를 가능하게 하려면 Kling Add Video Selection 엔드포인트를 사용하세요.
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/multi-elements/add-selection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"session_id": "784914037360041984",
"frame_index": 1,
"points": [
{
"x": 0,
"y": 1
}
]
}
'{
"code": 123,
"message": "<string>",
"data": {}
}멀티모달 편집기가 작업할 비디오 영역을 표시하려면 이 엔드포인트를 사용하세요.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
session_id는 편집용 비디오 초기화에서 가져옵니다frame_index는 포인트를 배치할 프레임을 선택합니다points는 0과 1 사이의 정규화된 좌표입니다먼저 초기화
session_id를 얻으려면 편집용 비디오 초기화부터 시작하세요.영역 미리보기
Bearer token authentication. Use your CometAPI key.
Session ID, generated based on the video initialization task, does not change with selection editing actions.
Frame number
Supports adding up to 10 marked frames, meaning video selections can be marked based on a maximum of 10 frames. Only 1 frame can be marked at a time.
Click coordinates, represented by x and y. Value range: [0,1], expressed as a percentage; [0,1] represents the top-left corner of the frame. Supports adding multiple marked points simultaneously, with a maximum of 10 points per frame.
Show child attributes
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/multi-elements/add-selection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"session_id": "784914037360041984",
"frame_index": 1,
"points": [
{
"x": 0,
"y": 1
}
]
}
'{
"code": 123,
"message": "<string>",
"data": {}
}