Please select all the concepts you want to hide/remove. The code examples on this page will automatically update to reflect your choice.
Hide explicit and partial nudity
Hide weapons such as guns, rifles and firearms
Hide alcoholic beverages such as beer, wine and cocktails
Hide recreational drugs
Hide medical drugs
Hide offensive signs and gestures
Hide gore, horrific imagery, content with blood
Anonymize and hide all faces
Anonymize and hide faces of children 18
Hide license plates
Hide profanity, swear words, insults, racial slurs
Hide phone numbers visible in the image
Hide email addresses embedded in the image
Hide URLs and links written in images
Hide QR codes in images
curl -X POST 'https://api.sightengine.com/1.0/transform.json' \
-F 'media=@/full/path/to/image.jpg' \
-F 'concepts={models}' \
-F 'api_user={api_user}' \
-F 'api_secret={api_secret}'
# this example uses requests
import requests
import json
params = {
'concepts': '{models}',
'api_user': '{api_user}',
'api_secret': '{api_secret}'
}
files = {'media': open('/full/path/to/image.jpg', 'rb')}
r = requests.post('https://api.sightengine.com/1.0/transform.json', files=files, data=params)
output = json.loads(r.text)
$params = array(
'media' => new CurlFile('/full/path/to/image.jpg'),
'concepts' => '{models}',
'api_user' => '{api_user}',
'api_secret' => '{api_secret}',
);
// this example uses cURL
$ch = curl_init('https://api.sightengine.com/1.0/transform.json');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($ch);
curl_close($ch);
$output = json_decode($response, true);
// this example uses axios and form-data
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
data = new FormData();
data.append('media', fs.createReadStream('/full/path/to/image.jpg'));
data.append('concepts', '{models}');
data.append('api_user', '{api_user}');
data.append('api_secret', '{api_secret}');
axios({
method: 'post',
url:'https://api.sightengine.com/1.0/transform.json',
data: data,
headers: data.getHeaders()
})
.then(function (response) {
// on success: handle response
console.log(response.data);
})
.catch(function (error) {
// handle error
if (error.response) console.log(error.response.data);
else console.log(error.message);
});
Do not forget to replace "/full/path/to/image.jpg" with the actual path to an image you want to run the test on.
Social accounts
Hide mentions of social networks & accounts