跳转到主要内容
POST
/
kling
/
v1
/
videos
/
multi-elements
/
preview-selection
Preview Selected Video Area
curl --request POST \
  --url https://api.cometapi.com/kling/v1/videos/multi-elements/preview-selection \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "session_id": "784914037360041984"
}
'
{}
使用此端点可以在提交最终多模态编辑任务之前,预览当前选中的区域。

为什么预览很重要

  • 它可以帮助你确认选择点是否覆盖了目标对象或区域
  • 它可以帮助你在消耗一次生成调用之前发现不正确的蒙版
  • 它是在选择编辑与最终任务创建之间最安全的检查点

工作流程中的作用

1

初始化会话

2

添加选择点

使用 Add Video Selection,直到区域接近正确为止。
3

生成前预览

调用此端点,然后仅在选择看起来正确后再继续 Create Task
有关完整的参数参考,请参阅 Kling API documentation

授权

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

请求体

application/json
session_id
string
默认值:example
必填

Session id returned by the video initialization endpoint.

响应

200 - application/json

Success

The response is of type object.