Kling Motion Control V3
概览
模型标识符: kling-motion-control-3 · 输出: video · 模式: Motion Control
认证与接口
所有请求发送到 https://genjutsu.top。请将 Genjutsu API 密钥作为 bearer 令牌发送。 POST https://genjutsu.top/v1/media/generate · Authorization: Bearer $GENJUTSU_API_KEY · 所需权限范围: generate, read, assets
模式与参数
Motion Control v2v
| 参数 | 类型 | 是否必填 | 默认值 | 详情 |
|---|---|---|---|---|
prompt | string | 可选 | - | Optional. Leave blank to use the default motion instructions. |
images_list | image 资源 ID 列表 | 必填 | - | Add one image of the subject whose identity should be preserved. |
videos_list | video 资源 ID 列表 | 必填 | - | Add one video to guide the movement. The 1080p output follows its duration. |
最小请求
# Media IDs below are placeholders: replace them with your own uploaded assets before running this.
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "kling-motion-control-3",
"mode": "v2v",
"params": {
"images_list": [
"asset:00000000-0000-4000-8000-000000000001"
],
"videos_list": [
"asset:00000000-0000-4000-8000-000000000002"
]
}
}'包含可选参数的请求
# Media IDs below are placeholders: replace them with your own uploaded assets before running this.
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "kling-motion-control-3",
"mode": "v2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"images_list": [
"asset:00000000-0000-4000-8000-000000000001"
],
"videos_list": [
"asset:00000000-0000-4000-8000-000000000002"
]
}
}'任务生命周期
将请求提交到 POST /v1/media/generate,返回 202 和 task_id。每 5 秒轮询一次 GET /v1/media/tasks/{task_id},直到 is_final 为 true:此时状态为 succeeded、failed 或 cancelled,同一个任务中包含结果(outputs)或错误(error_code 和 error_message)。使用相同的 Idempotency-Key 重复提交会返回原任务。响应中的 ID 和 URL 仅为示例。
# Media IDs below are placeholders: replace them with your own uploaded assets before running this.
# Needs curl and jq.
# 1. Submit. The response is 202 with task_id, state and credits_held.
ID=$(curl -s -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "kling-motion-control-3",
"mode": "v2v",
"params": {
"images_list": [
"asset:00000000-0000-4000-8000-000000000001"
],
"videos_list": [
"asset:00000000-0000-4000-8000-000000000002"
]
}
}' | jq -r .task_id)
echo "task: $ID"
# 2. Poll every 5 seconds until is_final is true (state is then succeeded, failed or cancelled).
while true; do
TASK=$(curl -s "https://genjutsu.top/v1/media/tasks/$ID" -H "Authorization: Bearer $GENJUTSU_API_KEY")
echo "state: $(echo "$TASK" | jq -r .state)"
[ "$(echo "$TASK" | jq -r .is_final)" = "true" ] && break
sleep 5
done
# 3. The final task carries the result: outputs[].url when succeeded, error_code and error_message when failed.
echo "$TASK" | jq '{state, outputs, error_code, error_message, credits}'价格
Motion Control
| 选项 | 总价 |
|---|---|
| 所有选项 | 每次请求 5.500000 点数 |
请在 Studio 或通过 POST /v1/quotes 获取准确总价。
版本与说明
文档版本 4,发布于 2026-11-27。