Compute similarity between two texts
api.kakerapetit.dev/v1/text/similarity
Compute similarity between two texts. Returns Jaccard, Dice, cosine and overlap scores for two strings. Use to deduplicate documents, match names or titles, and detect near-identical text.
POST
https://api.kakerapetit.dev/v1/text/similarityUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.kakerapetit.dev/v1/text/similarity", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text_a":"The quick brown fox jumps over the lazy dog","text_b":"A quick brown fox jumped over a lazy dog"}),
});
console.log(await res.json());Example input
{
"text_a": "The quick brown fox jumps over the lazy dog",
"text_b": "A quick brown fox jumped over a lazy dog"
}More from KakerapetitProvider status
- api.kakerapetit.dev/v1/calendar/icsGenerate a calendar invite (.ics file) from event details. Returns a valid RFC 5545 iCalendar VEVENT with title, start and end time, timezone, location, and attendees that can be emailed or imported into Google Calendar, Outlook, or Apple Calendar. Use when an agent needs to schedule a meeting or send a calendar invitation.0.002
- api.kakerapetit.dev/v1/check-duplicate-imageCheck if two images are duplicates or near-duplicates. Compares two image URLs with perceptual hashing and returns a distance score and a same-image verdict. Use to deduplicate photos, detect reposted or copied images, and verify whether two files show the same picture.0.005
- api.kakerapetit.dev/v1/compare-product-photoCompare two product photos for visual similarity. Returns a similarity score between two image URLs. Use when an agent needs to match a product listing photo against a catalog image, detect identical product pictures across stores, or spot re-used ecommerce imagery.0.005
- api.kakerapetit.dev/v1/find-near-duplicateFind 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.0.005
- api.kakerapetit.dev/v1/verify-reference-imageVerify that an image matches a reference image. Compares a candidate image URL against a trusted reference and returns whether they show the same content. Use for verifying logos, profile pictures, KYC document photos, or that an uploaded image matches an expected original.0.005
