> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spoofsense.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Face liveness and deepfake detection, behind one API

SpoofSense tells you whether a face in an image is a **real, live person** — not a printed photo, a screen replay, a mask, or an AI-generated deepfake. You send an image (or let our SDKs capture one), we return a decision.

## Two products, three ways to call them

> [card] Face Liveness Detection
>
> Passive liveness from a single frame — catches presentation attacks such as printed photos, screen replays, and masks. No blink/turn challenges.

> [card] Deepfake Detection
>
> Two detectors in one call: one checks whether the whole image is AI-generated, the other whether the face in it was swapped, edited, or re-animated. Works on any image, face or not. [How the signals work](https://docs.spoofsense.ai/guides/deepfake-signals.md).

> [card] [Detection API](https://docs.spoofsense.ai/quickstart.md)
>
> You already have the image? `POST` it to `/v1/liveness_detection`, `/v1/deepfake_detection`, or `/v1/unified_detection` and get a decision back in one round trip.

> [card] [Verification sessions + SDKs](https://docs.spoofsense.ai/verification-sessions/overview.md)
>
> Verifying a live user? Our Web and Android SDKs capture the selfie from the camera, protect against injection attacks, and keep scores away from the untrusted client.

> [card] [Hosted verify page](https://docs.spoofsense.ai/verification-sessions/hosted.md)
>
> Zero frontend code: redirect the user to our hosted capture page, or embed it in an iframe.

## How a decision works

Every check returns a calibrated `genuine_score` between 0 and 1 and applies:

```text theme={null}
decision = genuine_score > threshold      (default threshold: 0.5)
```

The score is calibrated so the decision boundary sits at 0.5 across model updates — a threshold you tune today keeps meaning the same thing after we retrain. See [Thresholds & scores](https://docs.spoofsense.ai/guides/thresholds.md).

## Base URL

```text theme={null}
https://api.spoofsense.ai
```

All endpoints are served over HTTPS. Errors always use one envelope: `{"error": {"code", "message"}}` — see [Errors](https://docs.spoofsense.ai/guides/errors.md).

## Get started

1. [Create an account](https://app.spoofsense.ai) — new organizations start with free trial credits.
2. Create an API key in the console (**Dashboard → API keys**).
3. Make your [first call in five minutes](https://docs.spoofsense.ai/quickstart.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.