跳转到主要内容
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"
}
'
{}

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.

使用此端点可在提交最终多模态编辑任务之前,先预览所选区域。

为什么预览很重要

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

工作流中的作用

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.