{"uid":"cap_jQ76dslHIaf3dowrtglrT","slug":"near-duplicate-image-finder-01ae14d2","name":"Near-Duplicate Image Finder","description":"Find near-duplicate images. Computes perceptual hash distance between two image URLs to detect crops, resizes, re-compressions, and slightly edited copies of the same photo. Use for content moderation, copyright checks, and cleaning image datasets.","url":"https://api.kakerapetit.dev/v1/find-near-duplicate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image_url_a":{"type":"string","format":"uri","description":"HTTPS URL of the first image (jpeg/png/webp/gif, max 10MB)."},"image_url_b":{"type":"string","format":"uri","description":"HTTPS URL of the second image (jpeg/png/webp/gif, max 10MB)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7idvwKlXdZCaJikILQ4iL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes perceptual hash distance between two image URLs to detect crops, resizes, re-compressions, and slightly edited copies of the same photo","exampleAgentPrompt":"Can you check if these two images are near-duplicates of each other — https://example.com/photo-original.jpg and https://example.com/photo-resized.jpg? I want to know if they're basically the same photo just cropped or re-compressed.","exampleUseCases":[{"title":"Copyright infringement detection for UGC","prompt":"Someone uploaded this image to our platform — https://cdn.mysite.com/uploads/user123.jpg — can you check if it's a near-duplicate of our protected asset at https://assets.mysite.com/originals/protected-photo.jpg? I need to know if it's just a resized or re-compressed copy."},{"title":"Image dataset deduplication pipeline","prompt":"I'm cleaning a training dataset and I suspect these two images are duplicates: https://dataset.storage/img_0042.png and https://dataset.storage/img_0187.png. Can you compute their perceptual hash distance and tell me if I should remove one?"},{"title":"Content moderation near-duplicate check","prompt":"A flagged image just came in — https://modqueue.example.com/flagged/abc.jpg — and I want to know if it matches a previously banned image at https://modqueue.example.com/banned/xyz.jpg, even if it's been slightly cropped or re-saved at lower quality."}],"resultDescription":"Returns a perceptual hash distance score between the two input images, indicating how visually similar they are, along with a near-duplicate determination — whether the images are considered the same photo despite minor transformations like cropping, resizing, re-compression, or light editing.","failureModes":["Image URL unreachable or returns non-200 — endpoint cannot fetch the image","Image exceeds 10MB file size limit — request rejected","Unsupported image format (not jpeg/png/webp/gif) — parsing error","One or both URLs missing from request body — validation error","Image URL serves non-image content — hash computation fails","Network timeout fetching remote image — request may fail or time out"],"whenToPreferThis":"Choose this endpoint when you need to detect near-duplicates rather than exact byte-for-byte matches — it handles crops, resizes, re-compressions, and light edits that would fool a simple hash or checksum. Prefer it over exact-match comparisons for content moderation, copyright enforcement, and dataset deduplication. It is distinct from a general visual similarity scorer in that it specifically targets perceptual hashing for duplicate detection rather than semantic or stylistic similarity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:02.454Z","isFirstParty":false}