Deepfake detection API for KYC and video KYC
AI-generated and face-swapped selfies now get through onboarding. We score each selfie for signs of generation and match it to the ID photo. One API call returns pass, review or flag with the evidence.
The selfie attacks liveness misses
A flag needs independent signals to agree. One signal alone sends the selfie to review.
Face-swapped selfies
One person's face placed onto someone else's photo or video. This is the most common way past a liveness step.
AI-generated faces
Faces made by image models, with no real person behind the account.
Selfie and ID mismatch
We match the live selfie to the photo on the ID. This catches a borrowed or stolen document.
Injected camera feeds
With the capture SDK, device signals reveal a virtual camera, emulator or screen feed and send the check to review.
Send a selfie, get a decision with evidence
Send the selfie and ID to POST /v1/verify. You get a risk score, a decision, the evidence and the score from each signal that ran. Uncertain cases go to review.
Request
curl https://truesecurix.com/v1/verify \ -H "X-API-Key: $TRUESECURIX_API_KEY" \ -F "selfie=@selfie.jpg" \ -F "document=@aadhaar.jpg" \ -F "reference=onboard-48211"
Part of the response
{
"decision": "review",
"risk_score": ...,
"selfie": { "synthetic_score": ..., "verdict": ..., "is_deepfake": ... },
"face_match": { "match_probability": ..., "is_match": ... },
"consensus_families": 1,
"evidence": [ ... ]
}
Common questions
Does the deepfake detection API work with video KYC?
Yes. It scores selfies and captured frames for AI generation and face swaps. It also accepts a short selfie clip and checks the frames against each other. It sits on top of your liveness or video KYC flow and does not replace it.
How do we test it on our own selfies?
Send your own labelled genuine and deepfake selfies through the API and compare each answer with your labels. Selfies the model is unsure about go to review.
Will it reject real customers with a bad photo?
No. A flag needs independent signals to agree. A low-quality selfie goes to review.
Can it check shop photos and documents for AI generation too?
Yes, with a separate endpoint. Image checks tell you whether any image a customer sends is real, AI generated, AI edited or digitally edited.
Catch the deepfakes your liveness misses
100 checks free on sign-up, no card needed. Try it on selfies from your own onboarding.