Kling v3.0 4K 图生视频
curl --request POST \
--url https://api.ppio.com/v3/async/kling-v3.0-4k-i2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"image": "<string>",
"sound": true,
"prompt": "<string>",
"duration": 123,
"cfg_scale": 123,
"end_image": "<string>",
"multi_prompt": [
{
"prompt": "<string>",
"duration": 123
}
],
"negative_prompt": "<string>"
}
'import requests
url = "https://api.ppio.com/v3/async/kling-v3.0-4k-i2v"
payload = {
"image": "<string>",
"sound": True,
"prompt": "<string>",
"duration": 123,
"cfg_scale": 123,
"end_image": "<string>",
"multi_prompt": [
{
"prompt": "<string>",
"duration": 123
}
],
"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({
image: '<string>',
sound: true,
prompt: '<string>',
duration: 123,
cfg_scale: 123,
end_image: '<string>',
multi_prompt: [{prompt: '<string>', duration: 123}],
negative_prompt: '<string>'
})
};
fetch('https://api.ppio.com/v3/async/kling-v3.0-4k-i2v', 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-4k-i2v",
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>',
'sound' => true,
'prompt' => '<string>',
'duration' => 123,
'cfg_scale' => 123,
'end_image' => '<string>',
'multi_prompt' => [
[
'prompt' => '<string>',
'duration' => 123
]
],
'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-4k-i2v"
payload := strings.NewReader("{\n \"image\": \"<string>\",\n \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"end_image\": \"<string>\",\n \"multi_prompt\": [\n {\n \"prompt\": \"<string>\",\n \"duration\": 123\n }\n ],\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-4k-i2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"image\": \"<string>\",\n \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"end_image\": \"<string>\",\n \"multi_prompt\": [\n {\n \"prompt\": \"<string>\",\n \"duration\": 123\n }\n ],\n \"negative_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/async/kling-v3.0-4k-i2v")
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 \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"end_image\": \"<string>\",\n \"multi_prompt\": [\n {\n \"prompt\": \"<string>\",\n \"duration\": 123\n }\n ],\n \"negative_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}视频
Kling v3.0 4K 图生视频
POST
/
v3
/
async
/
kling-v3.0-4k-i2v
Kling v3.0 4K 图生视频
curl --request POST \
--url https://api.ppio.com/v3/async/kling-v3.0-4k-i2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"image": "<string>",
"sound": true,
"prompt": "<string>",
"duration": 123,
"cfg_scale": 123,
"end_image": "<string>",
"multi_prompt": [
{
"prompt": "<string>",
"duration": 123
}
],
"negative_prompt": "<string>"
}
'import requests
url = "https://api.ppio.com/v3/async/kling-v3.0-4k-i2v"
payload = {
"image": "<string>",
"sound": True,
"prompt": "<string>",
"duration": 123,
"cfg_scale": 123,
"end_image": "<string>",
"multi_prompt": [
{
"prompt": "<string>",
"duration": 123
}
],
"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({
image: '<string>',
sound: true,
prompt: '<string>',
duration: 123,
cfg_scale: 123,
end_image: '<string>',
multi_prompt: [{prompt: '<string>', duration: 123}],
negative_prompt: '<string>'
})
};
fetch('https://api.ppio.com/v3/async/kling-v3.0-4k-i2v', 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-4k-i2v",
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>',
'sound' => true,
'prompt' => '<string>',
'duration' => 123,
'cfg_scale' => 123,
'end_image' => '<string>',
'multi_prompt' => [
[
'prompt' => '<string>',
'duration' => 123
]
],
'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-4k-i2v"
payload := strings.NewReader("{\n \"image\": \"<string>\",\n \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"end_image\": \"<string>\",\n \"multi_prompt\": [\n {\n \"prompt\": \"<string>\",\n \"duration\": 123\n }\n ],\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-4k-i2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"image\": \"<string>\",\n \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"end_image\": \"<string>\",\n \"multi_prompt\": [\n {\n \"prompt\": \"<string>\",\n \"duration\": 123\n }\n ],\n \"negative_prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/async/kling-v3.0-4k-i2v")
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 \"sound\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"cfg_scale\": 123,\n \"end_image\": \"<string>\",\n \"multi_prompt\": [\n {\n \"prompt\": \"<string>\",\n \"duration\": 123\n }\n ],\n \"negative_prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Kling v3.0 4K 图像转视频可根据首帧图片生成原生 4K 超高清视频,具备电影级画质、流畅的运动效果、精准的提示词遵循能力,并支持可选的原生音频共同生成。支持尾帧引导、多镜头组合以及 3-15 秒灵活时长。
这是一个异步API,只会返回异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 来检索视频生成结果。
请求头
枚举值:
application/jsonBearer 身份验证格式,例如:Bearer {{API 密钥}}。
请求体
视频首帧图片;支持
.jpg、.jpeg、.png。
图片文件大小不得超过 10MB;宽高均需 >= 300px;宽高比需在 1:2.5 与 2.5:1 之间。是否在生成视频时同时生成音频。支持中文和英文语音输出。
生成视频的正向提示词文本,可描述场景运动、镜头移动、动作、语音风格、氛围及音效;不可超过 2500 个字符。长度限制:0 - 2500
生成视频的持续时间(秒)。支持 3 至 15 秒灵活时长。取值范围:[3, 15]
控制视频生成的灵活性。数值越高,模型生成内容对提示词的贴合度越高;数值越低,运动效果越自然。取值范围:[0, 1]
尾帧图片 URL,用于引导起始帧与结束帧之间的过渡。格式约束与 image 相同。不可与 multi_prompt 同时使用。
反向提示词,指定在画面和音频中需要避免的元素;长度不超过 2500 字符。长度限制:0 - 2500
响应
异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 以获取生成结果
最后修改于 2026年7月3日
⌘I