# Compute Revenue Lab — PDF Private Preflight Bundle

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

Analyzes a base64-encoded PDF to assess structure, OCR needs, form topology, redaction risks, and recommended extraction pipeline before committing to full processing.

## Facts

- Endpoint: POST https://x402.bakdupoffroad.com/v1/document/private-preflight-bundle
- Price: $0.075/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-private-preflight-bundle-87ca0013
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JQQZwzeFpXS4F3ni47h5w

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-private-preflight-bundle-87ca0013 -d '<json body>'
```

Example prompt: Before I run full extraction on this PDF, can you preflight it — check the structure, figure out if it needs OCR, flag any PII signals like SSNs or credit cards, and tell me the recommended pipeline? Here's the file as base64.

## When to prefer this

Choose this endpoint when you need a lightweight, privacy-safe preflight pass on a PDF before committing to heavier extraction or OCR pipelines. It is ideal for cost estimation (determining how many pages truly need OCR), PII triage (bounded pattern scan for common sensitive data signals), and structural validation (AcroForm field counts, repair candidacy) — all without retaining customer text. Prefer it over full extraction endpoints when you want to route documents to the right pipeline, or when you need a SHA-256 fingerprint and a recommended method before proceeding.

## Known failure modes

- Oversized PDF exceeds the service's decoded-size limit — payload rejected
- Malformed base64 string causes decoding failure
- PDF is encrypted or password-protected, preventing structure analysis
- Network timeout if PDF is very large
- x402 payment failure if USDC balance is insufficient or Base network is congested
- Invalid content type returns schema validation error

## How this service works

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

## Output

A JSON object containing: a job ID, page count, document structure validity (status and repair candidacy), an OCR page map showing which pages need OCR, form topology (AcroForm presence, field counts by type, signature fields), a SHA-256 hash of the source, a processing budget (work units, selectable vs profiled pages, estimated OCR pages avoided), a redaction risk map with pattern-scan signal counts for emails, phones, SSNs, IBANs, credentials, and credit cards, plus the recommended extraction pipeline method, and billing economics (net cost in microUSD).

## 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": {
   "risks": [],
   "pageCount": 4,
   "structure": {
    "status": "valid",
    "repairMethod": "none",
    "issueCategories": [],
    "repairCandidate": false
   },
   "ocrPageMap": {
    "pages": [],
    "profileTruncated": false,
    "profiledPageCount": 4
   },
   "formTopology": {
    "fieldCount": 0,
    "hasAcroForm": false,
    "fieldTypeCounts": {},
    "widgetPageCount": 0,
    "needsAppearances": false,
    "signatureFieldCount": 0
   },
   "sourceSha256": "0000000000000000000000000000000000000000000000000000000000000000",
   "schemaVersion": "1",
   "documentFamily": "selectable_pdf",
   "processingBudget": {
    "workUnits": 4,
    "formFields": 0,
    "sparsePages": 0,
    "profiledPages": 4,
    "selectablePages": 4,
    "profileTruncated": false,
    "estimatedOcrPages": 0,
    "avoidedFullOcrPages": 4,
    "recommendedPipeline": "extract-selectable-text-with-page-locators"
   },
   "redactionRiskMap": {
    "confidence": "bounded-pattern-scan",
    "sourceSafe": true,
    "limitations": [],
    "signalCounts": {
     "email": 0,
     "phone": 0,
     "ssnLike": 0,
     "ibanLike": 0,
     "credentialLike": 0,
     "creditCardLike": 0
    },
    "pagesWithSignals": [],
    "unresolvedImagePages": []
   },
   "recommendedMethod": "extract-selectable-text-with-page-locators"
  },
  "economics": {
   "netMicroUsd": 75000,
   "energyMicroUsd": 0,
   "revenueMicroUsd": 75000,
   "platformFeeMicroUsd": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/compute-revenue-lab-pdf-private-preflight-bundle-87ca0013/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)
