Ten OCR models, one OpenParser output

Document parsing API

Send a PDF or image to PaddleOCR-VL, GLM-OCR, Mistral, Azure, Google, or AWS Textract. The parse API returns normalized elements, markdown, table structure, bounding boxes, and confidence when the selected model supports them.

Elements and markdownSource locations and OCR confidenceSync, async, batch
MUTUAL NON-DISCLOSURE AGREEMENT
This Agreement is made on 2 September 2026 between Nimbus Cloud GmbH, 42 Speicherstrasse, Berlin ("Nimbus") and Acme Operations GmbH, 8 Marktgasse, Vienna ("Acme").
4. Term and termination
This Agreement remains in force for three (3) years from the date above. Either party may end it with thirty (30) days' written notice.
5. Governing law
This Agreement is governed by Austrian law. The courts of Vienna have exclusive jurisdiction.
Jonas Weber
Jonas Weber
CEO · Nimbus Cloud GmbH
Date: 02.09.2026
M. Fernández
Marta Fernández
COO · Acme Operations GmbH
Date: 02.09.2026
Nimbus × Acme · ConfidentialPage 2 of 2
fx=SUM(E4:E8)
ABCD
1
Payroll · September 2026
2 
3456789
EmployeeHoursGrossNet
J. Carter1688,333.336,212.40
L. García1607,100.005,402.75
A. Okafor1726,880.005,236.10
M. Fernández1505,400.004,180.20
S. Tanaka1647,950.005,970.35
Total81435,663.3327,001.80
Approved by Finance · 30 Sep 2026. Net pay is after income tax and social security. Transfers scheduled for 1 Oct 2026.
SeptemberAugustSummary
NNimbus Cloud GmbHCloud infrastructure
INVOICE
From
Nimbus Cloud GmbH
42 Speicherstrasse · 10115 Berlin
Bill to
Acme Operations GmbH
8 Marktgasse · 1010 Vienna
Invoice no.INV-2026-0718
Issued30 July 2026
Due13 August 2026
DescriptionQtyAmount
Cloud hosting subscriptionJuly 2026 · Production1€1.200,00
Subtotal€1.200,00
VAT 20%€240,00
Total due€1.440,00
Payment details
Bank transfer · IBAN DE89 3704 0044 0532 0130 00
Reference INV-2026-0718
Nimbus Cloud GmbH · Fictional demonstration invoicePage 1 of 1
CALIFORNIA COMMERCIAL LEASE AGREEMENT
This Lease Agreement made the 2025-05-20, by and between Hope Mante [name of lessor], of 925 The Mews [street address], hereinafter referred to as "Lessor", and Reilly Group [name of lessee], hereinafter referred to as "Lessee".
1. DESCRIPTION OF LEASED PREMISES
The Lessor agrees to lease to the Lessee 2448 square feet of Industrial Space located at 80369 Efren Burg, State of California.
2. TERM OF LEASE
The term of this Lease shall be 4 year(s) 5 month(s), commencing on the 20 May 2025 and expiring at midnight on 20 October 2029.
3. BASE RENT
The net monthly payment shall be 8646 dollars per month. A security deposit of 1395 dollars is required.
☑ Lessee may not renew the Lease.
☐ Lessee may renew with written notice 60 days prior.
Page 5 of 8
REPUBLIC OF ALDORIAIDENTITY CARD
Surname
MANTE
Given names
HOPE ELISE
Date of birth
14.03.1988
Sex
F
Document no.
AX4821937
Date of expiry
22.09.2031
H. Mante
Address
925 THE MEWS, ALDOR CITY
Issuing authority
CITY OF ALDOR · 22.09.2021
Height · Eyes
168 CM · BROWN
IDALDAX48219376<<<<<<<<<<<<
8803145F3109225ALD<<<<<<<<4
MANTE<<HOPE<ELISE<<<<<<<<
{
"invoice_no": "INV-2026-0718","due_date": "2026-08-13","total_due": 1440.00}

Parse a PDF into text and layout

Send a PDF, PNG, or JPEG with your API key. This one-page response shows text, markdown, page geometry, and a source element.

Request: POST /parse
curl https://api.openparser.dev/parse \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F 'request={"ocr_model":"paddleocr-vl-1.6","output_format":"openparser@1"};type=application/json' \
  -F "file=@statement.pdf"
Example parse response
{
  "output_format": "openparser@1",
  "document_id": "doc_3f9a2c",
  "provenance": {
    "provider": "paddle",
    "model": "paddleocr-vl-1.6"
  },
  "text": "Total due: $4,318.20",
  "markdown": "Total due: $4,318.20\n",
  "pages": [
    {
      "number": 1,
      "width": 1700,
      "height": 2200,
      "unit": "pixel",
      "element_ids": [
        "elem-total"
      ],
      "reading_order": [
        "elem-total"
      ]
    }
  ],
  "elements": [
    {
      "id": "elem-total",
      "kind": "text",
      "role": "paragraph",
      "text": "Total due: $4,318.20",
      "spans": [
        {
          "start": 0,
          "end": 20
        }
      ],
      "locations": [
        {
          "page_number": 1,
          "bbox": {
            "left": 14,
            "top": 53,
            "right": 146,
            "bottom": 123
          }
        }
      ],
      "confidence": {
        "score": 0.98,
        "scope": "recognition",
        "calibrated": false
      }
    }
  ],
  "relations": [],
  "text_annotations": [],
  "assets": []
}

Plan your document intake

Check upload limits and choose a job mode before you integrate.

