MxFace MxFace

Documentation

MxFace User Guide

Everything you need to integrate MxFace's face recognition, biometric, and computer vision APIs into your application — from your first API call to production best practices.

ON THIS PAGE

Resources & Documentation

Use the following resources to learn how to use and implement face APIs in your software and application. In this user guide, you will find detailed descriptions and examples that describe implementation methods that you can use for enabling your application with face recognition technology with respect to various functionality like face detect, face compare, face attribute and face landmarks.

Face detection technology mapping facial features

Face Detection

Face detection is a technique for detecting human faces in photographs and mapping them onto a high-precision rectangular grid. It may be used to lock and unlock the screen and apps, as well as a variety of other scenarios that need facial recognition. The location of specific places on the human face in relation to major facial characteristics can be used to enhance their beauty. This API can be used in a variety of ways such as face unlock, face clustering, and facial beautification.

Download

Face Comparing

Facial comparison detects and extracts essential facial traits, compares human faces with high precision, generates confidence scores, and evaluates if the same person appears in many photos. Face comparison technology that is cutting-edge categorises and handles photographs smartly. Face recognition is accurate thanks to an advanced picture recognition system, which also enables apps to provide an enhanced UX to user.

Download
Comparing two facial photographs for identity verification
Portrait showing facial attributes such as age and expression

Face Attributes

Face attributes are biological traits that describe face characteristics with a high level of intrinsic stability and individual variation, making them valuable for identifying people. Gender, skin tone, age, and expression are all important factors.

Download

Face Landmarks

The important features on a human face in the input image are detected, and the coordinates of the key points (landmark points) that represent the facial contours are returned, providing input for future algorithms for beautification, facial modelling, and facial expression recognition.

Download
Facial landmark points mapped across a face
Iris scanner device used for iris recognition

Iris Recognition

An iris recognition API taps into cutting-edge imaging technology to spot the unique patterns in each person's iris, making identity checks both secure and reliable. It's super useful for security checks, border control, and managing who gets in and where, ensuring swift and accurate identification. This way, only the right folks get access to restricted spaces or sensitive areas.

Download

Fingerprint API

A fingerprint API offers mechanisms that allow you to add biometric authentication to your apps. It checks and matches fingerprints to confirm identities securely, helping with access control, tracking attendance, and managing financial transactions. This API boosts security by making sure that only authorized people can access sensitive data or areas.

Download
Fingerprint scanning for biometric authentication
Fingerprint scanning for biometric authentication

Human Detection

A people detection API utilizes machine learning algorithms to identify and locate humans in images or video streams. It can distinguish individuals in various poses and environments, providing real-time analytics for security, retail, and smart city applications. This technology supports enhanced surveillance, customer behavior analysis, and safety monitoring.

Download

Getting Started

Follow these steps to go from sign-up to your first successful API response in just a few minutes.

1

Create your MxFace account

Sign up for a free account to access the developer dashboard, API documentation, and sandbox environment.

2

Generate your API key

From your dashboard, navigate to API Keys and generate a new key. Keep this key private — it authenticates every request you make.

3

Choose your integration path

Use our REST APIs directly, or install one of our platform SDKs (Face or Iris & Fingerprint) for faster integration.

4

Make a test call

Use the sandbox endpoint with a sample image to confirm your setup is working before moving to production traffic.

Authentication

Every request to a MxFace API must include your API key in the request header. Requests without a valid key will be rejected with a 401 Unauthorized response.

cURL
curl -X POST https://api.mxface.ai/v2/face/detect \
  -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://example.com/photo.jpg" }'

Making Your First API Call

The Face Detection endpoint is the simplest place to start. Send an image URL or base64-encoded image, and the API returns bounding boxes for every face found.

JavaScript
const response = await fetch("https://api.mxface.ai/v2/face/detect", {
  method: "POST",
  headers: {
    "Ocp-Apim-Subscription-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ url: imageUrl })
});

const data = await response.json();
console.log(data.Faces);

Understanding Responses

All MxFace APIs return structured JSON. A typical Face Detection response includes an array of detected faces, each with a quality score and bounding box coordinates.

Sample response
{
  "Faces": [
    {
      "Quality": 99.0,
      "FaceRectangle": {
        "top": 175,
        "left": 128,
        "width": 226,
        "height": 189
      }
    }
  ]
}

Using the SDKs

Prefer not to call the REST API directly? Our SDKs handle image capture, quality checks, and network calls for you across Windows and Android.

Face Recognition SDK

1:1 face verification with live capture and anti-spoofing built in.

IRIS & Fingerprint SDK

Unified biometric capture and matching for iris and fingerprint sensors.

View SDK Documentation

Error Handling

MxFace APIs use standard HTTP status codes. Always check the status code before parsing the response body.

CodeMeaning
200Request succeeded — response body contains the result.
400Invalid request — usually a malformed or unsupported image.
401Missing or invalid API key.
429Rate limit exceeded — reduce request frequency or upgrade your plan.
500Internal server error — retry with exponential backoff, or contact support if it persists.

Best Practices

A few habits that meaningfully improve accuracy and reliability in production.

Validate image quality client-side

Check resolution and file size before upload to avoid unnecessary API calls and faster feedback for users.

Rotate API keys periodically

Treat API keys like passwords — rotate them regularly and never expose them in client-side code.

Handle rate limits gracefully

Implement retry logic with backoff for 429 responses instead of failing immediately.

Log request IDs for support

Every response includes a request ID — log it so our support team can quickly investigate any issue.

Ready to start building?

Create your free account and get your API key in minutes.

MxFace, powered by Mantra Softech ↗

© 2026 MxFace. All rights reserved.