Skip to main content
POST
cURL
使用此端點來標記你希望多模態編輯器操作的影片區域。

選取如何運作

  • session_id 來自初始化待編輯影片
  • 使用相同帳號,以及初始化時回傳的完全相同 session_id
  • frame_index 會選擇你放置點位的影格
  • points 是介於 01 之間的正規化座標
  • Kling 文件說明最多可標記 10 個影格,且每個影格最多可有 10 個點位

工作流程中的角色

1

先初始化

先從初始化待編輯影片開始,以取得有效的 session_id
2

新增或微調點位

在你建立要編輯的區域時呼叫此端點。
3

預覽區域

在最終提交前,使用預覽已選取的影片區域
如需完整的參數參考,請參閱 Kling API 文件

授權

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

主體

application/json
session_id
string
必填

Selection session id returned by init-selection. Follow-up calls must use the same account and exact session id.

frame_index
integer
必填

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.

points
object[]
必填

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.

回應

200 - application/json

Selection updated.

code
integer
必填
message
string
必填
data
object