Document parsing formats, limits, and job behavior
ItemWhat to expect
File formatsPDF, PNG, and JPEG. Convert office documents to PDF before uploading.
File sizeUp to 50 MiB per source file. Encrypted PDFs are rejected.
Batch size1 to 100 documents per batch request.
Response timeDepends on the model, page count, and queue. No fixed latency is promised.
Synchronous requestsPOST /parse can return 202 when its wait window expires. Poll the job URL in the Location header.
Asynchronous requestsPOST /parse/async returns a job. Poll GET /jobs/{id} for status and results.
Model limitsProvider page limits and output capabilities vary. Check the model catalog before choosing an engine.

Read the API quickstart for upload examples and the OCR model catalog for provider capabilities.

When should you use a document parsing API?

Choose an approach based on your source documents and the output you need.

Local PDF text extraction
Use a local text extractor when your PDFs already contain selectable text and you only need that text. Scan-only pages need OCR.
Self-hosted OCR
Run an open-weight model when you want to manage inference on your infrastructure. Budget for compute, queues, updates, and monitoring.
Hosted document parsing
Use OpenParser when you want OCR and layout through an API. Read text and markdown, inspect page elements, and switch models through the same request format.
Structured field extraction
If you need invoice totals or contract dates as JSON, use the document extraction API. Parsing returns document content; extraction fills your schema.

POST /parse returns typed layout elements

Call /parse, /parse/async, or /parse/batch. Poll /jobs for status. GET /files/{id}/content when you need the source bytes again.

Install
$ npm i @openparser/sdk
$ pip install openparser-sdk
POST/parserequest
curl https://api.openparser.dev/parse \
  -H "Authorization: Bearer $OPENPARSER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F 'request={"ocr_model": "paddleocr-vl-1.6"};type=application/json' \
  -F "file=@invoice.pdf"
200 · resultresponse
{
  "document_id": "doc_3f9a2c",
  "elements": [
    {
      "id": "elem-total",
      "kind": "text",
      "text": "Total due: €1.440,00",
      "locations": [{
        "page_number": 1,
        "bbox": { "left": 468, "top": 712, "right": 1118, "bottom": 760 }
      }],
      "confidence": { "score": 0.98 }
    }
  ],
  "markdown": "# INVOICE\n…"
}

Inspect parsed elements in the playground

Upload a PDF, review markdown and element kinds, then create API keys for POST /parse.

Upload a document, pick an OCR model, and switch on extraction.

ParsedDocument with pages and layout elements

POST /parse returns elements[], markdown, and stable fields your integration can rely on.

Typed layout elements

Each page references layout elements in reading order. Elements represent text, tables, figures, and signatures. Text roles distinguish headings from body content. Every element has an ID you can cite downstream.

OCR confidence

Elements can include OCR confidence scores. Set a threshold and send low-confidence results to review before they enter your pipeline.

Normalized output

Responses use one normalized contract: document_id, pages[], elements[], text, markdown, and stable fields for downstream processing.

Downstream extraction

Parsing stops at layout. Point /extract at a parse job when you need JSON against a schema, with citations tied to element IDs.

Bounding boxes

Element locations include page numbers and bounding boxes when the selected model supplies them. Highlight the region behind a citation or overlay parsed content on the original PDF.

Tables and figures

Tables return as structured elements with cells and optional HTML. Figures carry their own element type so agents can treat charts and images differently from body copy.

Parsing bills by page count

Each ocr_model publishes a page rate. /extract bills separately by llm_model token usage.

free credits
$10

At signup. About 10,000 pages on open-weight models.

pay per page
$1/ 1,000 pages

On open-weight models. Cloud OCR bills at its own page rate.

extraction
Per token

Billed on the tokens of the llm_model you pick.

  • $10 credits at signup
  • Open-weight hosted models from $1 per 1,000 pages
  • Each ocr_model publishes its own page rate
  • Sync, async, and batch included
  • Extraction billed per token on the LLM you choose
  • Console and API keys
Create an API key

Document parsing API FAQ

Ten ocr_model ids, ParsedDocument fields, sync/async/batch modes, and page pricing.

Which OCR models can the document parsing API run?

Choose from ten hosted models across Paddle, GLM-OCR, Mistral, Azure Document Intelligence, Google Document AI, and AWS Textract. Pass the model id in ocr_model on each parse request.

What does a parse response contain?

A ParsedDocument with output_format openparser@1, document_id, pages[], text, markdown, and elements[]. Elements can include text, headings, tables, figures, bounding boxes, and confidence values.

Can I parse PDFs asynchronously?

Yes. POST to /parse/async, then GET /jobs/{id} for status and the result when the job succeeds. Batch parsing uses /parse/batch with multiple files in one request.

How is parsing different from basic OCR?

Text-only OCR focuses on recognized text. Document parsing also represents layout and reading order. OpenParser returns text, markdown, pages, and elements. Table detail, geometry, and OCR confidence depend on the selected model.

How much does parsing cost?

New accounts get $10 in credits. Open-weight hosted models start at $1 per 1,000 pages; other OCR models publish their own per-page rates. Structured extraction adds the token cost of the language model you select.

What file types can I send?

PDF, PNG, and JPEG files up to 50 MiB. Encrypted PDFs are rejected. Convert office documents to PDF first, then upload as multipart form data alongside the request JSON.

Parse in Studio

Pick ocr_model and inspect elements before you integrate

Upload a PDF, set ocr_model, and review markdown, element kinds, and confidence scores in Studio before you call POST /parse.