{"uid":"cap_iRdz90TXZ6v-KG_aNpesK","slug":"text-diff-1ecd4f73","name":"text-diff","description":"Line-level text diff: which lines were added, removed or kept between two texts, with a unified-style listing, similarity ratio and counts. Compare document versions or agent outputs. $0.01 per call.","url":"https://intel.rallylive.ca/data/diff","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w2KydxMSTfiyjvz7LZCer","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a line-level diff between two texts, returning added/removed/kept lines in unified-style format along with a similarity ratio and line counts.","exampleAgentPrompt":"Show me the line-by-line diff between these two versions of my README — the original and the updated one — including which lines were added, removed, or kept, and the similarity ratio.","exampleUseCases":[{"title":"Comparing document revision drafts","prompt":"I have two drafts of our policy document — the original and the revised version. Can you diff them line by line and show me exactly what lines were added or removed, plus how similar they are overall?"},{"title":"Auditing AI agent output changes","prompt":"My agent generated a response yesterday and a different one today for the same prompt. Can you compare them line by line and tell me what changed between the two outputs?"},{"title":"Reviewing config file edits","prompt":"Here are two versions of our nginx config — before and after the engineer's changes. Show me a unified-style diff of what lines were added or deleted and give me the similarity ratio."}],"resultDescription":"Returns a unified-style diff listing showing which lines were added (prefixed with +), removed (prefixed with -), or kept unchanged, along with a floating-point similarity ratio (0.0–1.0) and counts of added, removed, and unchanged lines.","failureModes":["Missing or empty input texts returns a validation error","Extremely large texts may exceed request size limits","Non-text or binary content may produce garbled diff output","Network timeout for unusually long processing requests"],"whenToPreferThis":"Choose this endpoint when you need a fast, lightweight line-level text diff with similarity scoring without setting up a local diffing library. Ideal for agents that need to compare document versions, audit LLM output changes, or verify configuration edits programmatically at low cost ($0.01/call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:12:44.482Z","isFirstParty":false}