# AgentBIT Content Diff

> AgentBIT Content Diff is a paid API for AI agents from agentbit.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Computes a text diff between two strings, returning the differences between an original and a revised version

## Facts

- Endpoint: POST https://agentbit.app/v1/content/diff?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbit-content-diff-2fcbd575
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DYISkPBxrMQmTkhhM1DpR

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 agentbit-content-diff-2fcbd575 -d '<json body>'
```

Example prompt: Compare these two versions of the paragraph and show me exactly what changed — original: 'The quick brown fox jumps over the lazy dog.' and revised: 'The quick red fox leaped over the sleepy dog.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call text comparison without setting up any infrastructure or API keys. It is ideal for agents that occasionally need to compare document versions, detect edits, or audit changes between two text strings up to 100k characters, and where a simple diff output is sufficient rather than a full version-control system.

## Known failure modes

- Input text exceeds 100k character limit — request will fail or be truncated
- Missing 'a' or 'b' field in request body — returns validation error
- Both strings identical — returns empty diff with no changes
- Malformed JSON body — returns parse error
- Network timeout on very large texts near the character limit

## How this service works

Diff two texts offline (LCS-based): the added and removed lines, a count of changed line-pairs, added/removed word tallies and a 0-1 similarity ratio. Key-less, instant, $0.002.

## Output

A JSON object describing the differences between the two input texts, including additions, deletions, and unchanged sections, allowing the agent to understand precisely what changed between the original and revised strings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string",
   "description": "The original text (up to 100k characters)"
  },
  "b": {
   "type": "string",
   "description": "The revised text (up to 100k characters)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentbit-content-diff-2fcbd575/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbit.app](https://www.zero.xyz/host/agentbit.app/llms.txt)
