# OmniAPI Text Diff

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

Computes and returns a diff (difference) between two text inputs, highlighting additions, deletions, and changes.

## Facts

- Endpoint: POST https://omni-api-cyan.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/omniapi-text-diff-2b3ffe42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dj8NQI_C85BLeeGReJZCP

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

Example prompt: Can you diff these two paragraphs for me and show exactly what changed? Original: 'The quick brown fox jumps over the lazy dog.' Revised: 'The quick red fox leaps over the sleepy dog.'

## When to prefer this

Use this endpoint when you need a quick, paid-per-call text diff via the x402 micropayment protocol without standing up your own diff infrastructure. Best suited for lightweight, on-demand text comparison tasks where integrating a full diff library is not feasible and a simple REST call with USDC payment is preferred.

## Known failure modes

- Missing required 'query' field returns a validation error
- Very large text inputs may cause timeout or truncation
- Identical inputs return an empty or no-change diff result
- Malformed or non-UTF-8 text may cause parsing errors
- API returns generic error object if payment (x402) fails or is insufficient

## How this service works

444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.

## Output

Returns a structured diff output showing which parts of the text were added, removed, or unchanged between the two input versions, typically as line-level or character-level change annotations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Input data for the endpoint"
  },
  "query": {
   "type": "string",
   "description": "Search query or input text"
  },
  "params": {
   "type": "object",
   "description": "Additional parameters"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-text-diff-2b3ffe42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
