{"uid":"cap_0LbG2-7cGUpkV7V-pMRtp","slug":"fastapi-online-text-diff-diff-text-e84fcacb","name":"fastapi.online — Text Diff (diff-text)","description":"Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.","url":"https://api.fastapi.online/diff-text","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","maxLength":50000},"b":{"type":"string","maxLength":50000}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_q6SObGhc022iDNfRMc9z5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a character or line-level diff between two text strings, returning the differences between them.","exampleAgentPrompt":"Can you diff these two versions of my paragraph and show me exactly what changed? Original: 'The quick brown fox jumps over the lazy dog.' Revised: 'The quick red fox leaped over the sleepy dog.'","exampleUseCases":[{"title":"Reviewing edited document drafts","prompt":"I have two versions of a contract clause — the original and the lawyer's revision. Can you compare them and show me exactly what words were added, removed, or changed?"},{"title":"Tracking code comment changes","prompt":"Compare these two versions of a README file and tell me what lines were changed, added, or deleted between v1 and v2."},{"title":"Spotting config file differences","prompt":"I've got two config files and I need to know exactly what settings are different between them — can you diff them and list the changes?"}],"resultDescription":"Returns a structured or formatted diff showing the differences between the two input strings, including inserted, deleted, and unchanged sections — similar to a standard unified diff output.","failureModes":["Input strings exceed 50,000 character limit — request rejected","Missing one or both input fields — returns validation error","Identical strings — returns empty diff or no-change indicator","Network or server error — returns 5xx status"],"whenToPreferThis":"Use this endpoint when you need a quick, cheap ($0.0005 USDC), no-signup text diff between two strings of up to 50,000 characters each, especially in agent workflows that already pay per call with crypto via x402. Prefer it over building your own diff logic or spinning up a full document comparison service for lightweight, inline comparisons.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:49:31.076Z","isFirstParty":false}