Get started with Image Transforms

Image Moderation · Video Moderation · Image Transforms

Please select all the concepts you want to hide/remove. The code examples on this page will automatically update to reflect your choice.

Nudity

Hide explicit and partial nudity

Weapons

Hide weapons such as guns, rifles and firearms

Alcohol

Hide alcoholic beverages such as beer, wine and cocktails

Recreational drugs

Hide recreational drugs

Medical drugs

Hide medical drugs

Offensive

Hide offensive signs and gestures

Graphic Violence & Gore

Hide gore, horrific imagery, content with blood

Social accounts

Hide mentions of social networks & accounts

All faces

Anonymize and hide all faces

Faces of Minors

Anonymize and hide faces of children 18

License Plates

Hide license plates

Profanity

Hide profanity, swear words, insults, racial slurs

Phone numbers

Hide phone numbers visible in the image

Emails

Hide email addresses embedded in the image

QR codes

Hide QR codes in images

Moderate through direct upload


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.

Get your own API keys now!

CREATE FREE ACCOUNT