# pagos.andreax.dev OCR (Tesseract 5)

> pagos.andreax.dev OCR (Tesseract 5) is a paid API for AI agents from pagos.andreax.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Extracts text from images (JPG/PNG) or PDFs—including scanned PDFs without a text layer—using a local Tesseract 5 engine supporting Spanish and English.

## Facts

- Endpoint: GET https://pagos.andreax.dev/api/taller/peaje/ocr
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pagos-andreax-dev-ocr-tesseract-5-156e7826
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wxjGL80rF4WMiDWJdnwr6

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 pagos-andreax-dev-ocr-tesseract-5-156e7826
```

Example prompt: I have a scanned invoice PDF that has no selectable text — can you run OCR on it using Spanish and English and give me all the text it contains?

## When to prefer this

Choose this endpoint when you need to extract text from scanned images or image-based PDFs (without a text layer) and want a cost-effective local Tesseract 5 solution supporting Spanish and/or English. Prefer it over cloud OCR services (Google Vision, AWS Textract) when data privacy matters, when documents are in Spanish, or when you want predictable per-call pricing at $0.004 USDC. Not ideal for documents requiring complex layout preservation, table extraction, or languages beyond Spanish and English.

## Known failure modes

- File not provided or incorrectly encoded base64 returns an error
- Unsupported file format (non-JPG/PNG/PDF) may fail silently or return empty text
- Very low-quality or blurry images may yield garbled or incomplete OCR output
- Wrong language specified for the document content reduces accuracy
- Large files may time out or be rejected due to size limits
- Missing required 'archivo_b64' parameter returns a 400-level error

## How this service works

OCR: extrae el texto de una imagen (JPG/PNG) o de un PDF, incluidos PDFs escaneados sin capa de texto. Motor local (Tesseract 5), idiomas español e inglés. Sube el archivo por multipart (campo 'archivo') o mándalo como 'archivo_b64' en el JSON. Opcional 'lang' (spa|eng|spa+eng).

## Output

A plain-text string containing all text recognized in the submitted image or PDF, extracted using Tesseract 5 locally. The result reflects the detected characters in the requested language(s) (spa, eng, or spa+eng). No structured layout is guaranteed — the text is returned as recognized, typically line by line.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "archivo_b64"
     ],
     "properties": {
      "lang": {
       "type": "string",
       "description": "spa|eng|spa+eng"
      },
      "archivo_b64": {
       "type": "string",
       "description": "Imagen/PDF en base64 (o subir 'archivo' por multipart)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pagos-andreax-dev-ocr-tesseract-5-156e7826/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pagos.andreax.dev](https://www.zero.xyz/host/pagos.andreax.dev/llms.txt)
