Global - Liveness Detection (0.50 credits)
face_recognition_livenessVerify that a selfie comes from a live person, not a screen or print, before face comparison or search. Submit an image and client OS to receive a liveness decision.
Instructions
Face liveness check. Returns whether the selfie is a live person rather than a photo of a screen or a print. Inputs: image and os (ANDROID, IOS, or DESKTOP). Use it before a compare or a search. Use face_recognition_liveness_score when you need the numeric score. 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"
}
}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. |