Classify an image as human-made or AI-generated, from a URL or base64 data.
POST/api/classifiers/v1/image/classify
- Takes: Image
- Active: contacts the target
With deliveryMethod url, the service fetches the image from the given address. Custom headers prefixed passthrough- are sent on that fetch with the prefix removed. metaData is returned unchanged in the response.
Headers
api-keyYour API key
Request body (JSON) · 3ShowHide
deliveryMethod
url or base64encoded
data
Image URL, or the base64 image data
metaData
Text returned unchanged in the response
Response fields · 11ShowHide
requestId
Request identifier
totalFetchingAndPreprocessingTimeInMs
Time to fetch and prepare the image
totalClassificationTimeInMs
Classification time
status
ok or error
result
Classifier result, for example human
confidenceScore
Confidence score
humanFriendlyDescription
Plain-language summary
knownC2paClaimsFound
Whether C2PA metadata from a known AI tool was found
knownExifClaimsFound
Whether EXIF metadata from a known AI tool was found
imageFormat
Detected image format
metaData
Your metaData value
curl -X POST 'https://api.wasitai.com/live/api/classifiers/v1/image/classify' \
-H 'api-key: YOUR_API_KEY' \
-H 'api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"deliveryMethod":"url","imageToClassify":{"data":"https://example.com/photo.jpg","metaData":"case-42-image-1"}}'{
"requestId": "00000000-0000-0000-0000-000000000000",
"totalFetchingAndPreprocessingTimeInMs": 244,
"totalClassificationTimeInMs": 540,
"classifiedImage": {
"classifyResult": {
"classificationDurationInMs": 540,
"confidenceScore": 99,
"humanFriendlyDescription": "We're quite confident that NO AI was used when producing this image.",
"result": "human"
},
"imageInformation": {
"imageFormat": "jpeg",
"imageHeightInPx": 442,
"imageWidthInPx": 330
},
"metaData": "case-42-image-1",
"metaDataImageAnalysis": {
"knownC2paClaimsFound": "false",
"knownExifClaimsFound": "false"
},
"status": "ok"
}
}