# Relaystation Three-Way Text Merge

> Relaystation Three-Way Text Merge is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Performs a three-way merge of two edited versions of a text against a common base, inserting conflict markers where edits overlap.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/text/merge3
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-three-way-text-merge-95e42bfa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZxZLF_3FVGpg7XeUcADgw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability relaystation-three-way-text-merge-95e42bfa -d '<json body>'
```

Example prompt: 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].

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

$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

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-three-way-text-merge-95e42bfa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
