{"uid":"cap_tzX6ljdM80YHu9B0Pxa-P","slug":"delx-diff-lines-19afdf8c","name":"Delx Diff Lines","description":"Line-level text diff for $0.002 USDC for $0.002 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.","url":"https://api.delx.ai/api/v1/x402/diff-lines?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0aAWc5d1jpahk4DRcQrGY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a line-level text diff between two strings, returning structured change information for $0.001 USDC per call.","exampleAgentPrompt":"Show me the line-by-line diff between these two versions of my document — the original is 'Hello world\nFoo bar\nEnd' and the updated version is 'Hello world\nFoo baz\nEnd of file'.","exampleUseCases":[{"title":"Review config file changes","prompt":"Can you do a line-level diff between my old nginx config and the new one I just edited? Old: 'worker_processes 1;\nevents { }\nhttp { listen 80; }' and new: 'worker_processes 4;\nevents { }\nhttp { listen 443; }'"},{"title":"Proofread document revision","prompt":"I have two drafts of a paragraph — show me exactly which lines changed. Original: 'The project launched in 2023.\nIt exceeded expectations.\nThe team celebrated.' Revised: 'The project launched in 2024.\nIt exceeded all expectations.\nThe team celebrated.'"},{"title":"Detect changelog between code versions","prompt":"Compare these two versions of my Python function line by line and tell me what changed: original is 'def add(a, b):\n    return a + b' and the new version is 'def add(a, b, c=0):\n    return a + b + c'"}],"resultDescription":"Returns a structured line-level diff indicating which lines were added, removed, or unchanged between the original and modified text, typically including hunk information and per-line change markers.","failureModes":["Missing or empty input text fields returns a 400 error","Extremely large text inputs may be rejected or time out","Payment failure via x402 protocol returns a 402 Payment Required response","Malformed request body returns a validation error","Both texts identical returns an empty diff with no changes"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, programmatic line-level diff between two text strings without setting up a local diffing library. Ideal for agents comparing document versions, detecting content changes, or surfacing edits in a structured format — especially in lightweight pipelines where installing diff tooling is not feasible. At $0.001 USDC it is cost-effective for high-frequency comparison tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T08:22:04.712Z","isFirstParty":false,"canonicalSlug":"delx-diff-lines-19afdf8c"}