{"uid":"cap_aSAQQXXMJqZ4IIlzQRU0N","slug":"relaystation-text-diff-26cd6b10","name":"Relaystation Text Diff","description":"$0.0002/MB. Unified diff of two strings — see exactly what changed. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/text/diff","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"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"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qg7Mogvfu9f8ENmTPqPf1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a unified diff of two text strings, showing exactly what changed between them","exampleAgentPrompt":"Compare these two versions of my README and show me exactly what changed: [original text] vs [updated text] — give me a unified diff so I can see the added and removed lines clearly.","exampleUseCases":[{"title":"Code review change summary","prompt":"I have two versions of a config file — can you diff them and show me exactly what lines were added, removed, or changed between the original and the updated one?"},{"title":"Document revision tracking","prompt":"Here are two drafts of my blog post. Show me a unified diff so I can see what my editor changed between version 1 and version 2."},{"title":"Automated changelog generation","prompt":"I have the old and new versions of our API documentation. Diff them and tell me exactly what content was added or removed so I can write a changelog entry."}],"resultDescription":"A unified diff output showing the changes between the two input strings, formatted with +/- line prefixes and context lines, indicating exactly which lines were added, removed, or unchanged between the original and modified versions.","failureModes":["Missing required body fields returns a 4xx error","Extremely large text inputs may exceed size limits and incur higher MB-based pricing","Malformed POST body or wrong bodyType causes a parse error","Insufficient x402 payment credit results in payment-required error"],"whenToPreferThis":"Choose this endpoint when you need a programmatic, pay-per-use unified diff of two text strings without standing up your own diff infrastructure. Ideal for AI agents that need to surface change summaries, generate changelogs, or validate edits at low volume with no upfront commitment. Prefer it over embedding a diff library yourself when simplicity and per-call pricing ($0.0002/MB) matter more than in-process performance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:50:29.121Z","isFirstParty":false}