動画選択を追加
Kling の Add Video Selection エンドポイントを使用して、マルチ要素の動画編集で選択要素を追加し、CometAPI 経由で対象を絞った編集やシーン制御を可能にします。
このエンドポイントは、マルチモーダルエディターに処理させたい動画内の領域を指定するために使用します。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.
選択の仕組み
session_idは Initialize Video for Editing から取得しますframe_indexはポイントを配置するフレームを選択しますpointsは0から1の間で正規化された座標です- Kling では、マークしたフレームは最大 10 件、各フレームのポイントは最大 10 個までサポートされています
ワークフローでの役割
最初に初期化
session_id を取得するために、まず Initialize Video for Editing から始めます。領域をプレビュー
承認
Bearer token authentication. Use your CometAPI key.
ボディ
Session ID, generated based on the video initialization task, does not change with selection editing actions.
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.
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.