{"uid":"cap_OHAl8VCltqzMjx9GG1OKz","slug":"moneytools-text-diff-6c36e8cf","name":"MoneyTools Text Diff","description":"Text diff: Line, word or character diff between two texts with a unified patch, added/removed counts and similarity. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.","url":"https://tools.moneytools.dev/v1/diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","examples":["hello world"],"description":"old text"},"b":{"type":"string","examples":["hello brave world"],"description":"new text"},"mode":{"type":"string","examples":["words"],"description":"lines | words | chars"}}},"responseSchema":{"type":"json"},"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_sfhwQMaS-vi4sO4LQlsMT","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 line, word, or character-level diff between two texts, returning a unified patch, added/removed counts, and similarity score","exampleAgentPrompt":"Can you do a word-level diff between these two paragraphs and tell me what was added, removed, and how similar they are? Old: 'The quick brown fox jumps over the lazy dog.' New: 'The quick red fox leaps over the sleepy dog.'","exampleUseCases":[{"title":"Document revision change detection","prompt":"I have two versions of a legal clause — can you do a line-by-line diff and show me exactly what changed, including how many lines were added or removed? Old version: 'The parties agree to arbitration in New York.' New version: 'The parties agree to binding arbitration in Delaware or New York.'"},{"title":"Code review text comparison","prompt":"Compare these two function descriptions word by word and give me a unified patch showing the differences and a similarity score. Before: 'Parses JSON input and returns a dict.' After: 'Parses JSON or YAML input and returns a typed dict.'"},{"title":"Content editing similarity check","prompt":"I want to know how similar my revised blog intro is to the original — can you do a character-level diff? Original: 'Welcome to our newsletter, your monthly tech digest.' Revised: 'Welcome to our weekly newsletter, your tech digest and more.'"}],"resultDescription":"Returns a unified diff patch showing changes between the two texts, counts of added and removed units (lines, words, or characters depending on mode), and a similarity score between 0 and 1 indicating how alike the two texts are.","failureModes":["Missing required fields 'a' or 'b' returns a 400 error","Invalid mode value (not 'lines', 'words', or 'chars') may return a 400 error or default behavior","Free tier exhaustion (more than 10 calls/day without payment) triggers HTTP 402 Payment Required","Empty strings for both inputs may return a trivial result with 100% similarity and no diff","Very large texts may time out or be rejected","Payment failure via x402 results in no charge and no response"],"whenToPreferThis":"Choose this endpoint when you need a structured, quantitative comparison of two text strings — particularly when you want a unified patch format, explicit added/removed counts, and a similarity score. It supports three granularity modes (line, word, character), making it flexible for comparing code, prose, or configuration text. Prefer it over manual string comparison logic or heavyweight NLP tools when you need a lightweight, pay-per-call diff with no setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:41:22.757Z","isFirstParty":false,"canonicalSlug":"moneytools-text-diff-6c36e8cf"}