Skip to main content
POST
cURL
このエンドポイントを使用して、マルチモーダルエディタが処理する動画内の領域を指定します。

選択の仕組み

  • session_id編集用動画の初期化 で取得します
  • 初期化で返された同じアカウントと正確な session_id を使用します
  • frame_index はポイントを配置するフレームを選択します
  • points0 から 1 の間で正規化された座標です
  • Kling のドキュメントでは、マーク可能なフレームは最大 10、各フレームのポイントは最大 10 とされています

ワークフロー上の役割

1

最初に初期化

有効な session_id を取得するために、まず 編集用動画の初期化 から始めます。
2

ポイントを追加または調整

編集する領域を構築しながら、このエンドポイントを呼び出します。
3

領域をプレビュー

最終送信の前に 選択した動画領域のプレビュー を使用します。
完全なパラメータリファレンスについては、Kling API documentation を参照してください。

承認

Authorization
string
header
必須

Bearer token authentication. Use your CometAPI key.

ボディ

application/json
session_id
string
必須

Selection session id returned by init-selection. Follow-up calls must use the same account and exact session id.

frame_index
integer
必須

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.

points
object[]
必須

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.

レスポンス

200 - application/json

Selection updated.

code
integer
必須
message
string
必須
data
object