Kling V2.6 Pro Bewegungssteuerung
curl --request POST \
--url https://api.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"image": "<string>",
"video": "<string>",
"prompt": "<string>",
"negative_prompt": "<string>",
"keep_original_sound": true,
"character_orientation": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control"
payload = {
"image": "<string>",
"video": "<string>",
"prompt": "<string>",
"negative_prompt": "<string>",
"keep_original_sound": True,
"character_orientation": "<string>"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
image: '<string>',
video: '<string>',
prompt: '<string>',
negative_prompt: '<string>',
keep_original_sound: true,
character_orientation: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/kling-v2.6-pro-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://api.highwayapi.ai/v3/async/kling-v2.6-pro-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([
'image' => '<string>',
'video' => '<string>',
'prompt' => '<string>',
'negative_prompt' => '<string>',
'keep_original_sound' => true,
'character_orientation' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control"
payload := strings.NewReader("{\n \"image\": \"<string>\",\n \"video\": \"<string>\",\n \"prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"keep_original_sound\": true,\n \"character_orientation\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
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.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"image\": \"<string>\",\n \"video\": \"<string>\",\n \"prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"keep_original_sound\": true,\n \"character_orientation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"image\": \"<string>\",\n \"video\": \"<string>\",\n \"prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"keep_original_sound\": true,\n \"character_orientation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Kling V2.6 Pro Bewegungssteuerung
POST
/
v3
/
async
/
kling-v2.6-pro-motion-control
Kling V2.6 Pro Bewegungssteuerung
curl --request POST \
--url https://api.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"image": "<string>",
"video": "<string>",
"prompt": "<string>",
"negative_prompt": "<string>",
"keep_original_sound": true,
"character_orientation": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control"
payload = {
"image": "<string>",
"video": "<string>",
"prompt": "<string>",
"negative_prompt": "<string>",
"keep_original_sound": True,
"character_orientation": "<string>"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
image: '<string>',
video: '<string>',
prompt: '<string>',
negative_prompt: '<string>',
keep_original_sound: true,
character_orientation: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/kling-v2.6-pro-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://api.highwayapi.ai/v3/async/kling-v2.6-pro-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([
'image' => '<string>',
'video' => '<string>',
'prompt' => '<string>',
'negative_prompt' => '<string>',
'keep_original_sound' => true,
'character_orientation' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control"
payload := strings.NewReader("{\n \"image\": \"<string>\",\n \"video\": \"<string>\",\n \"prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"keep_original_sound\": true,\n \"character_orientation\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
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.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"image\": \"<string>\",\n \"video\": \"<string>\",\n \"prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"keep_original_sound\": true,\n \"character_orientation\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/kling-v2.6-pro-motion-control")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"image\": \"<string>\",\n \"video\": \"<string>\",\n \"prompt\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"keep_original_sound\": true,\n \"character_orientation\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Dies ist eine asynchrone API, die nur die
task_id der asynchronen Aufgabe zurückgibt.
Dies ist eine asynchrone API, die nur die task_id der asynchronen Aufgabe zurückgibt. Sie sollten mit dieser task_id die API zum Abfragen des Aufgabenergebnisses aufrufen, um das generierte Ergebnis abzurufen.
Anfrageheader
string
必填
Enumerationswert:
application/jsonstring
必填
Bearer-Authentifizierungsformat: Bearer {{API Key}}.
Anfragetext
string
必填
URL des Referenzbilds oder base64-codiertes Bild; unterstützt
.jpg, .jpeg, .png.
Die Bilddatei darf nicht größer als 10 MB sein; Breite und Höhe müssen jeweils >= 300 px sein; das Seitenverhältnis muss zwischen 1:2.5 und 2.5:1 liegen.string
必填
URL des Referenz-Bewegungsvideos; unterstützt
.mp4, .mov.
Die Videodatei darf nicht größer als 10 MB sein; Breite und Höhe müssen jeweils >= 300 px sein; Dauer 3–30 Sekunden.string
Positive Prompt-Wörter für Szenenbeschreibung, Stil, Licht usw.
string
Negativer Prompt; Länge höchstens 2500 Zeichen.
boolean
默认值:true
Ob das Originalaudio des Referenzvideos beibehalten werden soll.
string
必填
Ausgabeframe-Modus:
image: Entspricht der Bildkomposition des Referenzbilds (Ausgabe 5 Sekunden)video: Entspricht der Bildkomposition des Referenzvideos (maximal 30 Sekunden)
image, videoAntwortinformationen
string
必填
Verwenden Sie die task_id, um die API zum Abfragen des Aufgabenergebnisses aufzurufen und die generierte Ausgabe abzurufen.
最后修改于 2026年6月10日