新增影片選取區域
使用 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 個點
工作流程中的角色
授權
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.