Skip to main content
POST
cURL
使用此端点标记你希望多模态编辑器操作的视频区域。

选区如何工作

  • session_id 来自初始化待编辑视频
  • 使用同一账号以及初始化返回的完全相同的 session_id
  • frame_index 用于选择你放置点位的帧
  • points 是介于 01 之间的归一化坐标
  • Kling 文档说明最多可标记 10 帧,每帧最多 10 个点

工作流中的作用

1

先初始化

先从初始化待编辑视频开始,以获取有效的 session_id
2

添加或细化点位

在构建待编辑区域时调用此端点。
3

预览区域

在最终提交前使用预览所选视频区域
完整参数说明请参阅 Kling API documentation

授权

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