{"uid":"cap_Ca_qRTr45SycP8Y5hKHk4","slug":"centralcity-ai-text-diff-bc9aeee0","name":"centralcity.ai Text Diff","description":"Compares two texts line by line: a unified diff and how many lines were added, removed and kept.","url":"https://centralcity.ai/api/public/x402/off_7i5lql5gkmyqiufb?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","description":"The first (old) text, at most 64 KiB."},"b":{"type":"string","description":"The second (new) text, at most 64 KiB."},"context":{"type":"integer","maximum":10,"minimum":0,"description":"Unchanged lines shown around each change, 0 to 10 (default 3)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iN_Cdhf0zFM9qDW7jDm5n","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two text strings line by line, returning a unified diff and counts of added, removed, and unchanged lines.","exampleAgentPrompt":"Can you compare these two versions of my config file and show me a unified diff with 5 lines of context around each change? Here's the old version: [text A] and here's the new one: [text B].","exampleUseCases":[{"title":"Code review diff summary","prompt":"I have two versions of a Python script — the original and the edited one. Can you show me a unified diff and tell me how many lines were added, removed, and kept, with 3 lines of context around each change?"},{"title":"Document revision tracking","prompt":"I need to compare yesterday's draft contract with today's version. Show me exactly what lines changed, using 5 lines of context around each edit, and give me a count of additions and deletions."},{"title":"Config file change audit","prompt":"Before deploying, diff my old nginx.conf against the new one and tell me what was added or removed — use 2 lines of context so I can see the surrounding lines."}],"resultDescription":"Returns a unified diff string showing changed lines (prefixed with + or -) and surrounding context lines, plus integer counts of how many lines were added, removed, and kept unchanged.","failureModes":["Input text exceeds 64 KiB limit — request rejected","Context value outside 0–10 range — validation error","Missing required fields 'a' or 'b' — bad request error","Network timeout for very large near-maximum inputs"],"whenToPreferThis":"Use this endpoint when you need a quick, structured line-by-line diff of two text blobs without setting up a local diffing library — especially useful in agent workflows that compare configuration files, code snippets, or document drafts and need machine-readable change counts alongside the human-readable unified diff.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:46.424Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-text-diff-8fb59c58"}