# Compute Revenue Lab — PDF OCR Page Map

> Compute Revenue Lab — PDF OCR Page Map is a paid API for AI agents from x402.bakdupoffroad.com, paid per call via x402, $0.018/call, status down (last checked 2026-09-15).

Analyzes a base64-encoded PDF and returns a per-page classification map indicating which pages need OCR, have selectable text, or are image-only, along with a summary of OCR cost estimates.

## Facts

- Endpoint: POST https://x402.bakdupoffroad.com/v1/document/ocr-page-map
- Price: $0.018/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/compute-revenue-lab-pdf-ocr-page-map-7d1f1c6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DyfDGh_shF2X_AibSdNsr

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 compute-revenue-lab-pdf-ocr-page-map-7d1f1c6d -d '<json body>'
```

Example prompt: Can you preflight this PDF for me and tell me which pages have selectable text versus which ones are scanned images that would need OCR — I want a page-by-page breakdown before I decide whether to run full OCR on the whole thing?

## When to prefer this

Choose this endpoint when you need a lightweight, privacy-preserving preflight pass over a PDF before committing to full OCR processing — it tells you exactly which pages need OCR and which already have selectable text, saving downstream OCR cost. Prefer it over running full OCR blindly when you want to triage documents, estimate costs, or route pages to different processing pipelines. Well-suited for pipelines that must pay per-call via USDC on Base using the x402 protocol.

## Known failure modes

- PDF exceeds the service's decoded-size limit — request rejected
- Malformed or non-PDF base64 payload — parsing error returned
- Payment failure via x402 USDC on Base — 402 response, no analysis performed
- Network timeout for very large PDFs during processing
- Invalid base64 encoding — decoding error

## How this service works

Private PDF preflight and authorized-video intelligence APIs paid per call with x402 USDC on Base.

## Output

Returns a JSON object with a per-page array (page number, classification as 'selectable' or 'image_or_blank', OCR necessity flag, image count, and character count), plus a summary (selectable page count, estimated OCR pages, avoided full-OCR pages, sparse pages), total page count, a SHA-256 hash of the source PDF, schema version, and pricing economics (net cost in micro-USD).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pdfBase64": {
   "type": "string",
   "description": "A base64-encoded PDF, up to the service's advertised decoded-size limit. Customer text is never returned or retained.",
   "contentEncoding": "base64",
   "contentMediaType": "application/pdf"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "jobId": "00000000-0000-4000-8000-000000000000",
  "result": {
   "pages": [
    {
     "needsOcr": false,
     "imageCount": 0,
     "pageNumber": 1,
     "classification": "selectable",
     "textCharacters": 412
    },
    {
     "needsOcr": true,
     "imageCount": 1,
     "pageNumber": 2,
     "classification": "image_or_blank",
     "textCharacters": 0
    }
   ],
   "summary": {
    "sparsePages": 0,
    "selectablePages": 3,
    "estimatedOcrPages": 1,
    "avoidedFullOcrPages": 3
   },
   "pageCount": 4,
   "sourceSha256": "0000000000000000000000000000000000000000000000000000000000000000",
   "schemaVersion": "1",
   "profileTruncated": false,
   "profiledPageCount": 4
  },
  "economics": {
   "netMicroUsd": 18000,
   "energyMicroUsd": 0,
   "revenueMicroUsd": 18000,
   "platformFeeMicroUsd": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/compute-revenue-lab-pdf-ocr-page-map-7d1f1c6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.bakdupoffroad.com](https://www.zero.xyz/host/x402.bakdupoffroad.com/llms.txt)
