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
string
required
Model name. For example,
Kling-3.0-Omni, Kling-2.6, Kling-2.5.string
required
Prompt. The text description for video generation, supporting both Chinese and English.
string
Video duration. For example,
5, 10, 15.string
Video size. Fast size input, for example
720x1280.string
Reference image. Reference image URL.
object
Metadata. A container for extended parameters. It is recommended to place all upstream native parameters in
metadata.object
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)
string
Scene type. Examples:
motion_control (motion control), avatar_i2v (digital human generation), lip_sync (lip sync), template_effect (template effects).string
Motion level. Examples:
std (standard), pro (professional, used for motion control billing tiers).boolean
Whether off-peak billing is used.
true: generate video off-peak; false: generate video immediately.string
Last frame in first-and-last-frame generation. Specify the tail-frame image URL when generating a first-and-last-frame video.
string
Reference video URL.
string
File information. Native
FileInfos passthrough (advanced usage).string
Extended information. Native
ExtInfo string passthrough (advanced usage).Response
string
Task ID.
string
Task ID (same as
id).string
Fixed to
video.string
Model name.
string
Task status. Common values include
queued, processing, completed, failed, cancelled.integer
Progress percentage (0-100).
integer
Creation time (Unix timestamp).