Kling 비디오 선택 추가
CometAPI를 통해 멀티 요소 비디오 편집에서 선택 요소를 추가하여, 대상 편집과 장면 제어를 가능하게 하는 Kling Add Video Selection 엔드포인트를 사용합니다.
선택 방식
session_id는 편집용 비디오 초기화에서 가져옵니다- 초기화 시 반환된 것과 동일한 계정 및 정확한
session_id를 사용하세요 frame_index는 포인트를 배치할 프레임을 선택합니다points는0과1사이의 정규화된 좌표입니다- Kling 문서에서는 최대 10개의 표시된 프레임과 프레임당 최대 10개의 포인트를 지원합니다
워크플로 역할
먼저 초기화
session_id를 얻기 위해 편집용 비디오 초기화로 시작하세요.포인트 추가 또는 정교화
영역 미리보기
인증
Bearer token authentication. Use your CometAPI key.
본문
Selection session id returned by init-selection. Follow-up calls must use the same account and exact session id.
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.