Kling motion control
curl --request POST \
--url https://models.phanedge.cloud/kling/v1/videos/motion-control \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://models.phanedge.cloud/kling/v1/videos/motion-control"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://models.phanedge.cloud/kling/v1/videos/motion-control', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://models.phanedge.cloud/kling/v1/videos/motion-control",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://models.phanedge.cloud/kling/v1/videos/motion-control"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://models.phanedge.cloud/kling/v1/videos/motion-control")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://models.phanedge.cloud/kling/v1/videos/motion-control")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{}视频生成
动作控制
接口与可灵官网一致;支持参考图片与动作视频驱动生成视频
POST
/
kling
/
v1
/
videos
/
motion-control
Kling motion control
curl --request POST \
--url https://models.phanedge.cloud/kling/v1/videos/motion-control \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://models.phanedge.cloud/kling/v1/videos/motion-control"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://models.phanedge.cloud/kling/v1/videos/motion-control', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://models.phanedge.cloud/kling/v1/videos/motion-control",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://models.phanedge.cloud/kling/v1/videos/motion-control"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://models.phanedge.cloud/kling/v1/videos/motion-control")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://models.phanedge.cloud/kling/v1/videos/motion-control")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{}- 路径
POST /kling/v1/videos/motion-control - 与官网一致:本页请求体、字段命名与返回结构与可灵官网保持一致
- 字段详解:请参考官网权威文档
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model_name | string | 否 | 模型名称,仅支持 kling-v2-6、kling-v3,默认 kling-v2-6 |
prompt | string | 否 | 文本提示词,可用于补充元素或运镜描述 |
image_url | string | 是 | 参考图片 URL 或 Base64 |
video_url | string | 是 | 参考动作视频 URL |
element_list | array | 否 | 主体引用列表,当前最多 1 个主体 |
keep_original_sound | string | 否 | 是否保留原声:yes、no,默认 yes |
character_orientation | string | 是 | 人物朝向:image、video |
mode | string | 是 | 生成模式:std、pro |
watermark_info | object | 否 | 是否生成含水印结果 |
callback_url | string | 否 | 回调通知地址 |
external_task_id | string | 否 | 自定义任务 ID |
{
"element_list": [
{
"element_id": 829836802793406551
}
]
}
character_orientation=image时,参考视频时长不得超过 10 秒;character_orientation=video时,参考视频时长不得超过 30 秒;keep_original_sound仅支持yes/no;mode仅支持std/pro;model_name仅支持kling-v2-6/kling-v3。
场景:参考图片 + 参考动作视频生成视频
curl --request POST \
--url https://models.phanedge.cloud/kling/v1/videos/motion-control \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model_name": "kling-v2-6",
"image_url": "https://example.com/ref.png",
"prompt": "女孩穿着灰色宽松T恤和牛仔短裤",
"video_url": "https://example.com/motion.mp4",
"keep_original_sound": "yes",
"character_orientation": "image",
"mode": "pro",
"external_task_id": "motion-demo-001"
}'
{
"code": 0,
"message": "success",
"request_id": "req_1735558800_motion123",
"data": {
"task_id": "task_01JGHN...",
"task_info": {
"external_task_id": "motion-demo-001"
},
"task_status": "submitted",
"created_at": 1735558800000,
"updated_at": 1735558800000
}
}
# 查询单个任务
curl "https://models.phanedge.cloud/kling/v1/videos/motion-control/$TASK_ID" \
-H "Authorization: Bearer $TOKEN"
# 查询任务列表
curl "https://models.phanedge.cloud/kling/v1/videos/motion-control?pageNum=1&pageSize=30" \
-H "Authorization: Bearer $TOKEN"
Authorizations
Authorization: Bearer
Body
application/json
The body is of type object.
Response
200 - application/json
OK
The response is of type object.

