# LensaOCR

> LensaOCR is a paid API for AI agents from lensaocr.saastemly.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-16).

Extracts text and word bounding boxes from a PNG image using Tesseract, returning results in text, TSV, hOCR, ALTO, or words format.

## Facts

- Endpoint: POST https://lensaocr.saastemly.com/v1/ocr?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lensaocr-35d70fe8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_abiJ8vgUGqBcy0ZWHFhfu

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 lensaocr-35d70fe8 -d '<json body>'
```

Example prompt: Can you read all the text out of this image for me and give me back the word positions too — return it in TSV format so I can work with the coordinates?

## When to prefer this

Choose LensaOCR when you need Tesseract-backed OCR with multiple structured output formats (especially TSV or hOCR with bounding boxes) and want a pay-per-call API without managing Tesseract infrastructure. Ideal for document processing pipelines, form digitization, and layout-aware text extraction where word-level spatial data matters.

## Known failure modes

- Image exceeds 5 MB limit — request rejected
- Image not valid PNG or improperly base64-encoded — decode error
- Low-quality or blurry image — Tesseract returns empty or garbled text with low confidence
- Unsupported format enum value — validation error
- Non-Latin or unsupported script — Tesseract may return poor results depending on language model

## How this service works

Reads an image's text and word boxes (Tesseract txt, TSV, hOCR and ALTO).

## Output

Returns OCR results for the submitted image in the requested format: plain text string (text), tab-separated values with confidence and bounding box columns (tsv), hOCR HTML with spatial metadata (hocr), ALTO XML (alto), or a structured list of word objects with coordinates (words).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "enum": [
    "text",
    "tsv",
    "hocr",
    "alto",
    "words"
   ],
   "type": "string",
   "description": "The answer's format: text (default), tsv, hocr, alto or words"
  },
  "image_base64": {
   "type": "string",
   "description": "A PNG image (up to 5 MB), base64-encoded"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lensaocr-35d70fe8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lensaocr.saastemly.com](https://www.zero.xyz/host/lensaocr.saastemly.com/llms.txt)
