Task: Image-to-Video
Overview
- Method:
POST - Path:
/kling/v1/videos/image2video - Content-Type:
application/json - Tags: Video Models (Video) / Kuaishou Keling AI
Authentication
- Header:
Authorization: Bearer <token>
Request Parameters (partial)
| Parameter | Type | Required | Description |
|---|---|---|---|
| image | string | Yes | Reference image URL/Base64, <=10MB, resolution >=300x300, aspect ratio 1:2.5~2.5:1 |
| prompt | string | No | Positive text prompt, <=2500 characters |
| negative_prompt | string | No | Negative text prompt, <=2500 characters |
| mode | string | No | std/pro, pro costs 3.5x |
| duration | string | No | 5/10, 10 costs 2x |
| model_name | string | No | kling-v1/kling-v1-5/kling-v1-6/... |
| callback_url | string | No | Callback URL |
| camera_control | object | No | Camera control settings, includes type+config |
| static_mask | string | No | Static mask at the same resolution as the image |
| dynamic_masks | array | No | Dynamic mask list |
Example Request
bash
curl -X POST "https://api.gpt.ge/kling/v1/videos/image2video" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxx" \
-d '{
"image":"https://p2.a.kwimgs.com/...",
"prompt":"A young Chinese woman...",
"model_name":"kling-v1-5",
"mode":"std",
"duration":"5"
}'Success Response Example (200)
json
{
"code": 0,
"message": "SUCCEED",
"request_id": "...",
"data": {
"task_id": "...",
"task_status": "submitted",
"created_at": 0,
"updated_at": 0,
"task_result": {"images": [], "videos": null},
"task_status_msg": ""
}
}