{"uid":"cap_8H3OpB930ZlHFBIfIOAEy","slug":"tanod-mlpeek-text-similarity-scoring-fab46715","name":"Tanod mlpeek – Text Similarity Scoring","description":"One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.","url":"https://tanod.dev/v1/similarity?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"default":null,"description":"First text of a single pair (at most 4,000 characters)."},"b":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"default":null,"description":"Second text of a single pair."},"model":{"enum":["small-en","multilingual"],"type":"string","default":"small-en","description":"small-en (English) or multilingual."},"pairs":{"anyOf":[{"type":"array","items":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string","maxLength":4000,"minLength":1},"b":{"type":"string","maxLength":4000,"minLength":1}},"additionalProperties":false},"maxItems":50,"minItems":1},{"type":"null"}],"default":null,"description":"Alternative to a / b: 1-50 {a, b} pairs. Priced per pair, minimum USD 0.001 per call."}}},"responseSchema":{"type":"json","example":{"model":{"id":"bge-small-en-v1.5","alias":"small-en","source":"BAAI/bge-small-en-v1.5","license":"MIT","revision":"5c38ec7c405ec4b44b94cc5a9bb96e735b38267a"},"usage":{"pairs":1,"tokens":22,"truncated":0},"metric":"cosine","results":[{"index":0,"tokens":[9,13],"truncated":false,"similarity":0.913619}],"similarity":0.913619,"max_tokens_per_text":512}},"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_faoSHFoNY4gUsjIxUkVdz","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 cosine similarity scores between pairs of text strings using embedding models (English or multilingual), supporting up to 50 pairs per call.","exampleAgentPrompt":"Can you score how semantically similar these two sentences are — 'The cat sat on the mat' and 'A feline rested on the rug' — using the small-en model?","exampleUseCases":[{"title":"Duplicate FAQ detection","prompt":"I have two support FAQ entries — 'How do I reset my password?' and 'What are the steps to change my login credentials?' — can you check how semantically similar they are so I can decide if one is redundant?"},{"title":"Multilingual content matching","prompt":"Tell me how similar these two texts are using the multilingual model: 'Bonjour, comment puis-je vous aider?' and 'Hello, how can I help you?' — I want a cosine similarity score."},{"title":"Batch candidate ranking","prompt":"I have a job description and 5 candidate summaries — can you score all 5 against the job description for semantic similarity so I can rank the best matches? Use the small-en model."}],"resultDescription":"Returns a JSON object with the cosine similarity score (0–1) for each text pair, per-pair token counts, truncation flags, model metadata (id, alias, source, license), and aggregate usage stats (total pairs, total tokens, truncated count). For a single pair, also returns a top-level `similarity` field for convenience.","failureModes":["Text exceeds 4,000 character limit per string — request rejected with validation error","More than 50 pairs submitted — request rejected","Both `a`/`b` and `pairs` omitted — no input to process","Invalid model enum value — returns validation error","Payment of 0.001 USDC not attached — 402 Payment Required response","Text truncated silently at 512 tokens per segment — similarity may be lower than expected for long inputs"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call cosine similarity score without managing your own embedding infrastructure. It is especially useful for agents doing relevance ranking, duplicate detection, or semantic deduplication at low volume. The multilingual model option makes it suitable for cross-language comparisons. Prefer it over full vector database lookups when you just need a point similarity score for 1–50 pairs on demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:40:45.178Z","isFirstParty":false,"canonicalSlug":"tanod-mlpeek-text-similarity-scoring-fab46715"}