Kling v3.0 Standard 文字生成视频
curl --request POST \
--url https://api.ppio.com/v3/async/kling-v3.0-std-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"sound": true,
"prompt": "<string>",
"duration": 123,
"cfg_scale": 123,
"aspect_ratio": "<string>",
"negative_prompt": "<string>"
}
'import requests
url = "https://api.ppio.com/v3/async/kling-v3.0-std-t2v"
payload = {
"sound": True,
"prompt": "<string>",
"duration": 123,
"cfg_scale": 123,
"aspect_ratio": "<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({
sound: true,
prompt: '<string>',
duration: 123,
cfg_scale: 123,
aspect_ratio: '<string>',
negative_prompt: '<string>'
})
};
fetch('https://api.ppio.com/v3/async/kling-v3.0-std-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-v3.0-std-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([
'sound' => true,
'prompt' => '<string>',
'duration' => 123,
'cfg_scale' => 123,
'aspect_ratio' => '<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-v3.0-std-t2v"
payload := strings.NewReader("{\n \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"aspect_ratio\": \"<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-v3.0-std-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"aspect_ratio\": \"<string>\",\n \"negative_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/async/kling-v3.0-std-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 \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"aspect_ratio\": \"<string>\",\n \"negative_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}视频
Kling v3.0 Standard 文字生成视频
POST
/
v3
/
async
/
kling-v3.0-std-t2v
Kling v3.0 Standard 文字生成视频
curl --request POST \
--url https://api.ppio.com/v3/async/kling-v3.0-std-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"sound": true,
"prompt": "<string>",
"duration": 123,
"cfg_scale": 123,
"aspect_ratio": "<string>",
"negative_prompt": "<string>"
}
'import requests
url = "https://api.ppio.com/v3/async/kling-v3.0-std-t2v"
payload = {
"sound": True,
"prompt": "<string>",
"duration": 123,
"cfg_scale": 123,
"aspect_ratio": "<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({
sound: true,
prompt: '<string>',
duration: 123,
cfg_scale: 123,
aspect_ratio: '<string>',
negative_prompt: '<string>'
})
};
fetch('https://api.ppio.com/v3/async/kling-v3.0-std-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-v3.0-std-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([
'sound' => true,
'prompt' => '<string>',
'duration' => 123,
'cfg_scale' => 123,
'aspect_ratio' => '<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-v3.0-std-t2v"
payload := strings.NewReader("{\n \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"aspect_ratio\": \"<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-v3.0-std-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"aspect_ratio\": \"<string>\",\n \"negative_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/async/kling-v3.0-std-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 \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"aspect_ratio\": \"<string>\",\n \"negative_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Kling v3.0 Standard 文字生成视频可根据文本提示生成高质量视频,具备流畅的运动效果、电影级画面、精准的提示词遵循能力,并支持可选的原生音频共同生成。支持 3-15 秒时长和多种画面比例。
这是一个异步API,只会返回异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 来检索视频生成结果。
请求头
枚举值:
application/jsonBearer 身份验证格式,例如:Bearer {{API 密钥}}。
请求体
是否在生成视频时同时生成音频。支持中文和英文语音输出。
生成视频的正向提示词文本;不可超过 2500 个字符。长度限制:0 - 2500
生成视频的持续时间(秒)。可选值:
3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15控制视频生成的灵活性。设为 0 可获得最大创意自由,0.5(默认)为平衡效果,设为 1 则严格遵循提示词。取值范围:[0, 1]
生成视频的宽高比。可选值:
16:9, 9:16, 1:1反向提示词,描述需要在生成视频中避免的元素;长度不超过 2500 字符。长度限制:0 - 2500
响应
异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 以获取生成结果
最后修改于 2026年2月28日
⌘I