Deepfake
This API allows you to check for a deepfake of a selfie image or photo image. It analyzes the images and returns information about the detected face and deepfake indicators.
Endpoint
POST https://cloud.ooto-ai.com/api/v1.0/deepfake
Request body (multipart/form-data)
photo: (File) The selfie image file.
Authentication
To access the API, you need to include the following headers in your request:
APP-ID: Your application's unique identifier.
APP-KEY: Your application's authentication key.
Example
curl -X POST --location 'https://cloud.ooto-ai.com/api/v1.0/deepfake' \
--header 'APP-ID: put_app_id_here' \
--header 'APP-KEY: put_app_key_here' \
--form 'photo=@"/path/to/photo"'
Replace «app_id», «app_key» with your actual credentials and the path to your selfie image.
Response (HTTP 200)
{
"transactionId": "6cd34e01-d641-4ace-b2c0-3d548df1beae",
"result": {
"deepfake": {
"score": 0.9772506356239319,
"fine": true
},
"box": {
"x": 25,
"y": 275,
"w": 606,
"h": 761
},
"landmarks": [
[
230,
574
],
[
457,
567
],
[
369,
740
],
[
248,
802
],
[
444,
796
]
]
}
}
Error response (HTTP 400)
{
"transactionId": "efb66e50-4c87-493d-b026-543dacdbe314",
"result": {
"status": "error",
"code": 5,
"info": "can not detect face"
}
}
Last updated