Skip to main content
POST
Submit Kling v3 Omni task

提交任务

prompt 与 type 必填。image-to-video 传 1–2 个公网 HTTP(S) 图片 URL(首帧、尾帧);reference-to-video 传 1–7 张参考图,提示词中可用 <<<image_1>>> … <<<image_N>>> 引用;text-to-video 不可传 image_urls。
网关按秒计费:720p = 130(有声 173)、1080p = 173(有声 216)积分/秒,参考图不另收费。具体积分以 /pricing 为准。

授权

Authorization
string
header
必填

Wizzx API key. This is not a JWT.

请求体

application/json

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.

type
enum<string>
必填
可用选项:
text-to-video
prompt
string
必填

Required prompt, at most 2500 Unicode characters.

Required string length: 1 - 2500
image_urls
string<uri>[]
Maximum array length: 7

Publicly reachable HTTP(S) URL.

Pattern: ^https?://
resolution
enum<string>
默认值:720p

720p (standard) or 1080p (professional). 4K is not offered.

可用选项:
720p,
1080p
duration
integer
默认值:5
必填范围: 3 <= x <= 15
aspect_ratio
enum<string>

Defaults to 16:9. In image-to-video the first frame's ratio may take precedence.

可用选项:
16:9,
9:16,
1:1
generate_audio
boolean
默认值:false

Generate native audio. Audio selects a higher per-second rate.

negative_prompt
string
Maximum string length: 2500

响应

Task accepted

code
enum<integer>
必填
可用选项:
0
message
string
必填
示例:

"success"

data
object
必填
request_id
string<uuid>
必填