LogoAI ForensiX

Liveliness Detection

Determines whether a face is live or spoofed using AI-ForensiX anti-spoofing engine.

The Liveliness Detection API evaluates facial cues from a given frame to determine whether the user is live or spoofed.
It is used for preventing spoofing attacks such as printed photos, screen replays, or deepfake overlays.


🛠️ Endpoint

POST /v1/liveliness/detect

Request Body (JSON)

FieldTypeRequiredDescription
lastFramestringYesBase64-encoded frame of the user's face.
isLivebooleanYesIndicates whether the model predicts the face as live.
confidencenumberYesConfidence score for liveliness classification.
labelstringYesPrediction label - "REAL" or "FAKE".

Example Request (cURL)

curl -X POST "https://forensiz.ai/detect" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "lastFrame": "<base64_string>",
    "isLive": true,
    "confidence": 0.98,
    "label": "REAL"
  }'

Response Status Codes

Status CodeMeaning
200 OKLiveliness assessment successful.
400 Bad RequestInvalid JSON or missing fields.
401 UnauthorizedMissing or invalid API key.
403 ForbiddenAccess denied.
500 Internal Server ErrorUnexpected server error.

On this page