An example to pixelate all faces with an age under 18 years.
curl --location 'https://face-pixelate.p.rapidapi.com/facepixelate/api' \
--header 'Content-Type: application/json' \
--header 'X-RapidAPI-Key': 'xxxxxxxx',
--header 'X-RapidAPI-Host': 'face-pixelate.p.rapidapi.com',
--data '{
"imageUrl" : "https://xxxxx.xxx/example.jpg",
"ageCondition": 18
}'
{
"status": "ok",
"imageUrl": "https://xxxxx.xxx/example.jpg",
"ageCondition": 18,
"modeAgeCondition": null,
"detectedFaces": [
{
"left": 0.6709313988685608,
"top": 0.5316768288612366,
"width": 0.08450611680746078,
"height": 0.12799951434135437,
"ageLow": 6,
"ageHigh": 12
},
{
"left": 0.48968037962913513,
"top": 0.620930552482605,
"width": 0.08373869210481644,
"height": 0.12796653807163239,
"ageLow": 6,
"ageHigh": 12
},
{
"left": 0.5578299164772034,
"top": 0.3694211542606354,
"width": 0.010896370746195316,
"height": 0.016763990744948387,
"ageLow": 13,
"ageHigh": 21
}
],
"imageUrlOutput": "https://xxxxx/45fcd5a520f49752c4a1d08a247e774e.jpg"
}