DeerAPI Kling 多元素编辑打点页:在指定帧用坐标点告诉系统你要跟踪哪个主体,再把点选结果扩成选区。
curl --request POST \
--url https://api.deerapi.com/kling/v1/videos/multi-elements/add-selection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"session_id": "784914037360041984",
"frame_index": 1,
"points": [
{
"x": 0,
"y": 1
}
]
}
'{}打完先预览
points 怎么写[
{ "x": 0.42, "y": 0.31 },
{ "x": 0.45, "y": 0.54 }
]
frame_index 选在主体模糊或被遮挡的帧上。0-1 之间的百分比。Bearer token authentication. Use your DeerAPI key.
成功
The response is of type object.
curl --request POST \
--url https://api.deerapi.com/kling/v1/videos/multi-elements/add-selection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"session_id": "784914037360041984",
"frame_index": 1,
"points": [
{
"x": 0,
"y": 1
}
]
}
'{}