Saltar al contenido principal
POST
Submit a Kling 4.0 omni-video task in Kling's native shape.

Autorizaciones

Authorization
string
header
requerido

Bearer token authentication. Normally a Firebase or Cloud JWT. A 'comfyui-' prefixed API key is also accepted in this header: the prefix classifies the value as an API key and it is validated exactly as if it had been sent in X-API-Key.

Cuerpo

application/json

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.

contents
object[]
requerido

The prompt and the reference inputs, up to 15.

Required array length: 1 - 16 elements
settings
object
requerido

Output configuration such as resolution, aspect ratio and duration.

options
object | null

General configuration such as watermark options. options.callback_url and options.external_task_id are not supported on Kling 4.0; Comfy Router refuses a request that sets either inside options. An explicit null options is treated as absent.

Respuesta

OK - the task-creation response, in Kling's own shape.

Response returned when a Kling 3.0 Turbo task is created.

code
integer

Error code. 0 indicates success.

message
string

Error message.

request_id
string

Request ID generated by the system.

data
object