跳转到主要内容
POST
cURL
使用 POST /motion-control/{model} 通过参考视频中的动作让人物图像动起来。该请求会创建一个异步任务。

选择模型

请将人物图像和参考视频作为可公开访问的 URL 使用。将 settings.audio 设为 original 以保留参考视频中的音频,或设为 off 以生成静音输出。 图像必须为 JPG 或 PNG 格式,大小不超过 50 MB,且每条边至少为 300 像素。请使用时长至少 3 秒、大小不超过 100 MB 的 MP4 或 MOV 参考视频。使用 character_orientation: image 时,视频最长可达 10 秒;使用 video 时,最长可达 30 秒。

请求参数

要让人物图像动起来,请将此请求正文发送到 POST /motion-control/kling-2.6。使用自己的人物和动作时,请将媒体 URL 替换为您自己可访问的文件:
响应会返回异步任务的 id:
将 data.id 值与 获取 Kling 任务 结合使用,直到任务完成。从任务的 outputs 数组中读取已完成视频的 URL。如果需要持久访问,请将视频存储在您自己的存储中。 OpenAPI 面板包含对应的 Shell、Python 和 JavaScript 请求。有关更多输入详情,请参阅 Kling 动作控制 API 参考.

授权

Authorization
string
header
必填

Authenticate with your CometAPI API key.

路径参数

model
enum<string>
必填

Kling motion-control model ID.

可用选项:
kling-3.0,
kling-2.6

请求体

application/json

Motion-control request fields exposed by the CometAPI route. The model ID is a path parameter, not a body field.

contents
object[]
必填

Send a character image and motion reference video. Add a prompt item for scene guidance.

Minimum array length: 2
settings
object
必填

Output resolution, reference orientation, and explicitly selected audio behavior.

options
object

Optional task fields exposed by the CometAPI route.

响应

200 - application/json

Task created. Store data.id for a GET /tasks query.

code
必填

Result code. 0 indicates task creation.

message
string
必填

Result message.

data
object
必填

Task identification and submission status.

msg
string

Additional result message, when included.

最后修改于 2026年9月25日