添加视频选区
使用 Kling 添加视频选区端点,在多元素视频编辑中添加选区元素,通过 CometAPI 实现定向编辑和场景控制。
使用此端点标记你希望多模态编辑器操作的视频区域。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之间的归一化坐标- Kling 文档说明最多可标记 10 帧,每帧最多 10 个点
工作流中的作用
Initialize first
session_id。Preview the area
授权
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.