Skip to content

Kling Video O1 Pro

POST/v1/run

Kling Video O1 Pro by KwaiVGI - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.

Request body

Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.

stringmodelrequired

Model identifier. Set to kwaivgi/kling-video/o1/pro/video-to-video.

Default: kwaivgi/kling-video/o1/pro/video-to-video

stringpromptrequired

Use @Element1, @Element2 to reference elements and @Image1, @Image2 to reference images in order.

Optional<array<string>>images

Reference images for style/appearance. Reference in prompt as @Image1, @Image2, etc. Maximum 4 total (elements + reference images) when using video.

Optional<string>video

Reference video URL. Only .mp4/.mov formats supported, 3-10 seconds duration, 720-2160px resolution, max 200MB. Max file size: 200.0MB, Min width: 720px, Min height: 720px, Max width: 2160px, Max height: 2160px, Min duration: 3.0s, Max duration: 10.05s, Min FPS: 24.0, Max FPS: 60.0, Timeout: 30.0s

Optional<integer>duration

Video duration in seconds.

Allowed values: 3, 4, 5, 6, 7, 8, 9, 10

Default: 5

Optional<boolean>keep_audio

Whether to keep the original audio from the video.

Default: false

Optional<string>aspect_ratio

The aspect ratio of the generated image.

Allowed values: 16:9, 9:16, 1:1

Response Schema

The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.

Optional<string>error

Error message if the task failed. Empty on success.

stringidrequired

Unique identifier for the generation task.

Optional<string>model

Model ID used for the prediction.

Optional<array>outputs

Array of generated content. Empty when status is not completed.

stringstatusrequired

Status of the task: pending, running, completed, failed, or timeout.

Allowed values: pending, running, completed, failed, timeout

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: video-to-video

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async