v1

latestOpenAPI 3.1.02026-07-26793302.3 KB

Run Kling image recognition

Submit one image and receive recognition flags such as head, face, cloth, or object segmentation presence.

post/kling/v1/videos/image-recognize

Headers

Content-Typestring

Optional content type header.

Request body

imagestring required

Image to analyze. Accepts an image URL or raw Base64 string (no data: prefix). Supported formats: JPG, JPEG, PNG. Max 10 MB, minimum 300 px per side, aspect ratio between 1:2.5 and 2.5:1.

Response

Recognition result.

codeinteger required
messagestring required
request_idstring

Example response

{
  "code": 0,
  "message": "SUCCEED",
  "data": {
    "task_result": {
      "images": [
        {
          "type": "head_seg",
          "is_contain": true
        },
        {
          "type": "face_seg",
          "is_contain": true
        },
        {
          "type": "cloth_seg",
          "is_contain": true
        },
        {
          "type": "object_seg",
          "is_contain": true
        }
      ]
    }
  }
}