Bearer token authentication. Use your CometAPI key.
请求头
Content-Type
string
Content type of the request body.
请求体
application/json
prompt
string
必填
Text prompt describing the desired video. Maximum length is 2,500 characters. When you send image_list, reference the image with <<<image_1>>>.
model_name
string
Optional model ID for this Kling Omni video request. Omit this field to use the route default.
image_list
object[]
Optional first-frame image reference for image-referenced Omni generation.
Show child attributes
sound
enum<string>
默认值:off
Whether to generate audio with the video. Use on or off.
可用选项:
on,
off
mode
enum<string>
Generation mode. Use std for standard generation or pro when the selected model supports the higher-quality mode.
可用选项:
std,
pro
aspect_ratio
enum<string>
Aspect ratio request for beta Kling Omni generation. The endpoint does not expose an exact size field; a 16:9 text-to-video request can render as 1920x1080.
可用选项:
16:9,
9:16,
1:1
duration
enum<string>
默认值:5
Requested output length for text-to-video and first-frame image-reference workflows. Use 5 or 10 as a string.
可用选项:
5,
10
watermark_info
object
Watermark options. When enabled is true, the task can return watermarked result URLs in addition to original result URLs.
Show child attributes
callback_url
string<uri>
Webhook URL for task status notifications. The server sends a callback when the task status changes.
external_task_id
string
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.
响应
200 - application/json
Success
code
integer
必填
Response code. 0 means the task request was accepted.
message
string
必填
Response message.
data
object
必填
Show child attributes
request_id
string
Request identifier returned by CometAPI when present.
最后修改于 2026年7月2日
⌘I
curl https://api.cometapi.com/kling/v1/videos/omni-video \ -H "Authorization: Bearer $COMETAPI_KEY" \ -H "Content-Type: application/json" \ -d '{ "model_name": "kling-v3-omni", "prompt": "A paper boat drifts across a calm pond at sunrise.", "mode": "std", "aspect_ratio": "16:9", "duration": "5", "sound": "off" }'