Check an image for signs of AI generation
const url = 'https://api.ringingbytes.com/v1/detect';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"type":"image","url":"example","file":"example","localize":"0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ringingbytes.com/v1/detect \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "type": "image", "url": "example", "file": "example", "localize": "0" }'Send one image: upload it as file (multipart/form-data) or pass a public url (JSON or form). The result is returned when the check is done, usually within a second or two (several seconds with localize). Keep it: nothing is kept once the result is delivered. A check that fails (status: failed, with error.code) is not charged.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Content type: image (the default, and the only type).
Public URL of an image to analyse.
Image upload (multipart/form-data): JPEG, PNG, WebP, GIF, TIFF, BMP or AVIF, up to 25 MB.
object
Content type: image (the default, and the only type).
Public URL of an image to analyse.
Image upload (multipart/form-data): JPEG, PNG, WebP, GIF, TIFF, BMP or AVIF, up to 25 MB.
Responses
Section titled “Responses”OK
object
Detection id, e.g. det_….
Each check that ran, with its own result, in the response to POST /v1/detect only (empty in later reads). edit_localization (only with localize) carries, when a map is produced, the heatmap PNG inline as heatmap_png_base64. Save it if you need it: it is not kept.
object
The detector release that produced the result, e.g. tell-1. A smaller update to the same model is a point release (tell-1.1); the model number changes when results can change noticeably (tell-2). In the response to POST /v1/detect only; null when the check failed and in later reads.
Billing units charged: 4 per image check, 12 with localize; 0 when the check failed.
Example
{ "object": "detection", "type": "image", "status": "queued", "verdict": "likely_ai", "confidence": "low"}