Get started with Image Moderation

or Video Moderation

Please select all the models you are interested in. The code examples on this page will automatically update to reflect your choice.

Nudity detection

Detect raw and partial nudity

Weapons, alcohol & drugs

Detect violent and inappropriate content

Offensive

Detect offensive signs and gestures

Minors

Detect babies, children and teenagers under 18

Artificial Text and Watermarks

Detect text that has been added during post-processing

Face Detection

Detect faces and their positions

Celebrities

Detect and recognize celebrities

Scammers

Block scammers and fraudulent users

Image quality & colors

Detect blurry and low quality images, get dominant colors

Sun glasses

Detect faces hidden with sun glasses

Moderate by submitting an Image URL

    
    
curl -X GET -G 'https://api.sightengine.com/1.0/check.json' \
     -d 'models={model}' \
     -d 'api_user={api_user}&api_secret={api_secret}' \
     -d 'url=https://d3m9459r9kwism.cloudfront.net/img/examples/example7.jpg'
    
  
    
    
# if you haven't already, install the SDK with "pip install sightengine"
from sightengine.client import SightengineClient
client = SightengineClient('{api_user}', '{api_secret}')
output = client.check('{model}').set_url('https://d3m9459r9kwism.cloudfront.net/img/examples/example7.jpg')
    
  
    
    
// if you haven't already, install the SDK with "composer require sightengine/client-php"
use \Sightengine\SightengineClient;
$client = new SightengineClient('{api_user}', '{api_secret}');
$output = $client->check(['{model}'])->set_url('https://d3m9459r9kwism.cloudfront.net/img/examples/example7.jpg');
    
  
    
    
// if you haven't already, install the SDK with "npm install sightengine --save"
var sightengine = require('sightengine')('{api_user}', '{api_secret}');
sightengine.check(['{model}']).set_url('https://d3m9459r9kwism.cloudfront.net/img/examples/example7.jpg').then(function(result) {
  // The result of the API
}).catch(function(err) {
  // Error
});
    
  

Remember that when you submit an image URL, the image must be publicly accessible so that Sightengine's servers can download and analyze it. If this is not the case, consider using the direct upload method.

Moderate through direct upload

    
    
curl -X POST 'https://api.sightengine.com/1.0/check.json' \
     -F 'api_user={api_user}' \
     -F 'api_secret={api_secret}' \
     -F 'media=@/full/path/to/image.jpg' \
     -F 'models={model}'
    
  
    
    
# if you haven't already, install the SDK with "pip install sightengine"
from sightengine.client import SightengineClient
client = SightengineClient('{api_user}', '{api_secret}')
output = client.check('{model}').set_file('/full/path/to/image.jpg')
    
  
    
    
// if you haven't already, install the SDK with "composer require sightengine/client-php"
use \Sightengine\SightengineClient;
$client = new SightengineClient('{api_user}', '{api_secret}');
$output = $client->check(['{model}'])->set_file('/full/path/to/image.jpg');
    
  
    
    
// if you haven't already, install the SDK with "npm install sightengine --save"
var sightengine = require('sightengine')('{api_user}', '{api_secret}');
sightengine.check(['{model}']).set_file('/full/path/to/image.jpg').then(function(result) {
  // The result of the API
}).catch(function(err) {
  // Error
});
  

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

Was this helpful?

We're always looking for advice to help improve our documentation! Please let us know what's working (or what's not!) — we're constantly iterating thanks to the feedback we receive.

Send your suggestions!