Deepfake Detection API and MCP

Integrate DFDetect’s image scan API or MCP tool to get per-face manipulation scores from JPEG and PNG images.

Scan an image with the API

Send a JPEG or PNG up to 2 MiB and 20 million pixels in the multipart scan_image field. Use only images the user has authorized you to share with DFDetect.

curl --fail-with-body \
  -F 'scan_image=@photo.jpg;type=image/jpeg' \
  'https://api.deepfake-detect.com/v1/upload?mode=scan'

Always include mode=scan. This mode processes images in memory and saves no originals, crops, or annotated images. Read the privacy policy.

OpenAPI specification

Read the scan result

A successful scan returns the model_version, image dimensions, a face count, and one score and crop box per detected face. Store the model version alongside scores you compare over time. A zero-face scan returns no_faces_detected with an empty list. Scores are model signals. Use independent evidence to verify a photo’s origin or a person’s identity.

One detected face
{
  "status": "faces_detected",
  "model_version": "efficientnet-b7-8a205583d43f",
  "face_count": 1,
  "image": {
    "width": 640,
    "height": 480
  },
  "faces": [
    {
      "id": 1,
      "box": {
        "left": 24,
        "top": 32,
        "right": 216,
        "bottom": 252
      },
      "real_face_score": 0.68,
      "interpretation": "inconclusive"
    }
  ]
}
Two detected faces
{
  "status": "faces_detected",
  "model_version": "efficientnet-b7-8a205583d43f",
  "face_count": 2,
  "image": {
    "width": 640,
    "height": 480
  },
  "faces": [
    {
      "id": 1,
      "box": {
        "left": 60,
        "top": 38,
        "right": 240,
        "bottom": 242
      },
      "real_face_score": 0.14,
      "interpretation": "leans_manipulated"
    },
    {
      "id": 2,
      "box": {
        "left": 382,
        "top": 48,
        "right": 566,
        "bottom": 248
      },
      "real_face_score": 0.91,
      "interpretation": "leans_real"
    }
  ]
}
No detected faces
{
  "status": "no_faces_detected",
  "model_version": "efficientnet-b7-8a205583d43f",
  "face_count": 0,
  "image": {
    "width": 640,
    "height": 480
  },
  "faces": []
}

Migrate from the legacy upload API

To switch to private scans, add mode=scan, send the image in scan_image, and render the original locally using the returned crop boxes. If you still use the legacy route and its file field, download any needed result images within 15 minutes. The returned links are signed and can be used by anyone who has them until they expire.

Connect an MCP client

Add this URL to a client that supports stateless Streamable HTTP.

https://api.deepfake-detect.com/v1/upload?mode=mcp

The tool analyze_image_for_face_manipulation takes standard base64 image bytes as image_base64. Confirm the user wants to send the image before invoking it. Tool calls return the same scan results as the API.

Ask about API access for a team

Tell us your use case, estimated monthly scan volume, and any batch or support needs. Keep images and account details out of the public issue.

Ask about an API pilot on GitHub