{"uid":"cap_v_riorK-Mcbpa3xU6XzdE","slug":"centralcity-ai-text-diff-65492e1e","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_mnmsr62f3hxxv4ea?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_1TQKclyAtkGgYfwwJ2tS7","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 and returns a unified diff along with counts of added, removed, and unchanged lines.","exampleAgentPrompt":"Can you diff these two versions of my config file and show me what changed, with 5 lines of context around each change? Here's the old version: [text A] and the new version: [text B].","exampleUseCases":[{"title":"Code review change summary","prompt":"I have two versions of a Python script — the original and the edited one. Can you compare them line by line and tell me exactly what lines were added, removed, and kept, with 3 lines of context around each change?"},{"title":"Document revision tracking","prompt":"Here's the original draft of my report and the revised version. Can you generate a unified diff so I can see every line that changed, and give me a count of how many lines were added versus removed?"},{"title":"Config file audit","prompt":"I need to audit what changed between our old server config and the new one — can you do a line-by-line diff with 2 lines of surrounding context and tell me the totals for added and removed lines?"}],"resultDescription":"Returns a unified diff string showing line-level changes between the two input texts, plus integer counts of how many lines were added, removed, and kept unchanged.","failureModes":["Input text exceeds 64 KiB limit — request rejected","Context parameter outside 0–10 range — validation error","Missing required fields 'a' or 'b' — bad request error","Network timeout for very large near-limit inputs"],"whenToPreferThis":"Choose this endpoint when you need a programmatic, line-by-line text comparison with structured counts of changes — ideal for version diffing, change auditing, or generating patch summaries without setting up a local diff tool. It's especially useful when you need the diff result as data (not just visually) and want control over context lines shown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:39:00.615Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-text-diff-8fb59c58"}