Please select all the models you are interested in. The code examples on this page will automatically update to reflect your choice.
Detect raw and partial nudity
Detect violent and inappropriate content
Detect offensive signs and gestures
Detect babies, children and teenagers under 18
Detect text that has been added during post-processing
Detect faces and their positions
Detect and recognize celebrities
Block scammers and fraudulent users
Detect blurry and low quality images, get dominant colors
Detect faces hidden with sun glasses
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://sightengine.com/assets/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://sightengine.com/assets/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://sightengine.com/assets/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://sightengine.com/assets/img/examples/example7.jpg').then(function(result) {
// The API response (result)
}).catch(function(err) {
// Handle 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.
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 API response (result)
}).catch(function(err) {
// Handle 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.
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.