Skip to content

Check an image for signs of AI generation

POST
/v1/detect
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.

object
type

Content type: image (the default, and the only type).

string
Allowed values: image
url

Public URL of an image to analyse.

string
file

Image upload (multipart/form-data): JPEG, PNG, WebP, GIF, TIFF, BMP or AVIF, up to 25 MB.

string
localize

Experimental: also look for edited regions and return a heatmap, inline in this response only. Counts as 3 image checks.

Any of:
boolean

OK

Media typeapplication/json
object
id
required

Detection id, e.g. det_….

string
object
required
Allowed value: detection
type
required
string
Allowed values: image
status
required
string
Allowed values: queued processing completed failed
source
required
string
file_name
required

The uploaded file’s name, in the response to POST /v1/detect only. Null in later reads.

Any of:
string
verdict
required

likely_ai, uncertain or likely_human (shown as “No AI signs found”: not proof that the image is authentic). In the response to POST /v1/detect only; null when the check failed and in later reads.

Any of:
string
Allowed values: likely_ai uncertain likely_human
score
required

0 to 1: how likely the image is AI-generated. In the response to POST /v1/detect only; null in later reads.

Any of:
number
confidence
required
Any of:
string
Allowed values: low medium high
signals
required

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.

Array<object>
object
name
required
string
key
additional properties
detector
required

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.

Any of:
string
model_versions
required

The open-source models inside the detector that ran for this check, each with its pinned revision. In the response to POST /v1/detect only; null in later reads.

Any of:
object
key
additional properties
string
credits
required

Billing units charged: 4 per image check, 12 with localize; 0 when the check failed.

number
processing_ms
required
Any of:
number
error
required

Why a check failed (status failed, nothing charged): download_failed, too_large, unsupported_media, bad_request, inference_unavailable, inference_timeout, interrupted, internal. Later reads keep the code; the message is empty.

Any of:
object
code
required
string
message
required
string
created_at
required
string
completed_at
required
Any of:
string

Example

{
"object": "detection",
"type": "image",
"status": "queued",
"verdict": "likely_ai",
"confidence": "low"
}