Kling Video Generation
OpenAI Format
Kling Video Generation
Use POST /v1/videos to call the Kling model and submit asynchronous video tasks.
POST
Kling Video Generation
Kling Video Generation
Kling usesPOST /v1/videos to submit tasks, with JSON submission as the primary method.
- The route entry is
POST /v1/videos. - JSON submission is currently used.
- Supports multiple scenarios, including text-to-video, image-to-video, and first-and-last-frame video generation.
- Extended parameters, including output configuration and scenario type, are passed through the
metadatafield. - After a successful submission, the task
idandstatusare returned, and the result is later polled via Task Status Query.
Supported Models
Kling-3.0-Omni: Kling 3.0 all-in-one versionKling-2.6: Kling 2.6 versionKling-2.5: Kling 2.5 version
Method and Path
Request Example
Scenario Examples
Text-to-Video
Image-to-Video
First-and-Last-Frame Video Generation
Motion Control
Response Example
Note: Themodelfield in the response may include a billing-spec suffix (such as720p-ref-audio), which differs from the model name passed in the request.
Authentication
Body
Model name. For example,
Kling-3.0-Omni, Kling-2.6, Kling-2.5.Prompt. The text description for video generation, supporting both Chinese and English.
Video duration. For example,
5, 10, 15.Video size. Fast size input, for example
720x1280.Reference image. Reference image URL.
Metadata. A container for extended parameters. It is recommended to place all upstream native parameters in
metadata.Output configuration. It is recommended to place all native parameters in
output_config.duration: duration (seconds)resolution: resolution (720P,1080P)aspect_ratio: aspect ratio (16:9,9:16,1:1)audio_generation: audio generation (Enabled,Disabled)
Scene type. Examples:
motion_control (motion control), avatar_i2v (digital human generation), lip_sync (lip sync), template_effect (template effects).Motion level. Examples:
std (standard), pro (professional, used for motion control billing tiers).Whether off-peak billing is used.
true: generate video off-peak; false: generate video immediately.Last frame in first-and-last-frame generation. Specify the tail-frame image URL when generating a first-and-last-frame video.
Reference video URL.
File information. Native
FileInfos passthrough (advanced usage).Extended information. Native
ExtInfo string passthrough (advanced usage).Response
Task ID.
Task ID (same as
id).Fixed to
video.Model name.
Task status. Common values include
queued, processing, completed, failed, cancelled.Progress percentage (0-100).
Creation time (Unix timestamp).