{"uid":"cap_DyfDGh_shF2X_AibSdNsr","slug":"compute-revenue-lab-pdf-ocr-page-map-7d1f1c6d","name":"Compute Revenue Lab — PDF OCR Page Map","description":"Private PDF preflight and authorized-video intelligence APIs paid per call with x402 USDC on Base.","url":"https://x402.bakdupoffroad.com/v1/document/ocr-page-map","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"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}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.018","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9tW0x_qlD0YY-mwglazWK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Pre-OCR cost estimation for legal documents","prompt":"I have a 40-page legal contract as a PDF — can you scan through it and tell me which pages are already text-selectable and which ones are scanned images so I can figure out how many pages will actually need OCR before I run it?"},{"title":"Automated PDF ingestion pipeline triage","prompt":"Before I process this batch of uploaded PDFs, can you profile this document and give me a summary of how many pages need OCR versus how many already have extractable text, so I can route it to the right processing queue?"},{"title":"Quality check on digitized archive scans","prompt":"I just received a digitized archive PDF — can you classify each page and tell me which ones are blank or image-only and which ones already have selectable text? I want the full page-by-page breakdown including character counts."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T14:25:15.102Z","isFirstParty":false}