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

为什么预览很重要

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

工作流中的作用

1

Initialize the session

Initialize Video for Editing 开始,并将返回的 session_id 保持在同一账号下。
2

Add selection points

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

Preview before generating

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

授权

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

请求体

application/json
session_id
string
必填

Session id returned by the video initialization endpoint.

响应

200 - application/json

Success

code
integer
必填

Response code. 0 means the request succeeded.

message
string
必填

Response message.

data
object

Route-specific response payload when present.