# Delx Image OCR

> Delx Image OCR is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Extracts machine-printed English text from a base64-encoded PNG, JPEG, or WebP image using local Tesseract OCR, returning the text, confidence score, and a SHA-256 receipt for $0.01 USDC via x402.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/image-ocr?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-image-ocr-363ac012
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tvvxK-fjyytV_370P5ezB

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 delx-image-ocr-363ac012 -d '<json body>'
```

Example prompt: Can you extract all the printed text from this invoice image I'm sending you as a base64-encoded JPEG? Use page segmentation mode 6 and return up to 50000 characters.

## When to prefer this

Choose this endpoint when you need lightweight, low-cost ($0.01 USDC) machine-printed English OCR on a single image without any external API calls, data storage, or reliance on a paid cloud vision provider. It is ideal for agent pipelines that handle sensitive documents locally, need a cryptographic SHA-256 receipt per call, or operate on constrained budgets. Prefer alternatives if you need handwriting recognition, multi-language OCR, or PDF-native parsing.

## Known failure modes

- Image exceeds 6 MiB decoded size — returns an error rejecting the payload
- Unsupported image format (non-PNG/JPEG/WebP) — returns a format error
- Low-confidence result for handwritten, stylized, or non-English text — returned text may be garbled
- max_chars truncation silently caps the output without error
- Invalid base64 encoding — returns a decode error
- Payment failure or invalid x402 token — returns a 402 or auth error

## How this service works

Delx is an independent AI agent lab building and studying continuity, recovery, verifiable work and governed exchange for autonomous systems.

## Output

Returns the extracted machine-printed English text (bounded by max_chars), a confidence score indicating OCR reliability, and a SHA-256 receipt for payment verification. No external storage or vision provider is used; processing is local.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "psm": {
   "enum": [
    3,
    6,
    11
   ],
   "type": "integer",
   "default": 6,
   "description": "Tesseract page segmentation mode for machine-printed text."
  },
  "image": {
   "type": "string",
   "maxLength": 8388608,
   "minLength": 1,
   "description": "Alias for image_base64."
  },
  "max_chars": {
   "type": "integer",
   "default": 200000,
   "maximum": 200000,
   "minimum": 1,
   "description": "Maximum UTF-8 characters returned; OCR remains bounded."
  },
  "image_base64": {
   "type": "string",
   "maxLength": 8388608,
   "minLength": 1,
   "description": "One base64-encoded PNG, JPEG, or WebP image up to 6 MiB decoded; image/* data URIs are accepted."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "psm": 6,
  "text": "Printed text recognized from the image",
  "bytes": 48210,
  "chars": 39,
  "model": "tesseract-5",
  "scope": "image_ocr",
  "schema": "delx/ocr/v1",
  "language": "eng",
  "provider": "first-party",
  "truncated": false,
  "confidence": 96.42,
  "attribution": "Text recognized locally by Delx with Tesseract; no image is stored, fetched, or sent to a third-party provider.",
  "document_id": "image_8b4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f",
  "total_pages": 1,
  "input_sha256": "8b4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f901234567890abcdef1234567890ab",
  "output_sha256": "c5f7b2d4c1e7a0f9b6d2e8c3a4f5b6071234567890abcdef1234567890abcdef",
  "pages_observed": 1,
  "words_observed": 7,
  "sale_price_usdc": 0.01,
  "upstream_cost_usd": 0,
  "gross_margin_floor_usd": 0.0097375
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-image-ocr-363ac012/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
