Kling 動画選択の追加
Kling の Add Video Selection エンドポイントを使用して、マルチ要素の動画編集で選択要素を追加し、CometAPI 経由で対象を絞った編集とシーン制御を可能にします。
選択の仕組み
session_idは 編集用動画の初期化 で取得します- 初期化で返された同じアカウントと正確な
session_idを使用します frame_indexはポイントを配置するフレームを選択しますpointsは0から1の間で正規化された座標です- Kling のドキュメントでは、マーク可能なフレームは最大 10、各フレームのポイントは最大 10 とされています
ワークフロー上の役割
最初に初期化
session_id を取得するために、まず 編集用動画の初期化 から始めます。ポイントを追加または調整
領域をプレビュー
承認
Bearer token authentication. Use your CometAPI key.
ボディ
Selection session id returned by init-selection. Follow-up calls must use the same account and exact session id.
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.