Kling V2.5 Turbo 文生视频
curl --request POST \
--url https://api.ppio.com/v3/async/kling-2.5-turbo-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "<string>",
"duration": "<string>",
"aspect_ratio": "<string>",
"cfg_scale": 123,
"mode": "<string>",
"negative_prompt": "<string>"
}
'import requests
url = "https://api.ppio.com/v3/async/kling-2.5-turbo-t2v"
payload = {
"prompt": "<string>",
"duration": "<string>",
"aspect_ratio": "<string>",
"cfg_scale": 123,
"mode": "<string>",
"negative_prompt": "<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({
prompt: '<string>',
duration: '<string>',
aspect_ratio: '<string>',
cfg_scale: 123,
mode: '<string>',
negative_prompt: '<string>'
})
};
fetch('https://api.ppio.com/v3/async/kling-2.5-turbo-t2v', 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.ppio.com/v3/async/kling-2.5-turbo-t2v",
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([
'prompt' => '<string>',
'duration' => '<string>',
'aspect_ratio' => '<string>',
'cfg_scale' => 123,
'mode' => '<string>',
'negative_prompt' => '<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.ppio.com/v3/async/kling-2.5-turbo-t2v"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"duration\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"cfg_scale\": 123,\n \"mode\": \"<string>\",\n \"negative_prompt\": \"<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.ppio.com/v3/async/kling-2.5-turbo-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"prompt\": \"<string>\",\n \"duration\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"cfg_scale\": 123,\n \"mode\": \"<string>\",\n \"negative_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/async/kling-2.5-turbo-t2v")
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 \"prompt\": \"<string>\",\n \"duration\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"cfg_scale\": 123,\n \"mode\": \"<string>\",\n \"negative_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}视频
Kling V2.5 Turbo 文生视频
POST
/
v3
/
async
/
kling-2.5-turbo-t2v
Kling V2.5 Turbo 文生视频
curl --request POST \
--url https://api.ppio.com/v3/async/kling-2.5-turbo-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "<string>",
"duration": "<string>",
"aspect_ratio": "<string>",
"cfg_scale": 123,
"mode": "<string>",
"negative_prompt": "<string>"
}
'import requests
url = "https://api.ppio.com/v3/async/kling-2.5-turbo-t2v"
payload = {
"prompt": "<string>",
"duration": "<string>",
"aspect_ratio": "<string>",
"cfg_scale": 123,
"mode": "<string>",
"negative_prompt": "<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({
prompt: '<string>',
duration: '<string>',
aspect_ratio: '<string>',
cfg_scale: 123,
mode: '<string>',
negative_prompt: '<string>'
})
};
fetch('https://api.ppio.com/v3/async/kling-2.5-turbo-t2v', 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.ppio.com/v3/async/kling-2.5-turbo-t2v",
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([
'prompt' => '<string>',
'duration' => '<string>',
'aspect_ratio' => '<string>',
'cfg_scale' => 123,
'mode' => '<string>',
'negative_prompt' => '<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.ppio.com/v3/async/kling-2.5-turbo-t2v"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"duration\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"cfg_scale\": 123,\n \"mode\": \"<string>\",\n \"negative_prompt\": \"<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.ppio.com/v3/async/kling-2.5-turbo-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"prompt\": \"<string>\",\n \"duration\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"cfg_scale\": 123,\n \"mode\": \"<string>\",\n \"negative_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/async/kling-2.5-turbo-t2v")
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 \"prompt\": \"<string>\",\n \"duration\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"cfg_scale\": 123,\n \"mode\": \"<string>\",\n \"negative_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Kling 2.5 Turbo 是一款先进的文本生成视频模型,能够生成超流畅的动作、电影级画面,并高度贴合提示词内容。
这是一个异步API,只会返回异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 来检索视频生成结果。
请求头
枚举值:
application/jsonBearer 身份验证格式,例如:Bearer {{API 密钥}}。
请求体
指导生成的正向文本提示词。长度不超过 2500 字符。
生成视频的时长(秒)。可选值:
5、10输出视频的宽高比。可选值:
16:9、9:16、1:1控制视频生成的灵活性,数值越高,模型生成内容对提示词的贴合度越高,创意自由度越低。取值范围:0 到 1
视频生成模式。可选值:
pro:专业模式
反向提示词,用于规避不希望出现的内容;长度不超过 2500 字符。
响应
异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 以获取生成结果
最后修改于 2026年1月12日
⌘I