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

# Deepfake Detection API

> Detect whether a face in a real photo has been swapped or manipulated (face-swap deepfakes). For fully AI-generated images, use AI Image Detection instead.

**Deepfake Detection API**

Detect whether a face in a real photo has been swapped or manipulated (face-swap deepfakes). For fully AI-generated images, use AI Image Detection instead.

## Endpoint

`POST /v3/universal-ai` (sync)

Model string pattern: `image/deepfake_detection/{provider}[/{model}]`

## Input

| Field | Type | Required | Description |
| - | - | - | - |
| file | file\_input | Yes | Image file ID from /v3/upload or direct file URL |

## Output

| Field | Type | Required | Description |
| - | - | - | - |
| deepfake\_score | float | Yes | |
| prediction | enum | Yes | |

## Available Providers

| Provider | Model String | Price |
| - | - | - |
| resemble | `image/deepfake_detection/resemble` | \$0.04 per image |
| sightengine | `image/deepfake_detection/sightengine` | \$0.0145 per image |

## Quick Start

```python Python theme={null}
import requests

url = "https://api.edenai.run/v3/universal-ai"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}

payload = {
    "model": "image/deepfake_detection/resemble",
    "input": {
        "file": "YOUR_FILE_UUID_OR_URL"
    }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
```

```bash cURL theme={null}
curl -X POST https://api.edenai.run/v3/universal-ai \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "image/deepfake_detection/resemble",
    "input": {"file": "YOUR_FILE_UUID_OR_URL"}
  }'
```


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