CometAPI POST /kling/v1/videos/image-recognize를 사용해 이미지에서 Kling Image Recognize를 실행하고 비디오 생성 워크플로를 위한 인식 결과를 반환합니다.
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
}
]
}
}
}head_seg, face_seg, cloth_seg, object_seg와 같은 영역이 포함되어 있는지를 나타냅니다head_seg, face_seg, cloth_seg, object_seg에 대해 긍정 플래그와 함께 SUCCEED가 반환되었습니다.Bearer token authentication. Use your CometAPI key.
Optional content type header.
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.
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
}
]
}
}
}