Kling-v3.0 视频生成
curl --request POST \
--url https://api.crun.ai/api/v1/client/job/CreateTask \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"model": "kling/v3",
"callback_url": "https://your-domain.com/api/callback",
"input": {
"mode": "pro",
"multi_shots": true,
"shot_type": "customize",
"img_urls": [
"https://example.com/reference-start.jpg"
],
"multi_prompt": [
{
"prompt": "Wide shot of the explorer entering a ruined temple.",
"duration": 4
},
{
"prompt": "Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.",
"duration": 6
}
],
"element_list": [
{
"name": "hero",
"description": "A young explorer wearing a yellow raincoat.",
"element_image_urls": [
"https://example.com/hero-1.jpg",
"https://example.com/hero-2.jpg"
]
}
],
"duration": 10,
"audio": true,
"input_compliance": "enabled",
"output_compliance": "enabled"
}
}
'import requests
url = "https://api.crun.ai/api/v1/client/job/CreateTask"
payload = {
"model": "kling/v3",
"callback_url": "https://your-domain.com/api/callback",
"input": {
"mode": "pro",
"multi_shots": True,
"shot_type": "customize",
"img_urls": ["https://example.com/reference-start.jpg"],
"multi_prompt": [
{
"prompt": "Wide shot of the explorer entering a ruined temple.",
"duration": 4
},
{
"prompt": "Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.",
"duration": 6
}
],
"element_list": [
{
"name": "hero",
"description": "A young explorer wearing a yellow raincoat.",
"element_image_urls": ["https://example.com/hero-1.jpg", "https://example.com/hero-2.jpg"]
}
],
"duration": 10,
"audio": True,
"input_compliance": "enabled",
"output_compliance": "enabled"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'kling/v3',
callback_url: 'https://your-domain.com/api/callback',
input: {
mode: 'pro',
multi_shots: true,
shot_type: 'customize',
img_urls: ['https://example.com/reference-start.jpg'],
multi_prompt: [
{prompt: 'Wide shot of the explorer entering a ruined temple.', duration: 4},
{
prompt: 'Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.',
duration: 6
}
],
element_list: [
{
name: 'hero',
description: 'A young explorer wearing a yellow raincoat.',
element_image_urls: ['https://example.com/hero-1.jpg', 'https://example.com/hero-2.jpg']
}
],
duration: 10,
audio: true,
input_compliance: 'enabled',
output_compliance: 'enabled'
}
})
};
fetch('https://api.crun.ai/api/v1/client/job/CreateTask', 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.crun.ai/api/v1/client/job/CreateTask",
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/v3',
'callback_url' => 'https://your-domain.com/api/callback',
'input' => [
'mode' => 'pro',
'multi_shots' => true,
'shot_type' => 'customize',
'img_urls' => [
'https://example.com/reference-start.jpg'
],
'multi_prompt' => [
[
'prompt' => 'Wide shot of the explorer entering a ruined temple.',
'duration' => 4
],
[
'prompt' => 'Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.',
'duration' => 6
]
],
'element_list' => [
[
'name' => 'hero',
'description' => 'A young explorer wearing a yellow raincoat.',
'element_image_urls' => [
'https://example.com/hero-1.jpg',
'https://example.com/hero-2.jpg'
]
]
],
'duration' => 10,
'audio' => true,
'input_compliance' => 'enabled',
'output_compliance' => 'enabled'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.crun.ai/api/v1/client/job/CreateTask"
payload := strings.NewReader("{\n \"model\": \"kling/v3\",\n \"callback_url\": \"https://your-domain.com/api/callback\",\n \"input\": {\n \"mode\": \"pro\",\n \"multi_shots\": true,\n \"shot_type\": \"customize\",\n \"img_urls\": [\n \"https://example.com/reference-start.jpg\"\n ],\n \"multi_prompt\": [\n {\n \"prompt\": \"Wide shot of the explorer entering a ruined temple.\",\n \"duration\": 4\n },\n {\n \"prompt\": \"Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.\",\n \"duration\": 6\n }\n ],\n \"element_list\": [\n {\n \"name\": \"hero\",\n \"description\": \"A young explorer wearing a yellow raincoat.\",\n \"element_image_urls\": [\n \"https://example.com/hero-1.jpg\",\n \"https://example.com/hero-2.jpg\"\n ]\n }\n ],\n \"duration\": 10,\n \"audio\": true,\n \"input_compliance\": \"enabled\",\n \"output_compliance\": \"enabled\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.crun.ai/api/v1/client/job/CreateTask")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"kling/v3\",\n \"callback_url\": \"https://your-domain.com/api/callback\",\n \"input\": {\n \"mode\": \"pro\",\n \"multi_shots\": true,\n \"shot_type\": \"customize\",\n \"img_urls\": [\n \"https://example.com/reference-start.jpg\"\n ],\n \"multi_prompt\": [\n {\n \"prompt\": \"Wide shot of the explorer entering a ruined temple.\",\n \"duration\": 4\n },\n {\n \"prompt\": \"Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.\",\n \"duration\": 6\n }\n ],\n \"element_list\": [\n {\n \"name\": \"hero\",\n \"description\": \"A young explorer wearing a yellow raincoat.\",\n \"element_image_urls\": [\n \"https://example.com/hero-1.jpg\",\n \"https://example.com/hero-2.jpg\"\n ]\n }\n ],\n \"duration\": 10,\n \"audio\": true,\n \"input_compliance\": \"enabled\",\n \"output_compliance\": \"enabled\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.crun.ai/api/v1/client/job/CreateTask")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"kling/v3\",\n \"callback_url\": \"https://your-domain.com/api/callback\",\n \"input\": {\n \"mode\": \"pro\",\n \"multi_shots\": true,\n \"shot_type\": \"customize\",\n \"img_urls\": [\n \"https://example.com/reference-start.jpg\"\n ],\n \"multi_prompt\": [\n {\n \"prompt\": \"Wide shot of the explorer entering a ruined temple.\",\n \"duration\": 4\n },\n {\n \"prompt\": \"Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.\",\n \"duration\": 6\n }\n ],\n \"element_list\": [\n {\n \"name\": \"hero\",\n \"description\": \"A young explorer wearing a yellow raincoat.\",\n \"element_image_urls\": [\n \"https://example.com/hero-1.jpg\",\n \"https://example.com/hero-2.jpg\"\n ]\n }\n ],\n \"duration\": 10,\n \"audio\": true,\n \"input_compliance\": \"enabled\",\n \"output_compliance\": \"enabled\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "success",
"data": {
"task_id": "task_12345678"
}
}{
"code": 422,
"message": "Missing Params or Type Error",
"errors": [
"specific error field message"
]
}Kling
Kling-v3.0 视频生成
Kling Video 3.0 支持最长 15 秒视频生成,提供多镜头控制、原生音频和更稳定的主体一致性。
POST
/
api
/
v1
/
client
/
job
/
CreateTask
Kling-v3.0 视频生成
curl --request POST \
--url https://api.crun.ai/api/v1/client/job/CreateTask \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"model": "kling/v3",
"callback_url": "https://your-domain.com/api/callback",
"input": {
"mode": "pro",
"multi_shots": true,
"shot_type": "customize",
"img_urls": [
"https://example.com/reference-start.jpg"
],
"multi_prompt": [
{
"prompt": "Wide shot of the explorer entering a ruined temple.",
"duration": 4
},
{
"prompt": "Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.",
"duration": 6
}
],
"element_list": [
{
"name": "hero",
"description": "A young explorer wearing a yellow raincoat.",
"element_image_urls": [
"https://example.com/hero-1.jpg",
"https://example.com/hero-2.jpg"
]
}
],
"duration": 10,
"audio": true,
"input_compliance": "enabled",
"output_compliance": "enabled"
}
}
'import requests
url = "https://api.crun.ai/api/v1/client/job/CreateTask"
payload = {
"model": "kling/v3",
"callback_url": "https://your-domain.com/api/callback",
"input": {
"mode": "pro",
"multi_shots": True,
"shot_type": "customize",
"img_urls": ["https://example.com/reference-start.jpg"],
"multi_prompt": [
{
"prompt": "Wide shot of the explorer entering a ruined temple.",
"duration": 4
},
{
"prompt": "Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.",
"duration": 6
}
],
"element_list": [
{
"name": "hero",
"description": "A young explorer wearing a yellow raincoat.",
"element_image_urls": ["https://example.com/hero-1.jpg", "https://example.com/hero-2.jpg"]
}
],
"duration": 10,
"audio": True,
"input_compliance": "enabled",
"output_compliance": "enabled"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'kling/v3',
callback_url: 'https://your-domain.com/api/callback',
input: {
mode: 'pro',
multi_shots: true,
shot_type: 'customize',
img_urls: ['https://example.com/reference-start.jpg'],
multi_prompt: [
{prompt: 'Wide shot of the explorer entering a ruined temple.', duration: 4},
{
prompt: 'Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.',
duration: 6
}
],
element_list: [
{
name: 'hero',
description: 'A young explorer wearing a yellow raincoat.',
element_image_urls: ['https://example.com/hero-1.jpg', 'https://example.com/hero-2.jpg']
}
],
duration: 10,
audio: true,
input_compliance: 'enabled',
output_compliance: 'enabled'
}
})
};
fetch('https://api.crun.ai/api/v1/client/job/CreateTask', 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.crun.ai/api/v1/client/job/CreateTask",
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/v3',
'callback_url' => 'https://your-domain.com/api/callback',
'input' => [
'mode' => 'pro',
'multi_shots' => true,
'shot_type' => 'customize',
'img_urls' => [
'https://example.com/reference-start.jpg'
],
'multi_prompt' => [
[
'prompt' => 'Wide shot of the explorer entering a ruined temple.',
'duration' => 4
],
[
'prompt' => 'Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.',
'duration' => 6
]
],
'element_list' => [
[
'name' => 'hero',
'description' => 'A young explorer wearing a yellow raincoat.',
'element_image_urls' => [
'https://example.com/hero-1.jpg',
'https://example.com/hero-2.jpg'
]
]
],
'duration' => 10,
'audio' => true,
'input_compliance' => 'enabled',
'output_compliance' => 'enabled'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.crun.ai/api/v1/client/job/CreateTask"
payload := strings.NewReader("{\n \"model\": \"kling/v3\",\n \"callback_url\": \"https://your-domain.com/api/callback\",\n \"input\": {\n \"mode\": \"pro\",\n \"multi_shots\": true,\n \"shot_type\": \"customize\",\n \"img_urls\": [\n \"https://example.com/reference-start.jpg\"\n ],\n \"multi_prompt\": [\n {\n \"prompt\": \"Wide shot of the explorer entering a ruined temple.\",\n \"duration\": 4\n },\n {\n \"prompt\": \"Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.\",\n \"duration\": 6\n }\n ],\n \"element_list\": [\n {\n \"name\": \"hero\",\n \"description\": \"A young explorer wearing a yellow raincoat.\",\n \"element_image_urls\": [\n \"https://example.com/hero-1.jpg\",\n \"https://example.com/hero-2.jpg\"\n ]\n }\n ],\n \"duration\": 10,\n \"audio\": true,\n \"input_compliance\": \"enabled\",\n \"output_compliance\": \"enabled\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.crun.ai/api/v1/client/job/CreateTask")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"kling/v3\",\n \"callback_url\": \"https://your-domain.com/api/callback\",\n \"input\": {\n \"mode\": \"pro\",\n \"multi_shots\": true,\n \"shot_type\": \"customize\",\n \"img_urls\": [\n \"https://example.com/reference-start.jpg\"\n ],\n \"multi_prompt\": [\n {\n \"prompt\": \"Wide shot of the explorer entering a ruined temple.\",\n \"duration\": 4\n },\n {\n \"prompt\": \"Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.\",\n \"duration\": 6\n }\n ],\n \"element_list\": [\n {\n \"name\": \"hero\",\n \"description\": \"A young explorer wearing a yellow raincoat.\",\n \"element_image_urls\": [\n \"https://example.com/hero-1.jpg\",\n \"https://example.com/hero-2.jpg\"\n ]\n }\n ],\n \"duration\": 10,\n \"audio\": true,\n \"input_compliance\": \"enabled\",\n \"output_compliance\": \"enabled\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.crun.ai/api/v1/client/job/CreateTask")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"kling/v3\",\n \"callback_url\": \"https://your-domain.com/api/callback\",\n \"input\": {\n \"mode\": \"pro\",\n \"multi_shots\": true,\n \"shot_type\": \"customize\",\n \"img_urls\": [\n \"https://example.com/reference-start.jpg\"\n ],\n \"multi_prompt\": [\n {\n \"prompt\": \"Wide shot of the explorer entering a ruined temple.\",\n \"duration\": 4\n },\n {\n \"prompt\": \"Medium shot as @hero lifts a glowing relic and dust falls from the ceiling.\",\n \"duration\": 6\n }\n ],\n \"element_list\": [\n {\n \"name\": \"hero\",\n \"description\": \"A young explorer wearing a yellow raincoat.\",\n \"element_image_urls\": [\n \"https://example.com/hero-1.jpg\",\n \"https://example.com/hero-2.jpg\"\n ]\n }\n ],\n \"duration\": 10,\n \"audio\": true,\n \"input_compliance\": \"enabled\",\n \"output_compliance\": \"enabled\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "success",
"data": {
"task_id": "task_12345678"
}
}{
"code": 422,
"message": "Missing Params or Type Error",
"errors": [
"specific error field message"
]
}概览
Kling Video 3.0 可将文本描述或静态图片生成最高 4K 的视频片段。模型支持生成 3 到 15 秒的视频,相比早期版本 10 秒的上限有明显提升。它可以在一次生成中处理写实场景、风格化内容,以及复杂的多步骤动作。 你也可以在生成视频的同时生成原生音频,包括带口型同步的对白、音效和环境声。关键规则
- 每次请求都必须传入
multi_shots。 - 当
multi_shots为true时:img_urls必须且只能包含 1 张图片。audio会被强制设为true。shot_type用于控制多镜头生成模式:customize:需要传入multi_promptintelligence:需要传入prompt
- 当
shot_type为customize时,所有multi_prompt镜头时长之和必须严格等于duration。 - 单镜头模式下,
img_urls支持传入 1 张起始帧,或传入 2 张图片进行首尾帧控制。 - 如果提供了
img_urls,aspect_ratio会被忽略,输出视频会跟随第一张图片的宽高比。 - 多镜头模式下,
audio会被强制设为true。 element_list最多支持 3 个元素,每个元素可接收 1 到 4 张参考图片。
使用方式
文生视频
描述你希望看到的画面。模型会根据描述生成视频画面,并可选择同时生成音频。 使用示例:{
"model": "kling/v3",
"input": {
"mode": "std",
"multi_shots": false,
"prompt": "An astronaut floats alone in deep space, Earth glowing blue behind them, camera slowly rotating around their helmet reflecting the stars.",
"duration": 10,
"aspect_ratio": "16:9",
"audio": true
}
}
图生视频
上传一张起始图片,并描述你希望生成的运动效果。你也可以提供一张结束图片,用于控制视频最终过渡到的画面。 使用示例:{
"model": "kling/v3",
"input": {
"mode": "std",
"multi_shots": false,
"prompt": "Cinematic drone footage of a dragon made of living fire soaring over a frozen Nordic fjord at twilight.",
"img_urls": [
"https://example.com/start_image.jpg"
],
"duration": 15,
"audio": true
}
}
{
"model": "kling/v3",
"input": {
"mode": "pro",
"multi_shots": false,
"prompt": "The robot slowly repairs itself and stands up ready for battle.",
"img_urls": [
"https://example.com/start-frame.jpg",
"https://example.com/end-frame.jpg"
],
"duration": 15,
"audio": true
}
}
多镜头模式
对于包含多个场景的视频,请将multi_shots 设置为 true。
多镜头模式支持两种生成方式:
校验规则
-
当
multi_shots=true且shot_type=customize时:- 必须传入
multi_prompt - 所有镜头时长总和必须等于
duration
- 必须传入
-
当
multi_shots=true且shot_type=intelligence时:- 必须传入
prompt - 不应再传入
multi_prompt
- 必须传入
-
当
multi_shots=false时:shot_type会自动设置为null
1. 自定义分镜模式
使用shot_type="customize" 并配合 multi_prompt 手动定义每个镜头。
multi_prompt 需要传入一个 JSON 数组,每个元素定义一个镜头,并包含该镜头的提示词和时长。
最多可定义 6 个镜头,每个镜头时长至少为 1 秒。所有镜头时长之和必须等于 duration 参数。
使用示例
{
"model": "kling/v3",
"input": {
"mode": "pro",
"multi_shots": true,
"shot_type": "customize",
"img_urls": [
"https://example.com/reference-start.jpg"
],
"multi_prompt": [
{
"prompt": "Wide shot of the explorer entering a ruined temple.",
"duration": 4
},
{
"prompt": "Medium shot as the explorer lifts a glowing relic and dust falls from the ceiling.",
"duration": 6
}
],
"duration": 10,
"audio": true
}
}
2. 智能分镜模式
使用shot_type="intelligence" 并配合单个 prompt。
模型会自动理解提示词内容,并智能生成多个电影化镜头与转场。
使用示例
{
"model": "kling/v3",
"input": {
"mode": "std",
"multi_shots": true,
"shot_type": "intelligence",
"img_urls": [
"https://example.com/reference-start.jpg"
],
"prompt": "A lone samurai walks through a rainy cyberpunk city, neon reflections glowing on wet streets, cinematic atmosphere, dramatic camera transitions.",
"duration": 10,
"audio": true
}
}
元素参考
在element_list 数组中定义元素后,可以在提示词中使用 @element_name 语法引用对应图片。
{
"model": "kling/v3",
"input": {
"mode": "pro",
"multi_shots": false,
"prompt": "In a bright rehearsal room, sunlight streams through the window @element_dog",
"img_urls": [
"https://example.com/reference_room.png"
],
"element_list": [
{
"name": "element_dog",
"description": "dog",
"name": "hero",
"description": "A young explorer wearing a yellow raincoat.",
"element_image_urls": [
"https://example.com/element_dog_1.png",
"https://example.com/element_dog_2.png"
]
}
],
"duration": 10,
"audio": true
}
}
{
"model": "kling/v3",
"input": {
"mode": "pro",
"multi_shots": true,
"shot_type": "customize",
"multi_prompt": [
{
"prompt": "a happy dog in running @element_dog",
"duration": 3
},
{
"prompt": "a happy dog play with a cat @element_cat",
"duration": 3
}
],
"element_list": [
{
"name": "element_cat",
"description": "cat",
"element_image_urls": [
"https://example.com/element_cat.png"
]
},
{
"name": "element_dog",
"description": "dog",
"element_image_urls": [
"https://example.com/element_dog_1.png",
"https://example.com/element_dog_2.png"
]
}
],
"duration": 6,
"aspect_ratio": "9:16",
"audio": true
}
}
查询任务状态
提交任务后,请使用统一查询接口查看进度并获取结果:获取任务信息
了解如何查询任务状态并获取生成结果
生产环境中,建议使用
callback_url 参数接收任务完成后的自动通知,而不是轮询状态接口。相关资源
模型概览
查看所有可用模型
通用 API
查询账户剩余积分
授权
所有 API 都需要通过 API Key 进行身份验证。
获取 API Key:
- 访问 API Key 管理页面 获取您的 API Key
使用方式: 添加到请求头:
x-api-key: YOUR_API_KEY
注意:
- 请妥善保管您的 API Key,不要与他人共享
- 如果怀疑 API Key 已泄露,请立即在管理页面重置
请求体
application/json
用于生成的模型名称,必填。
- 此接口必须使用
kling/v3
可用选项:
kling/v3 Kling V3 高阶视频生成任务的输入参数。支持标准 / 专业模式、多镜头序列、智能分镜和精细元素控制。
Show child attributes
Show child attributes
可选。用于接收任务完成通知的回调 URL。
- 生成完成后,系统会向该 URL POST 任务状态和结果
- 回调 payload 结构与任务状态查询接口返回的
data对象一致 - 您的回调接口应支持接收包含结果的 JSON POST 请求
- 成功接收后应返回 HTTP 200 状态码
示例:
"https://your-domain.com/api/callback"
响应
请求成功
响应状态码
- 200:成功,请求已成功处理
- 401:未授权,身份验证凭证缺失或无效
- 402:积分不足,账户积分不足以执行本次操作
- 404:未找到,请求的资源或接口不存在
- 422:参数校验错误,请求参数未通过校验
- 429:触发速率限制,请求频率已超过当前资源限制
- 455:服务不可用,系统正在维护
- 500:服务器错误,处理请求时发生意外错误
- 501:生成失败,内容生成任务失败
- 505:功能已禁用,请求的功能当前不可用
可用选项:
200, 401, 402, 404, 422, 429, 455, 500, 501, 505 响应消息;失败时为错误说明
示例:
"success"
Show child attributes
Show child attributes
此页面对您有帮助吗?
⌘I
