# ApexAPI Text Diff

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

Computes and returns a diff between two text strings, highlighting additions, deletions, and changes.

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/tools/text/diff
- Price: $0.10891/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-text-diff-2e7784b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IEwanpojYi2g587xrBhXX

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 apexapi-text-diff-2e7784b0 -d '<json body>'
```

Example prompt: Can you show me the differences between these two versions of my essay draft? Here's the original: 'The quick brown fox jumps over the lazy dog.' And here's the updated version: 'The quick brown fox leaped over the sleeping dog.'

## When to prefer this

Use this endpoint when you need a quick, pay-per-call text diff with no API key setup, especially in agent workflows on Base/USDC payment rails. Prefer it when you want a lightweight diff-as-a-service without spinning up local tooling.

## Known failure modes

- Missing or empty input text returns an error
- Extremely large text inputs may time out or exceed payload limits
- Malformed JSON body returns 400 bad request
- Payment failure via x402 returns 402 Payment Required
- Non-text binary content may produce garbled or meaningless diff output

## 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 object showing which portions of the text were added, removed, or unchanged between the two input strings, 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/apexapi-text-diff-2e7784b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
