xtract.bot
POST /api/image-dedupe-check

Check if two images are duplicates or near-duplicates. Compares perceptual hashes; tolerant of small differences (compression artefacts, slight resizing, watermarks).

Compares two images and reports whether they are duplicates, near-duplicates, or distinct. Uses a perceptual hash (resilient to small pixel differences like compression artefacts, slight resizing, or simple watermarks). Returns a Hamming distance — 0 means identical, ~5 means near-identical, 10+ means visibly different. Useful for de-duping image libraries, detecting reposts, and finding visually-similar items in a catalogue.

Inputs

NameTypeDefaultDescription
imageA*fileFirst image bytes.
imageB*fileSecond image bytes.
thresholdnumber (0…64)5Distance below this counts as duplicate.

Response

Modes: json. Cache: yes (24h TTL).