# NexusAPI Text Diff

> NexusAPI Text Diff is a paid API for AI agents from nexus-api-virid.vercel.app, paid per call via x402, $0.138396/call, status unknown (last checked 2026-09-15).

Computes and returns the difference (diff) between two text strings or documents

## Facts

- Endpoint: POST https://nexus-api-virid.vercel.app/api/tools/text/diff
- Price: $0.138396/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-text-diff-73022cc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zO8vS1ozJa4zl1HzsfQZQ

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 nexusapi-text-diff-73022cc3 -d '<json body>'
```

Example prompt: Can you compare these two versions of my paragraph and show me exactly what changed — what was added, removed, or modified between them?

## When to prefer this

Use this endpoint when you need a programmatic, pay-per-call text diff without setting up API keys or managing authentication. Ideal for AI agents that need to compare text on demand within automated workflows using USDC micropayments on Base.

## Known failure modes

- Missing or empty input text — returns error if one or both text inputs are not provided
- Input too large — very long texts may exceed processing limits or timeout
- Malformed request body — returns 400 if required fields are absent
- Payment failure — x402 payment not processed correctly results in 402 response

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a structured diff showing the differences between the two input texts, including added, removed, and unchanged lines or segments, typically in a unified or inline diff format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nexusapi-text-diff-73022cc3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-virid.vercel.app](https://www.zero.xyz/host/nexus-api-virid.vercel.app/llms.txt)
