Analyze an image by public URL with one or more models, such as AI-generated image detection.
GET/check.json
- Takes: Image
- Takes: URL
- Active: contacts the target
- Cost: Operations; the count is returned in request.operations
Sends the image URL and a list of models and returns one result object per model. With models=genai the type object holds ai_generated, a 0 to 1 score, and ai_generators with a score per generator. Sightengine downloads the URL itself, so it must be public. Uploading a file instead is a multipart POST to the same path and is not covered here.
Query parameters
urlPublic http(s) URL of the image to analyze, URL-encoded, no redirects
modelsComma-separated model names, for example genai or nudity-2.1,gore-2.0
api_userYour API user id
Response fields · 8ShowHide
status
success or failure
id
Unique request id
timestamp
Unix timestamp of the request
operations
Operations used by the request
ai_generated
genai model: probability that the image is AI-generated, 0 to 1
ai_generators
genai model: score per generator (for example midjourney, flux, stable_diffusion, other)
id
Id of the analyzed media
uri
The URL or file name analyzed
curl 'https://api.sightengine.com/1.0/check.json?url=https%3A%2F%2Fexample.com%2Fphoto.jpg&models=genai&api_user=YOUR_API_USER&api_secret=YOUR_API_KEY'{
"status": "success",
"request": {
"id": "req_ExampleRequestId",
"timestamp": 1700000000.123,
"operations": 1
},
"type": {
"ai_generated": 0.02,
"ai_generators": {
"midjourney": 0.01,
"flux": 0,
"stable_diffusion": 0.01,
"other": 0
}
},
"media": {
"id": "med_ExampleMediaId",
"uri": "https://example.com/photo.jpg"
}
}