Models
| Model | Description |
|---|---|
kuaishou/kling-o1-generate | Generate videos from images |
kuaishou/kling-o1-edit | Edit/transform existing videos |
Generate Mode 1: Reference Images
Use 1-7 reference images to guide video generation.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Text description |
image_urls | array | Yes | 1-7 reference images |
aspect_ratio | string | Yes | 1:1, 9:16, 16:9 |
duration | integer | Yes | 3-10 seconds |
resolution | string | No | 720p or 1080p |
Example
Generate Mode 2: Start/End Frame
Use a start image (required) and optionally an end image for smooth transitions.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Text description |
start_image_url | string | Yes | Starting frame |
end_image_url | string | No | Ending frame |
aspect_ratio | string | Yes | 1:1, 9:16, 16:9 |
duration | integer | Yes | 5 or 10 seconds only |
resolution | string | No | 720p or 1080p |
Example
Edit Mode
Transform and edit existing videos using AI.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Edit/transformation description |
video_url | string | Yes | Source video (3-10 seconds) |
image_urls | array | No | Reference images (max 4) |
aspect_ratio | string | Yes | 1:1, 9:16, 16:9 |
duration | integer | Yes | 3-10 seconds |
resolution | string | No | 720p or 1080p |
Example
Response
Pricing
$0.048/s| Duration | Price |
|---|---|
| 3s | $0.144 |
| 5s | $0.24 |
| 10s | $0.48 |
