{"uid":"cap_tvBHOrmNxk8BfIpeYvtVW","slug":"fastx402-text-similarity-704396ee","name":"FastX402 Text Similarity","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/text-similarity?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string","description":"First string"},"b":{"type":"string","description":"Second string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"similarity":{"type":"number"},"levenshtein":{"type":"integer"},"jaro_winkler":{"type":"number"},"equal_ignoring_case":{"type":"boolean"}}}}}}},"responseSchema":{"type":"json","example":{"similarity":0.5714,"levenshtein":3,"jaro_winkler":0.746,"equal_ignoring_case":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sXkh0kl0RtHE5MVvI8MGT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes string similarity between two text inputs, returning cosine similarity, Levenshtein distance, Jaro-Winkler score, and case-insensitive equality check.","exampleAgentPrompt":"How similar are the strings 'Saturday' and 'Saterday'? Give me the similarity score, Levenshtein distance, and Jaro-Winkler score.","exampleUseCases":[{"title":"Fuzzy deduplication of product names","prompt":"I have two product names — 'Apple iPhone 14 Pro' and 'Apple iPhone14Pro' — can you check how similar they are and tell me the Levenshtein distance and overall similarity score?"},{"title":"Spell-check candidate evaluation","prompt":"A user typed 'recieve' and my autocorrect suggested 'receive' — how similar are those two strings? I want the Jaro-Winkler score and edit distance to decide if it's a good correction."},{"title":"Entity resolution for customer records","prompt":"I have two customer name entries: 'Jonathan P. Smith' and 'Jonathon P. Smith' — can you compare them for similarity and tell me if they match ignoring case?"}],"resultDescription":"A JSON object containing four fields: 'similarity' (a float between 0 and 1 representing overall string similarity), 'levenshtein' (an integer representing the minimum edit distance), 'jaro_winkler' (a float between 0 and 1 from the Jaro-Winkler algorithm), and 'equal_ignoring_case' (a boolean indicating whether the strings are identical when case is ignored).","failureModes":["Missing required query parameters 'a' or 'b' results in a 400 error","Payment not included or invalid USDC payment on Base/Solana results in a 402 error","Very long strings may exceed processing limits","Non-string inputs (e.g. numbers passed as query params) may be coerced or rejected"],"whenToPreferThis":"Choose this endpoint when you need lightweight, multi-metric string comparison without setting up an account or API key, especially in agent pipelines that need fuzzy matching, deduplication, or spell-check validation. It is ideal for quick one-off comparisons at $0.001 per call via x402 micropayments, making it cost-effective for high-volume per-record processing where a full NLP embedding service would be overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:47:36.322Z","isFirstParty":false,"canonicalSlug":"fastx402-text-similarity-704396ee"}