{"uid":"cap_Ttbo4rnV3KE7JRWYnkq5o","slug":"centralcity-ai-text-diff-8fb59c58","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_5wfufd3ikmr4jfzs?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_6koOuf9RGyxdcHlPMipMU","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 texts line by line, returning a unified diff and 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: [old text] and the new version: [new text].","exampleUseCases":[{"title":"Code review change detection","prompt":"I have two versions of a Python script — the original and the edited one. Can you compare them line by line and show me a unified diff with 3 lines of context, plus tell me how many lines were added, removed, and kept?"},{"title":"Document revision summary","prompt":"Here's the original draft of my report and the revised version. Can you diff them and tell me exactly how many lines were added and removed, so I can summarize the changes for my team?"},{"title":"Config file deployment check","prompt":"Before I deploy, compare my old nginx.conf to the new one and show me a unified diff with 0 context lines — just the changed lines themselves — so I can quickly spot what's different."}],"resultDescription":"Returns a unified diff string showing changed lines (prefixed with + or -) and surrounding context lines, along with integer counts of lines added, lines removed, and lines 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-identical texts"],"whenToPreferThis":"Use this endpoint when you need a programmatic, structured diff of two text blobs — especially when you want both the human-readable unified diff output and machine-readable line counts (added/removed/kept) in a single call. Ideal for code review automation, document change summaries, config auditing, or any workflow where you need to quantify and display textual differences without spinning up a local diff tool.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:21.537Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-text-diff-8fb59c58"}