curl --request POST \
--url https://api.comfy.org/v2/native/kling/omni-video/kling-4.0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contents": [
{
"text": "<string>",
"url": "<string>",
"id": "<string>",
"element_id": "<string>",
"voice_id": "<string>"
}
],
"settings": {
"duration": 16
},
"options": {
"watermark_info": {
"enabled": true
}
}
}
'import requests
url = "https://api.comfy.org/v2/native/kling/omni-video/kling-4.0"
payload = {
"contents": [
{
"text": "<string>",
"url": "<string>",
"id": "<string>",
"element_id": "<string>",
"voice_id": "<string>"
}
],
"settings": { "duration": 16 },
"options": { "watermark_info": { "enabled": True } }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contents: [
{
text: '<string>',
url: '<string>',
id: '<string>',
element_id: '<string>',
voice_id: '<string>'
}
],
settings: {duration: 16},
options: {watermark_info: {enabled: true}}
})
};
fetch('https://api.comfy.org/v2/native/kling/omni-video/kling-4.0', 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.comfy.org/v2/native/kling/omni-video/kling-4.0",
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([
'contents' => [
[
'text' => '<string>',
'url' => '<string>',
'id' => '<string>',
'element_id' => '<string>',
'voice_id' => '<string>'
]
],
'settings' => [
'duration' => 16
],
'options' => [
'watermark_info' => [
'enabled' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.comfy.org/v2/native/kling/omni-video/kling-4.0"
payload := strings.NewReader("{\n \"contents\": [\n {\n \"text\": \"<string>\",\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"element_id\": \"<string>\",\n \"voice_id\": \"<string>\"\n }\n ],\n \"settings\": {\n \"duration\": 16\n },\n \"options\": {\n \"watermark_info\": {\n \"enabled\": true\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.comfy.org/v2/native/kling/omni-video/kling-4.0")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contents\": [\n {\n \"text\": \"<string>\",\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"element_id\": \"<string>\",\n \"voice_id\": \"<string>\"\n }\n ],\n \"settings\": {\n \"duration\": 16\n },\n \"options\": {\n \"watermark_info\": {\n \"enabled\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comfy.org/v2/native/kling/omni-video/kling-4.0")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contents\": [\n {\n \"text\": \"<string>\",\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"element_id\": \"<string>\",\n \"voice_id\": \"<string>\"\n }\n ],\n \"settings\": {\n \"duration\": 16\n },\n \"options\": {\n \"watermark_info\": {\n \"enabled\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"message": "<string>",
"request_id": "<string>",
"data": {
"id": "<string>",
"status": "<string>",
"create_time": 123,
"update_time": 123,
"external_id": "<string>"
}
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}Submit a Kling 4.0 omni-video task in Kling's native shape.
Optional provider-native alternative to /v2/models/kling/kling-4.0: the body is Kling’s own omni-video request and the answer is Kling’s own task response shape. Poll the task on GET /v2/native/kling/tasks. Admission, limits and billing are the same as for the text-to-video submit, at the Kling 4.0 Router list price. callback_url and external_task_id are never forwarded to Kling, so poll by the task id the submit returns (data.id). Only application/json bodies are accepted. This pass-through is enabled per workspace; where it is not enabled the route answers 404.
curl --request POST \
--url https://api.comfy.org/v2/native/kling/omni-video/kling-4.0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contents": [
{
"text": "<string>",
"url": "<string>",
"id": "<string>",
"element_id": "<string>",
"voice_id": "<string>"
}
],
"settings": {
"duration": 16
},
"options": {
"watermark_info": {
"enabled": true
}
}
}
'import requests
url = "https://api.comfy.org/v2/native/kling/omni-video/kling-4.0"
payload = {
"contents": [
{
"text": "<string>",
"url": "<string>",
"id": "<string>",
"element_id": "<string>",
"voice_id": "<string>"
}
],
"settings": { "duration": 16 },
"options": { "watermark_info": { "enabled": True } }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contents: [
{
text: '<string>',
url: '<string>',
id: '<string>',
element_id: '<string>',
voice_id: '<string>'
}
],
settings: {duration: 16},
options: {watermark_info: {enabled: true}}
})
};
fetch('https://api.comfy.org/v2/native/kling/omni-video/kling-4.0', 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.comfy.org/v2/native/kling/omni-video/kling-4.0",
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([
'contents' => [
[
'text' => '<string>',
'url' => '<string>',
'id' => '<string>',
'element_id' => '<string>',
'voice_id' => '<string>'
]
],
'settings' => [
'duration' => 16
],
'options' => [
'watermark_info' => [
'enabled' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.comfy.org/v2/native/kling/omni-video/kling-4.0"
payload := strings.NewReader("{\n \"contents\": [\n {\n \"text\": \"<string>\",\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"element_id\": \"<string>\",\n \"voice_id\": \"<string>\"\n }\n ],\n \"settings\": {\n \"duration\": 16\n },\n \"options\": {\n \"watermark_info\": {\n \"enabled\": true\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.comfy.org/v2/native/kling/omni-video/kling-4.0")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"contents\": [\n {\n \"text\": \"<string>\",\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"element_id\": \"<string>\",\n \"voice_id\": \"<string>\"\n }\n ],\n \"settings\": {\n \"duration\": 16\n },\n \"options\": {\n \"watermark_info\": {\n \"enabled\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comfy.org/v2/native/kling/omni-video/kling-4.0")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"contents\": [\n {\n \"text\": \"<string>\",\n \"url\": \"<string>\",\n \"id\": \"<string>\",\n \"element_id\": \"<string>\",\n \"voice_id\": \"<string>\"\n }\n ],\n \"settings\": {\n \"duration\": 16\n },\n \"options\": {\n \"watermark_info\": {\n \"enabled\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"message": "<string>",
"request_id": "<string>",
"data": {
"id": "<string>",
"status": "<string>",
"create_time": 123,
"update_time": 123,
"external_id": "<string>"
}
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}{
"detail": "<string>",
"error_type": "invalid_input",
"upstream_detail": "<string>",
"refusal_subject": "<string>",
"budget": {
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
},
"blocking_budgets": [
{
"scope_kind": "<string>",
"resets_at": "2023-11-07T05:31:56Z",
"set_by": "<string>",
"id": "<string>",
"scope_id": "<string>",
"mode": "<string>",
"limit_micro_usd": 123,
"spent_micro_usd": 123,
"limit_credits": 123,
"spent_credits": 123
}
],
"denied_reason": "<string>",
"billed_workspace": {
"type": "<string>",
"id": "<string>",
"rail": "<string>"
},
"credential_kind": "<string>"
}Authorizations
Body
Kling's native Kling 4.0 omni-video request.
Request body for a Kling 4.0 omni video generation. The prompt is a contents item of type "prompt"; a top-level prompt is refused rather than ignored. Up to 15 inputs in total, with at most 10 images, 5 videos, 7 elements and 3 voices. A request with a "feature_video", a "base_video" or a video character element bills at the video-input rate. settings.resolution is required, and so is settings.duration unless contents holds a "base_video", so the request never falls back to Kling's own defaults, which are the most expensive configuration.
Was this page helpful?