提交 Kling 3.0 Motion Control 任务
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-3.0-motion-control",
"callback_url": "https://your-domain.com/callback",
"input": {
"image_urls": [
"https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png"
],
"video_urls": [
"https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4"
],
"character_orientation": "video",
"resolution": "720p",
"prompt": "Keep the identity consistent and reference @Element1 for facial details",
"kling_elements": [
{
"frontal_image_url": "https://example.com/front-face.png",
"reference_image_urls": [
"https://example.com/face-angle-1.png"
]
}
]
}
}
'import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "kling-3.0-motion-control",
"callback_url": "https://your-domain.com/callback",
"input": {
"image_urls": ["https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png"],
"video_urls": ["https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4"],
"character_orientation": "video",
"resolution": "720p",
"prompt": "Keep the identity consistent and reference @Element1 for facial details",
"kling_elements": [
{
"frontal_image_url": "https://example.com/front-face.png",
"reference_image_urls": ["https://example.com/face-angle-1.png"]
}
]
}
}
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({
model: 'kling-3.0-motion-control',
callback_url: 'https://your-domain.com/callback',
input: {
image_urls: ['https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png'],
video_urls: ['https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4'],
character_orientation: 'video',
resolution: '720p',
prompt: 'Keep the identity consistent and reference @Element1 for facial details',
kling_elements: [
{
frontal_image_url: 'https://example.com/front-face.png',
reference_image_urls: ['https://example.com/face-angle-1.png']
}
]
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', 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://api.poyo.ai/api/generate/submit",
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([
'model' => 'kling-3.0-motion-control',
'callback_url' => 'https://your-domain.com/callback',
'input' => [
'image_urls' => [
'https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png'
],
'video_urls' => [
'https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4'
],
'character_orientation' => 'video',
'resolution' => '720p',
'prompt' => 'Keep the identity consistent and reference @Element1 for facial details',
'kling_elements' => [
[
'frontal_image_url' => 'https://example.com/front-face.png',
'reference_image_urls' => [
'https://example.com/face-angle-1.png'
]
]
]
]
]),
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://api.poyo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"kling-3.0-motion-control\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"image_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png\"\n ],\n \"video_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4\"\n ],\n \"character_orientation\": \"video\",\n \"resolution\": \"720p\",\n \"prompt\": \"Keep the identity consistent and reference @Element1 for facial details\",\n \"kling_elements\": [\n {\n \"frontal_image_url\": \"https://example.com/front-face.png\",\n \"reference_image_urls\": [\n \"https://example.com/face-angle-1.png\"\n ]\n }\n ]\n }\n}")
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://api.poyo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"kling-3.0-motion-control\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"image_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png\"\n ],\n \"video_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4\"\n ],\n \"character_orientation\": \"video\",\n \"resolution\": \"720p\",\n \"prompt\": \"Keep the identity consistent and reference @Element1 for facial details\",\n \"kling_elements\": [\n {\n \"frontal_image_url\": \"https://example.com/front-face.png\",\n \"reference_image_urls\": [\n \"https://example.com/face-angle-1.png\"\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poyo.ai/api/generate/submit")
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 = "{\n \"model\": \"kling-3.0-motion-control\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"image_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png\"\n ],\n \"video_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4\"\n ],\n \"character_orientation\": \"video\",\n \"resolution\": \"720p\",\n \"prompt\": \"Keep the identity consistent and reference @Element1 for facial details\",\n \"kling_elements\": [\n {\n \"frontal_image_url\": \"https://example.com/front-face.png\",\n \"reference_image_urls\": [\n \"https://example.com/face-angle-1.png\"\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}Kling
Kling 3.0 Motion Control
Kling 3.0 Motion Control API 可将一段参考视频中的动作迁移到一张图片上,输出 720p 或 1080p。视频朝向模式下最长 30 秒,并可选面部元素;图片朝向模式下最长 10 秒。
POST
/
api
/
generate
/
submit
提交 Kling 3.0 Motion Control 任务
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-3.0-motion-control",
"callback_url": "https://your-domain.com/callback",
"input": {
"image_urls": [
"https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png"
],
"video_urls": [
"https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4"
],
"character_orientation": "video",
"resolution": "720p",
"prompt": "Keep the identity consistent and reference @Element1 for facial details",
"kling_elements": [
{
"frontal_image_url": "https://example.com/front-face.png",
"reference_image_urls": [
"https://example.com/face-angle-1.png"
]
}
]
}
}
'import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "kling-3.0-motion-control",
"callback_url": "https://your-domain.com/callback",
"input": {
"image_urls": ["https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png"],
"video_urls": ["https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4"],
"character_orientation": "video",
"resolution": "720p",
"prompt": "Keep the identity consistent and reference @Element1 for facial details",
"kling_elements": [
{
"frontal_image_url": "https://example.com/front-face.png",
"reference_image_urls": ["https://example.com/face-angle-1.png"]
}
]
}
}
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({
model: 'kling-3.0-motion-control',
callback_url: 'https://your-domain.com/callback',
input: {
image_urls: ['https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png'],
video_urls: ['https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4'],
character_orientation: 'video',
resolution: '720p',
prompt: 'Keep the identity consistent and reference @Element1 for facial details',
kling_elements: [
{
frontal_image_url: 'https://example.com/front-face.png',
reference_image_urls: ['https://example.com/face-angle-1.png']
}
]
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', 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://api.poyo.ai/api/generate/submit",
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([
'model' => 'kling-3.0-motion-control',
'callback_url' => 'https://your-domain.com/callback',
'input' => [
'image_urls' => [
'https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png'
],
'video_urls' => [
'https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4'
],
'character_orientation' => 'video',
'resolution' => '720p',
'prompt' => 'Keep the identity consistent and reference @Element1 for facial details',
'kling_elements' => [
[
'frontal_image_url' => 'https://example.com/front-face.png',
'reference_image_urls' => [
'https://example.com/face-angle-1.png'
]
]
]
]
]),
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://api.poyo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"kling-3.0-motion-control\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"image_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png\"\n ],\n \"video_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4\"\n ],\n \"character_orientation\": \"video\",\n \"resolution\": \"720p\",\n \"prompt\": \"Keep the identity consistent and reference @Element1 for facial details\",\n \"kling_elements\": [\n {\n \"frontal_image_url\": \"https://example.com/front-face.png\",\n \"reference_image_urls\": [\n \"https://example.com/face-angle-1.png\"\n ]\n }\n ]\n }\n}")
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://api.poyo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"kling-3.0-motion-control\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"image_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png\"\n ],\n \"video_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4\"\n ],\n \"character_orientation\": \"video\",\n \"resolution\": \"720p\",\n \"prompt\": \"Keep the identity consistent and reference @Element1 for facial details\",\n \"kling_elements\": [\n {\n \"frontal_image_url\": \"https://example.com/front-face.png\",\n \"reference_image_urls\": [\n \"https://example.com/face-angle-1.png\"\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poyo.ai/api/generate/submit")
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 = "{\n \"model\": \"kling-3.0-motion-control\",\n \"callback_url\": \"https://your-domain.com/callback\",\n \"input\": {\n \"image_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-image-new.png\"\n ],\n \"video_urls\": [\n \"https://storage.poyo.ai/kling-3.0-motion-control/reference-video-new.mp4\"\n ],\n \"character_orientation\": \"video\",\n \"resolution\": \"720p\",\n \"prompt\": \"Keep the identity consistent and reference @Element1 for facial details\",\n \"kling_elements\": [\n {\n \"frontal_image_url\": \"https://example.com/front-face.png\",\n \"reference_image_urls\": [\n \"https://example.com/face-angle-1.png\"\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
kling-3.0-motion-control 结合一张参考图片和一段参考视频,将动作迁移到目标角色上。
模型
- kling-3.0-motion-control - 从参考视频到参考图片的动作迁移
必填参数
- image_urls:恰好
1张参考图片 - video_urls:恰好
1段参考视频 - character_orientation:
image或video
可选参数
- prompt:可选的场景提示词
- resolution:
720p或1080p。默认为720p - kling_elements:可选的面部一致性元素。仅在
character_orientation=video时可用
注意事项
- 图片支持
.jpg、.jpeg、.png,最大10MB - 视频支持
.mp4、.mov,最大100MB - 参考视频至少
3秒 - 当
character_orientation=image时,参考视频不得超过10秒 - 当
character_orientation=video时,参考视频不得超过30秒 kling_elements仅支持1个面部元素。每个元素需要frontal_image_url和包含1到3张图片的reference_image_urls- 使用
kling_elements时,在提示词中以@Element1引用该元素
授权
所有 API 接口都需要 Bearer Token 认证。
创建 API Key:登录 PoYo,进入 仪表盘 → API 密钥(poyo.ai/zh/dashboard/api-key),点击创建 Key。
在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
application/json
响应
任务提交成功
Show child attributes
Show child attributes