Submit Kling v3 Omni task
curl --request POST \
--url https://api.wizzx.ai/api/v1/task/submit/kling-v3-omni \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "The character in <<<image_1>>> walks into the scene in <<<image_2>>>",
"type": "reference-to-video",
"image_urls": [
"https://example.com/character.jpg",
"https://example.com/scene.jpg"
],
"duration": 5
}
'import requests
url = "https://api.wizzx.ai/api/v1/task/submit/kling-v3-omni"
payload = {
"prompt": "The character in <<<image_1>>> walks into the scene in <<<image_2>>>",
"type": "reference-to-video",
"image_urls": ["https://example.com/character.jpg", "https://example.com/scene.jpg"],
"duration": 5
}
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({
prompt: 'The character in <<<image_1>>> walks into the scene in <<<image_2>>>',
type: 'reference-to-video',
image_urls: ['https://example.com/character.jpg', 'https://example.com/scene.jpg'],
duration: 5
})
};
fetch('https://api.wizzx.ai/api/v1/task/submit/kling-v3-omni', 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.wizzx.ai/api/v1/task/submit/kling-v3-omni",
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' => 'The character in <<<image_1>>> walks into the scene in <<<image_2>>>',
'type' => 'reference-to-video',
'image_urls' => [
'https://example.com/character.jpg',
'https://example.com/scene.jpg'
],
'duration' => 5
]),
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.wizzx.ai/api/v1/task/submit/kling-v3-omni"
payload := strings.NewReader("{\n \"prompt\": \"The character in <<<image_1>>> walks into the scene in <<<image_2>>>\",\n \"type\": \"reference-to-video\",\n \"image_urls\": [\n \"https://example.com/character.jpg\",\n \"https://example.com/scene.jpg\"\n ],\n \"duration\": 5\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.wizzx.ai/api/v1/task/submit/kling-v3-omni")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"The character in <<<image_1>>> walks into the scene in <<<image_2>>>\",\n \"type\": \"reference-to-video\",\n \"image_urls\": [\n \"https://example.com/character.jpg\",\n \"https://example.com/scene.jpg\"\n ],\n \"duration\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wizzx.ai/api/v1/task/submit/kling-v3-omni")
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 \"prompt\": \"The character in <<<image_1>>> walks into the scene in <<<image_2>>>\",\n \"type\": \"reference-to-video\",\n \"image_urls\": [\n \"https://example.com/character.jpg\",\n \"https://example.com/scene.jpg\"\n ],\n \"duration\": 5\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_key": "<string>",
"credits_deducted": 1,
"provider_task_id": "<string>",
"provider_key": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}视频生成
提交 Kling v3 Omni 任务
POST Kling v3 Omni 文生、首尾帧或多参考图视频任务
POST
/
api
/
v1
/
task
/
submit
/
kling-v3-omni
Submit Kling v3 Omni task
curl --request POST \
--url https://api.wizzx.ai/api/v1/task/submit/kling-v3-omni \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "The character in <<<image_1>>> walks into the scene in <<<image_2>>>",
"type": "reference-to-video",
"image_urls": [
"https://example.com/character.jpg",
"https://example.com/scene.jpg"
],
"duration": 5
}
'import requests
url = "https://api.wizzx.ai/api/v1/task/submit/kling-v3-omni"
payload = {
"prompt": "The character in <<<image_1>>> walks into the scene in <<<image_2>>>",
"type": "reference-to-video",
"image_urls": ["https://example.com/character.jpg", "https://example.com/scene.jpg"],
"duration": 5
}
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({
prompt: 'The character in <<<image_1>>> walks into the scene in <<<image_2>>>',
type: 'reference-to-video',
image_urls: ['https://example.com/character.jpg', 'https://example.com/scene.jpg'],
duration: 5
})
};
fetch('https://api.wizzx.ai/api/v1/task/submit/kling-v3-omni', 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.wizzx.ai/api/v1/task/submit/kling-v3-omni",
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' => 'The character in <<<image_1>>> walks into the scene in <<<image_2>>>',
'type' => 'reference-to-video',
'image_urls' => [
'https://example.com/character.jpg',
'https://example.com/scene.jpg'
],
'duration' => 5
]),
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.wizzx.ai/api/v1/task/submit/kling-v3-omni"
payload := strings.NewReader("{\n \"prompt\": \"The character in <<<image_1>>> walks into the scene in <<<image_2>>>\",\n \"type\": \"reference-to-video\",\n \"image_urls\": [\n \"https://example.com/character.jpg\",\n \"https://example.com/scene.jpg\"\n ],\n \"duration\": 5\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.wizzx.ai/api/v1/task/submit/kling-v3-omni")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"The character in <<<image_1>>> walks into the scene in <<<image_2>>>\",\n \"type\": \"reference-to-video\",\n \"image_urls\": [\n \"https://example.com/character.jpg\",\n \"https://example.com/scene.jpg\"\n ],\n \"duration\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wizzx.ai/api/v1/task/submit/kling-v3-omni")
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 \"prompt\": \"The character in <<<image_1>>> walks into the scene in <<<image_2>>>\",\n \"type\": \"reference-to-video\",\n \"image_urls\": [\n \"https://example.com/character.jpg\",\n \"https://example.com/scene.jpg\"\n ],\n \"duration\": 5\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model_key": "<string>",
"credits_deducted": 1,
"provider_task_id": "<string>",
"provider_key": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1
}提交任务
prompt 与 type 必填。image-to-video 传 1–2 个公网 HTTP(S) 图片 URL(首帧、尾帧);reference-to-video 传 1–7 张参考图,提示词中可用 <<<image_1>>> … <<<image_N>>> 引用;text-to-video 不可传 image_urls。
curl --fail-with-body --silent --show-error \
-X POST https://api.wizzx.ai/api/v1/task/submit/kling-v3-omni \
-H "Authorization: Bearer <api_key>" \
-H "Content-Type: application/json" \
--data '{
"prompt": "<<<image_1>>> 中的角色走进 <<<image_2>>> 中的场景",
"type": "reference-to-video",
"image_urls": [
"https://example.com/character.jpg",
"https://example.com/scene.jpg"
],
"resolution": "720p",
"duration": 5
}'
/pricing 为准。授权
Wizzx API key. This is not a JWT.
请求体
application/json
- Option 1
- Option 2
- Option 3
text-to-video must omit image_urls; image-to-video takes 1-2 frames (first, last); reference-to-video takes 1-7 reference images that the prompt can cite as <<<image_1>>> ... <<<image_N>>>. Reference images are not billed.
可用选项:
text-to-video Required prompt, at most 2500 Unicode characters.
Required string length:
1 - 2500Maximum array length:
7Publicly reachable HTTP(S) URL.
Pattern:
^https?://720p (standard) or 1080p (professional). 4K is not offered.
可用选项:
720p, 1080p 必填范围:
3 <= x <= 15Defaults to 16:9. In image-to-video the first frame's ratio may take precedence.
可用选项:
16:9, 9:16, 1:1 Generate native audio. Audio selects a higher per-second rate.
Maximum string length:
2500此页面对您有帮助吗?
