Skip to main content
POST
cURL
使用此端点可在决定使用哪种下游工作流之前,先运行 Kling 的图像识别检查。

返回内容

  • 该路由为同步方式,直接返回识别标记
  • 当前结果会指示图像是否包含诸如 head_segface_segcloth_segobject_seg 等区域
  • 使用这些标记来判断源图像是否适用于数字人、试穿或其他资产驱动型工作流
完整参数参考请见官方 Kling 文档

授权

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

请求头

Content-Type
string

Optional content type header.

请求体

application/json
image
string
必填

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