Global - Liveness Score (OpenCV) (0.50 credits)
face_recognition_liveness_scoreCalculate a numeric face liveness score and pass/fail result for a selfie using the image and client OS, so later identity verification steps can assess liveness.
Instructions
Face liveness score. Returns a numeric liveness score for the selfie plus the pass or fail result. Inputs: image and os (ANDROID, IOS, or DESKTOP). Use it when a later step needs the score. Use face_recognition_liveness for a yes-or-no live check. Costs 0.50 credits per successful call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image": "<image>",
"os": "<os>"
},
"name": "face_recognition_liveness_score"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | Yes | Client operating system. Allowed values: ANDROID, IOS, DESKTOP. | |
| image | Yes | Face or document photo as a base64-encoded JPEG/PNG string (with or without a data:image/...;base64, prefix) or a public https:// image URL. |