Invocation
- Service ID
face-comparison- Method
POST- Endpoint
/api/tools/face-comparison- Legacy Endpoint
/api/tools/aliyun-facebody-compare-face- MCP Tool
face_comparison- Price
- USD 0.20
Paid API service
Use this visual AI API when the task needs the visual analysis task described by action 比对两张人脸图片相似度。. Send the schema keys exactly as listed (ImageDataA, ImageDataB, ImageURLA, ImageURLB, QualityScoreThreshold); required parameters: ImageURLA, ImageURLB.
face-comparisonPOST/api/tools/face-comparison/api/tools/aliyun-facebody-compare-faceface_comparisonCall the endpoint without payment to receive HTTP 402 metadata. After payment is complete, retry with X-Payment-Token, an x402 payment signature, or MCP paymentToken.
Create a payment with POST /api/payments using serviceId="face-comparison", then pass the returned token in X-Payment-Token or MCP paymentToken.
{
"exampleRequest": {
"ImageURLA": "https://example.com/image.jpg",
"ImageURLB": "https://example.com/image.jpg"
},
"exampleResponse": {
"code": "200",
"content": "",
"data": {
"Action": "CompareFace",
"Result": "example result from Alibaba Cloud facebody"
},
"message": "success",
"requestId": "example-request-id"
},
"inputSchema": {
"description": "Use Alibaba Cloud RPC parameter names exactly, for example ImageURL, ImageUrl, Url, URL, JobId, or Tasks depending on the service.",
"properties": {
"ImageDataA": {
"description": "Alibaba Cloud RPC parameter ImageDataA.",
"type": "string"
},
"ImageDataB": {
"description": "Alibaba Cloud RPC parameter ImageDataB.",
"type": "string"
},
"ImageURLA": {
"description": "Public http or https image URL for one side of a paired-image request.",
"format": "uri",
"type": "string"
},
"ImageURLB": {
"description": "Public http or https image URL for one side of a paired-image request.",
"format": "uri",
"type": "string"
},
"QualityScoreThreshold": {
"description": "Alibaba Cloud RPC parameter QualityScoreThreshold.",
"type": "number"
}
},
"required": [
"ImageURLA",
"ImageURLB"
],
"type": "object"
},
"outputSchema": {
"properties": {
"code": {
"type": "string"
},
"content": {
"type": "string"
},
"data": {
"type": "object"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"requestId",
"data"
],
"type": "object"
}
}