# Levenshtein Edit Distance & String Similarity API

> Levenshtein Edit Distance & String Similarity API is a paid API for AI agents from dt0ur.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-03).

Computes the Levenshtein edit distance and a similarity percentage between two input strings.

## Facts

- Endpoint: POST https://dt0ur.online/api/utility/diff?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/levenshtein-edit-distance-string-similarity-api-a471b24a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5P1wAZiskHIQnigelfBgz

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 levenshtein-edit-distance-string-similarity-api-a471b24a -d '<json body>'
```

Example prompt: How similar are the strings 'algorithm' and 'altruistic'? Give me the Levenshtein edit distance and a similarity percentage.

## When to prefer this

Choose this endpoint when you need a precise, character-level edit distance metric and a normalized similarity score between two strings. It is ideal for fuzzy matching, deduplication, spell-check scoring, or record linkage tasks where semantic meaning is less important than surface-level character similarity.

## Known failure modes

- Missing one or both string inputs returns a validation error
- Extremely long strings may hit payload size limits
- Non-string types for fields a or b may return a type error
- Network timeout on high-latency connections

## How this service works

Computes the Levenshtein edit distance and a similarity percentage between two strings.

## Output

Returns the integer Levenshtein edit distance (minimum number of single-character edits required to transform string a into string b) and a similarity percentage (0–100) indicating how alike the two strings are.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string"
  },
  "b": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/levenshtein-edit-distance-string-similarity-api-a471b24a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dt0ur.online](https://www.zero.xyz/host/dt0ur.online/llms.txt)
