{"uid":"cap_IUGFRRhAHbwl4IWKiwHXI","slug":"x402-text-diff-2cc85cff","name":"x402 Text Diff","description":"Deterministic line/word/char diff with one-line delta summary. Offline. Amp port.","url":"https://x402-v2-mint-text-diff.vercel.app/v1/text-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","maxLength":200000},"b":{"type":"string","maxLength":200000},"mode":{"enum":["lines","words","chars"],"type":"string"},"options":{"type":"object","properties":{"mode":{"enum":["lines","words","chars"],"type":"string","default":"lines"}},"additionalProperties":false},"request_id":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"skill":"text-diff","charged":true,"summary":"ok"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4R78EWgRvnKv1PnNY6Q0W","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a deterministic line, word, or character-level diff between two text strings and returns a one-line delta summary, running fully offline.","exampleAgentPrompt":"Compare these two paragraphs word by word and tell me what changed: original is 'The quick brown fox jumps over the lazy dog' and the new version is 'The quick red fox leaps over the sleepy dog' — use word-level diff mode.","exampleUseCases":[{"title":"Document revision tracking","prompt":"I have two versions of a contract clause — the original says 'payment due within 30 days of invoice' and the revised version says 'payment due within 14 days of receipt'. Can you do a word-level diff and summarize what changed?"},{"title":"Code config change review","prompt":"Diff these two config file contents line by line and give me a summary of what lines were added, removed, or changed. Old config: 'host=localhost\nport=5432\ndebug=true' and new config: 'host=db.prod.internal\nport=5432\ndebug=false'."},{"title":"Proofreading edit detection","prompt":"I sent a draft essay to a colleague for edits. Can you compare the original and the revised text at character level to show me exactly what they changed? Original: 'She recieved the award graciously.' Revised: 'She received the award graciously.'"}],"resultDescription":"Returns a JSON object with an 'ok' boolean, the skill name ('text-diff'), a 'charged' flag indicating the payment was processed, and a 'summary' string providing a one-line delta summary of the differences found between the two input texts.","failureModes":["Input text exceeds 200,000 character limit — request rejected","Invalid or missing 'mode' enum value — validation error","Either 'a' or 'b' field missing — schema validation failure","Payment not processed via x402 protocol — 402 Payment Required response","Network timeout or Vercel cold start delay on first request"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, offline, reproducible diff between two text strings with an explicit diff granularity (lines, words, or chars). It is ideal when you want a concise one-line summary of changes rather than a verbose patch format, and when privacy matters since it runs offline without sending data to a third-party AI model. Prefer it over LLM-based comparison when you need exact, byte-level determinism rather than semantic approximation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T00:43:59.470Z","isFirstParty":false,"canonicalSlug":"x402-text-diff-2cc85cff"}