Skip to main content
Version: 2.0.0

Detect Deepfake

note

Detect API is currently in beta. Please contact us if you would like to be added to the beta program.

Submit a media file for deepfake detection.

HTTP Request

POST https://app.resemble.ai/api/v2/detect

Request

ParameterTypeDescription
urlRequiredThe URL of the media file to be analyzed for deepfake detection. The media file should be a valid format (wav, mp3, ogg, m4a, flac, mp4, mov, avi, wmv, jpg, jpeg, png, gif, webp). Provide a valid HTTPS URL pointing to the media file.
callback_urlOptionalA URL to sent the results to when analysis is completed.

Optional Parameters

ParameterTypeDescription
frame_lengthOptionalThe length of the frames in seconds used for analysis. The default value is 2 seconds. You can adjust this value based on the characteristics of your audio data and the desired analysis granularity. The minimum value is 1 and the maximum value is 4.

Callback URL

If you've provided a callback_url when submitted a media file, you will receive a POST request to the callback_url with the following payload after it has been analyzed:

{
"success": true,
"item": {
"uuid": <string>,
"metrics": {
"label": "fake",
"score": ["0.9"]
}
}
}

HTTP Response

{
"success": true,
"item": {
"uuid": <string>,
"metrics": null
}
}