PDF OCR API
Run OCR on scanned PDFs and return a searchable PDF or plain text.
Web UI: PDF OCR
Authentication
Bearer API key required on every request.
Request
POST https://api.omnicap.app/v1/pdf-ocr
Content-Type: multipart/form-data
file(file, required)Scanned PDF to OCR.
language(string)Tesseract language code (default eng).
output(string)pdf (searchable PDF) or txt.
password(string)Password if the PDF is encrypted.
Response
Mode: sync — binary file body
Headers: X-Page-Count
Examples
curl
curl -X POST "https://api.omnicap.app/v1/pdf-ocr" \ -H "Authorization: Bearer $OMNICAP_API_KEY" \ -F "file=@/path/to/document.pdf"
Node.js (fetch)
const form = new FormData();
form.append("file", fileBlob, "document.pdf");
const res = await fetch("https://api.omnicap.app/v1/pdf-ocr", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.OMNICAP_API_KEY}` },
body: form,
});
const out = await res.arrayBuffer();Billing
1 billable unit(s) per successful call.
Changelog
- 2026-10-24: Initial public release.