# SignalDesk AI Levenshtein Distance

> SignalDesk AI Levenshtein Distance is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Computes the Levenshtein edit distance between two strings, returning the minimum number of single-character edits needed to transform one into the other.

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/text/levenshtein?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-levenshtein-distance-790cf834
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EULWqUiAwFh7L_N2AZ-vJ

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 signaldesk-ai-levenshtein-distance-790cf834 -d '<json body>'
```

Example prompt: What's the Levenshtein distance between 'kitten' and 'sitting'?

## When to prefer this

Use this endpoint when you need a simple, fast, authoritative edit-distance integer for two short strings (up to 256 chars each) without building your own algorithm — ideal for fuzzy matching, deduplication, spell-check scoring, or input validation pipelines where a pay-per-call micro-cost is acceptable.

## Known failure modes

- Input strings exceeding 256 characters will be rejected
- Missing 'a' or 'b' fields return a validation error
- Payment failure or insufficient USDC balance returns HTTP 402
- Server-side quota exhaustion may return rate-limit errors

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object with a single integer field 'distance' representing the minimum number of single-character insertions, deletions, or substitutions required to transform string a into string b.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string",
   "maxLength": 256,
   "description": "First text."
  },
  "b": {
   "type": "string",
   "maxLength": 256,
   "description": "Second text."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-levenshtein-distance-790cf834/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
