Skip to content

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)

ParameterTypeRequiredDescription
imagestringYesReference image URL/Base64, <=10MB, resolution >=300x300, aspect ratio 1:2.5~2.5:1
promptstringNoPositive text prompt, <=2500 characters
negative_promptstringNoNegative text prompt, <=2500 characters
modestringNostd/pro, pro costs 3.5x
durationstringNo5/10, 10 costs 2x
model_namestringNokling-v1/kling-v1-5/kling-v1-6/...
callback_urlstringNoCallback URL
camera_controlobjectNoCamera control settings, includes type+config
static_maskstringNoStatic mask at the same resolution as the image
dynamic_masksarrayNoDynamic 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": ""
  }
}