← Blog · DEEF.AI · 27 June 2026

How to add deepfake detection to your KYC flow

Document and liveness checks were designed before generative AI. Today, AI-generated selfies and synthetic ID images can slip through. Adding an AI-image detection step to onboarding catches likely-synthetic media before an account opens.

Where it fits in onboarding

  1. User uploads ID document + selfie.
  2. Your existing OCR / liveness / face-match runs.
  3. New step: send the ID image and selfie to an AI-image detector; get an AI-probability score per image.
  4. Route by risk: low → auto-approve; elevated → manual review or step-up verification.

Example: one API call

DEEF.AI exposes a simple endpoint authenticated by a license key (pay-per-use credits). Send the raw image bytes:

curl -X POST https://api.deef.ai/v1/detect \
  -H "Authorization: Bearer $DEEF_KEY" \
  --data-binary @selfie.jpg
# → {"verdict":"ai_generated","risk":0.94,"remaining":299}

Read risk (0–1) and set a threshold that matches your risk appetite. The full spec is at /openapi.json; the API catalog is at /.well-known/api-catalog.

Get API credits → Pay-per-use from $1, no subscription, no procurement. Test free in-browser first, then drop the API into your onboarding in an afternoon.

Design tips

FAQ

Why does KYC need AI-image detection?

Synthetic IDs and AI selfies can defeat pre-genAI checks; detection flags them before onboarding completes.

How hard is integration?

One POST per image, authenticated with a license key. Read the risk score and route accordingly.

DEEF.AI provides screening-grade decision support. No detector is 100% accurate; use scores as one signal in your KYC risk model.