Skip to main content
POST
Kling Video Generation

Kling Video Generation

Kling uses POST /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 metadata field.
  • After a successful submission, the task id and status are returned, and the result is later polled via Task Status Query.

Supported Models

  • Kling-3.0-Omni: Kling 3.0 all-in-one version
  • Kling-2.6: Kling 2.6 version
  • Kling-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: The model field in the response may include a billing-spec suffix (such as 720p-ref-audio), which differs from the model name passed in the request.

Authentication

Body

model
string
required
Model name. For example, Kling-3.0-Omni, Kling-2.6, Kling-2.5.
prompt
string
required
Prompt. The text description for video generation, supporting both Chinese and English.
seconds
string
Video duration. For example, 5, 10, 15.
size
string
Video size. Fast size input, for example 720x1280.
image
string
Reference image. Reference image URL.
metadata
object
Metadata. A container for extended parameters. It is recommended to place all upstream native parameters in metadata.
metadata.output_config
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)
metadata.scene_type
string
Scene type. Examples: motion_control (motion control), avatar_i2v (digital human generation), lip_sync (lip sync), template_effect (template effects).
metadata.motion_level
string
Motion level. Examples: std (standard), pro (professional, used for motion control billing tiers).
metadata.offpeak
boolean
Whether off-peak billing is used. true: generate video off-peak; false: generate video immediately.
metadata.last_frame_url
string
Last frame in first-and-last-frame generation. Specify the tail-frame image URL when generating a first-and-last-frame video.
metadata.video_url
string
Reference video URL.
metadata.file_infos
string
File information. Native FileInfos passthrough (advanced usage).
metadata.ext_info
string
Extended information. Native ExtInfo string passthrough (advanced usage).

Response

id
string
Task ID.
task_id
string
Task ID (same as id).
object
string
Fixed to video.
model
string
Model name.
status
string
Task status. Common values include queued, processing, completed, failed, cancelled.
progress
integer
Progress percentage (0-100).
created_at
integer
Creation time (Unix timestamp).