API · OCR

OCR API that returns usable document data.

Cogneris reads text, tables, handwriting, and layout from PDFs, scans, and photos, then turns recognition output into validated JSON. Use OCR when you need text; use Cogneris when your workflow needs trustworthy fields, evidence, and decisions.

OCR is the first step, not the final output

OCR recognizes document text. Most business workflows need more: named fields, tables, totals, identities, document types, validation status, and an audit trail. Cogneris combines OCR, layout understanding, multimodal extraction, and deterministic validation in one API.

Recognize text, tables, layout, handwriting, and fields

Use Cogneris on native PDFs, scanned PDFs, mobile photos, receipt images, invoices, bank statements, contracts, IDs, and onboarding packets. The API preserves the layout context needed to understand labels, rows, columns, and page-level evidence.

Text and layout

Read text, page structure, bounding boxes, sections, and table boundaries.

Fields and tables

Return document-specific JSON rather than making your team parse raw OCR text.

Review and validation

Send uncertain fields to review and validate values before downstream export.

Turn OCR output into structured JSON

For receipts, invoices, and KYC documents, Cogneris can return normalized fields, arrays, dates, amounts, identifiers, and validation metadata. Read the extraction docs for request and response examples.

SDK snippet: OCR plus structured output

Teams comparing OCR APIs often start with text extraction, then add tables and JSON when the output reaches a product workflow.

const ocr = await client.ocr.create({
  file: './statement.pdf',
  output: ['text', 'tables', 'json'],
  includeCitations: true
});

console.log(ocr.pages[0].text);
console.log(ocr.tables[0].rows.length);

Confidence scores and bounding boxes

Every important value can carry confidence, source page, and bounding-box evidence. Reviewers can jump from JSON to the document region that produced the value, which makes QA and audit work much faster.

Multimodal extraction for hard documents

Some documents are too messy for text recognition alone: rotated scans, unusual templates, broken tables, photos with shadows, handwritten notes, and packets with mixed document types. Cogneris combines OCR with multimodal reasoning and validation rules so the output is built for decisions, not just search.

Agentic OCR for high-risk workflows

For checks, logistics packets, insurance forms, and finance documents, the OCR result is only the first pass. Cogneris can classify the document, extract the right schema, check totals or identifiers, and route uncertain fields to review before the workflow trusts the data.

Human review for uncertain fields

When a value is low-confidence or high-risk, Cogneris can route that field to human review while the rest of the document continues through automation. That keeps the workflow moving without pretending every OCR result is equally trustworthy.

OCR API pricing and workflow cost

Most OCR APIs look inexpensive when you compare only page recognition. The real cost appears when teams add custom parsers, table cleanup, confidence thresholds, review tools, and audit evidence. For buying criteria, see the document extraction API pricing guide and the extraction benchmark.

OCR API FAQ

What is an OCR API?
An OCR API recognizes text from PDFs, scans, photos, and images. Cogneris extends OCR with extraction, validation, confidence, and review workflows.
Does Cogneris support scanned PDFs and mobile photos?
Yes. Cogneris supports native PDFs, scanned PDFs, mobile photos, and common image formats.
Can OCR output include tables and line items?
Yes. Cogneris can extract table rows, line items, totals, labels, and field values instead of returning only plain text.
How is this different from a text-only OCR API?
Text-only OCR gives you recognized characters. Cogneris returns structured JSON, confidence scores, validation status, and evidence for the fields your workflow needs.
Can I get bounding boxes and confidence scores?
Yes. Field responses can include confidence scores, page references, and bounding boxes for review and audit trails.
Can OCR results be validated before export?
Yes. Cogneris can validate OCR-derived fields with business rules, totals reconciliation, date checks, and required-field checks before export.