{"uid":"cap_ZxZLF_3FVGpg7XeUcADgw","slug":"relaystation-three-way-text-merge-95e42bfa","name":"Relaystation Three-Way Text Merge","description":"$0.0002/MB. Three-way merge of two edits against a common base — conflict markers on overlap. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/text/merge3","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":{"type":"object","properties":{"base":{"type":"string","description":"The common ancestor."},"yours":{"type":"string","description":"Your version."},"theirs":{"type":"string","description":"Their version."}}},"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_wkmQSFBUv10skvTDFqsbq","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":"Performs a three-way merge of two edited versions of a text against a common base, inserting conflict markers where edits overlap.","exampleAgentPrompt":"Merge these two edited versions of my document — both started from the same original draft — and mark any spots where their changes conflict: [base text], [version A], [version B].","exampleUseCases":[{"title":"Collaborative document conflict resolution","prompt":"Two teammates both edited the same draft proposal from our shared base version. Can you do a three-way merge and flag anywhere their changes overlap or conflict?"},{"title":"Code comment or prose reconciliation","prompt":"I have the original README, one version my teammate updated, and another version I updated separately. Merge them and show me any conflict markers where we changed the same lines."},{"title":"Legal document version reconciliation","prompt":"We have a base contract and two separately redlined versions from different reviewers. Run a three-way merge so I can see a combined version with conflict markers wherever both reviewers edited the same clause."}],"resultDescription":"Returns the merged text combining non-conflicting edits from both versions; wherever the two edits modified the same region of the base, the output contains conflict markers (similar to git merge conflict markers) delineating each side's changes so a human or agent can resolve them manually.","failureModes":["Missing one or more of the three required text inputs (base, version A, version B)","Input text too large for the per-MB pricing tier, leading to unexpected cost or truncation","Malformed request body causing a 400 error","Entire document is a conflict (both versions differ from base everywhere), resulting in a heavily marker-laden output","x402 payment not sent or insufficient credits, causing a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need programmatic three-way text merging — specifically when two parties have independently edited a shared base document and you want to reconcile their changes with explicit conflict markers for overlapping regions. It's ideal for document collaboration workflows, version control–style merging outside of git, or any agent pipeline that needs to unify concurrent edits. Prefer it over simple two-way diff tools when you have a known common ancestor and need conflict detection rather than just line-by-line diffing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:07:04.400Z","isFirstParty":false}