Kling Motion Control V3
Visão geral
Identificador do modelo: kling-motion-control-3 · Saída: video · Modos: Motion Control
Autenticação e endpoint
Todas as requisições vão para https://genjutsu.top. Envie uma chave de API da Genjutsu como token bearer. POST https://genjutsu.top/v1/media/generate · Authorization: Bearer $GENJUTSU_API_KEY · Escopos necessários: generate, read, assets
Modos e parâmetros
Motion Control v2v
| Parâmetro | Tipo | Obrigatório | Padrão | Detalhes |
|---|---|---|---|---|
prompt | string | Opcional | - | Optional. Leave blank to use the default motion instructions. |
images_list | lista de IDs de ativos de image | Obrigatório | - | Add one image of the subject whose identity should be preserved. |
videos_list | lista de IDs de ativos de video | Obrigatório | - | Add one video to guide the movement. The 1080p output follows its duration. |
Requisição mínima
# 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"
]
}
}'Requisição com parâmetros opcionais
# 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"
]
}
}'Ciclo da tarefa
Envie a solicitação para POST /v1/media/generate. Ela responde 202 com um task_id. Consulte GET /v1/media/tasks/{task_id} a cada 5 segundos até is_final ser true: o estado será succeeded, failed ou cancelled e a mesma tarefa traz o resultado (outputs) ou o erro (error_code e error_message). Repetir o envio com a mesma Idempotency-Key devolve a tarefa original. Os IDs e URLs das respostas são ilustrativos.
# 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}'Preço
Motion Control
| Opções | Total |
|---|---|
| Todas as opções | 5.500000 créditos por solicitação |
Para obter o total exato, use o Studio ou POST /v1/quotes.
Versão e notas
Versão da documentação 4, publicada em 2026-11-27.