Face Compare is a powerful API that allows you to compare two facial images and evaluate their resemblance. Whether for identity verification, fraud detection, or other applications, Face Compare provides accurate similarity scores to help you make informed decisions.

Key Features

  • Dual Image Comparison: Compare two facial images side by side
  • Similarity Scoring: Get precise similarity scores between faces
  • High Accuracy: Advanced AI algorithms for reliable comparisons
  • Fast Processing: Quick analysis and response times
  • Multiple Formats: Support for various image formats
  • Privacy Focused: No storage of facial data, only comparison results
  • Async Support: Optional callback URL for asynchronous processing

Use Cases

  • Identity Verification: Verify if two photos belong to the same person
  • Fraud Detection: Detect identity theft and fake documents
  • Access Control: Verify identity for secure entry systems
  • Customer Onboarding: Ensure consistent identity across registrations
  • Document Verification: Compare ID photos with live captures
  • Biometric Authentication: Face-based login and authentication systems

How It Works

  1. Upload Images: Submit two facial images for comparison
  2. Analysis: AI algorithms analyze facial features and characteristics
  3. Comparison: Compare facial landmarks, features, and patterns
  4. Scoring: Generate similarity scores based on multiple factors
  5. Results: Receive detailed comparison results and confidence scores

API Endpoints

Face Compare API

  • Endpoint: POST /compare
  • Purpose: Compare two facial images for similarity
  • Input: Two base64 encoded images (originFace, targetFace)
  • Output: Similarity score and detailed analysis

Callback Response

  • Purpose: Asynchronous processing results
  • Format: JSON response with detailed comparison data
  • Features: Transaction tracking and result validation

Similarity Scoring

The API provides similarity scores that indicate how closely two faces match:
  • High Score (80-100%): Very likely the same person
  • Medium Score (60-79%): Possibly the same person
  • Low Score (0-59%): Likely different people

Processing Modes

Synchronous Processing

  • Immediate response with comparison results
  • Best for real-time applications
  • Direct API response

Asynchronous Processing

  • Use callback URL for delayed results
  • Better for batch processing
  • Detailed callback response format

Getting Started

To start using Face Compare, you’ll need to:
  1. Set up your API credentials
  2. Prepare two facial images for comparison
  3. Submit your first comparison request
  4. Interpret the similarity results
Ready to get started? Check out our Face Compare API or explore the Callback Response Examples.