kling/kling-v3-omni, served by Comfy Router from Kling.
Input: Text, Image, Video · Output: Video
Quick start
Create a key in your Comfy workspace and export it asCOMFY_API_KEY. The Python and TypeScript snippets use the Comfy SDKs (pip install comfy-sdk and npm install @comfyorg/sdk); the cURL snippet is the same call over raw HTTP.
Model ID: kling/kling-v3-omni
Endpoint: POST https://api.comfy.org/v2/models/kling/kling-v3-omni
- Wait for the result
- Queue and collect later
The same body, sent to
POST https://api.comfy.org/v2/models/kling/kling-v3-omni/requests. Router answers 201 with a request_id as soon as the run is admitted, and the result is collected once it is ready, from this process or another one. Queued delivery walks through status, cancellation and collection.Schema
Input
The aspect ratio of the generated video frame (width:height). Required when first-frame reference or video editing features are not used.Possible values:
16:9, 9:16, 1:1The callback notification address for the result of this task. If configured, the server will actively notify when the task status changes. Ignored: comfy-api drops this field before forwarding; Comfy Router polls on your behalf.Format:
uriVideo Length in seconds. When using video editing function (refer_type: base), output duration is the same as input video and this parameter is invalid.Possible values:
3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Customized Task ID. Must be unique within a single user account. Ignored: comfy-api drops this field before forwarding; Comfy Router polls on your behalf.
Reference Image List. Can include reference images of the element, scene, style, etc., or be used as the first or last frame to generate videos.
Image Base64 encoding or image URL (ensure accessibility). Supported formats include .jpg/.jpeg/.png. File size cannot exceed 10MB. Width and height dimensions shall not be less than 300px, aspect ratio between 1:2.5 ~ 2.5:1.
Whether the image is in the first or last frame. first_frame is the first frame, end_frame is the last frame. Currently does not support only the end frame.Possible values:
first_frame, end_frameModel name. Omit it or send null when using Comfy Router; the model is selected by the request path. A supplied name must match that path.
Information about each storyboard, such as prompts and duration. Supports up to 6 storyboards, with a minimum of 1. Required when multi_shot is true and shot_type is customize.
Duration of this storyboard in seconds. Must not exceed total task duration and must not be less than 1. Sum of all storyboard durations equals total task duration.
Whether to generate multi-shot video. When true, the prompt parameter is invalid. When false, the shot_type and multi_prompt parameters are invalid.
Text prompt words, which can include positive and negative descriptions. Must not exceed 2,500 characters. Can specify elements, images, or videos in the format <<<>>> such as <<element_1>>, <<<image_1>>>, <<<video_1>>>.
Storyboard method. Required when the multi_shot parameter is set to true.Possible values:
customize, intelligenceWhether sound is generated simultaneously when generating videos.Possible values:
on, offReference Video list. Can be used as a reference video for feature or as a video to be edited, with the default being the video to be edited.
Whether to keep the video original sound. yes indicates retention, no indicates non retention.Possible values:
yes, noReference video type. feature is the feature reference video, base is the video to be edited.Possible values:
feature, baseURL of uploaded video. Only .mp4/.mov formats are supported. Duration between 3-10 seconds. Resolution must be between 720px and 2160px. Frame rates of 24-60 fps supported. Only 1 video can be uploaded, with size not exceeding 200MB.
Whether to generate watermarked results simultaneously. Custom watermark is not supported at this time.
Video generation mode. std: Standard Mode, generating 720P videos, cost-effective. pro: Professional Mode, generating 1080P videos, higher quality video output. 4k: Ultra-HD mode, generating a 4K-resolution video. Only kling-v3-omni supports 4k; kling-video-o1 answers pro/std only.Possible values:
pro, std, 4kGET /v2/models/kling/kling-v3-omni/openapi.json, the same document it validates a call against before the request reaches the provider.
Output
Examples
Input
Output
Before you ship
The SDKs create anIdempotency-Key and reuse it for automatic retries. For manual retries, reuse the original key. Router can hold the connection for up to 10 minutes.
When a request fails, Router sends an X-Comfy-Error-Type response header explaining why. A 422 means Router rejected the input before calling the provider, and a 413 means the request body was larger than Router accepts. Download generated assets promptly because result URLs can expire.
Any size limit named in a field description above is the provider’s own bound on that field, quoted from the provider’s specification. Router applies a separate cap to the whole request body, which base64-encoded media counts against: see request body size.
This page documents one partner model called through Comfy Router. The same comfy-sdk / @comfyorg/sdk package also ships a second client, for running a whole ComfyUI workflow graph on Comfy Cloud: Comfy(api_key=...) / new Comfy({ apiKey }), with client.workflows, client.assets and client.jobs. See Comfy SDKs.
Headers
Authentication, idempotency, request IDs, error buckets, retry pacing, spend limits.
Using the Router API
Model discovery, validation errors, retries, and billing.
Limitations
What Router does not do today, and what to use instead.