메인 콘텐츠로 건너뛰기
POST
/
kling
/
v1
/
videos
/
image-recognize
Run Kling image recognition
curl --request POST \
  --url https://api.cometapi.com/kling/v1/videos/image-recognize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image": "https://cc.tvbs.com.tw/portal/images/2018/anchor21.jpg"
}
'
{
  "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
        }
      ]
    }
  }
}
이 엔드포인트를 사용하면 어떤 다운스트림 워크플로를 사용할지 결정하기 전에 Kling의 이미지 인식 검사를 실행할 수 있습니다.

반환 내용

  • 이 경로는 동기식으로 동작하며 인식 플래그를 직접 반환합니다
  • 현재 결과는 이미지에 head_seg, face_seg, cloth_seg, object_seg와 같은 영역이 포함되어 있는지를 나타냅니다
  • 이 플래그를 사용해 소스 이미지가 아바타, 가상 착용(try-on) 또는 기타 에셋 기반 워크플로에 적합한지 판단할 수 있습니다
2026-03-13 기준 실제 검증에서 head_seg, face_seg, cloth_seg, object_seg에 대해 긍정 플래그와 함께 SUCCEED가 반환되었습니다.
전체 파라미터 참조는 공식 Kling 문서를 확인하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

헤더

Content-Type
string

Optional content type header.

본문

application/json
image
string
기본값:https://cc.tvbs.com.tw/portal/images/2018/anchor21.jpg
필수

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.

응답

200 - application/json

Recognition result.

code
integer
필수
message
string
필수
data
object
필수
request_id
string