Ten OCR models, markdown and elements

PDF to markdown
via POST /parse

POST a PDF to /parse with your ocr_model. The response includes a markdown string and typed layout elements with headings, tables, and figures where the engine detects them.

Ten ocr_model idsMarkdown and typed elementsSync, async, or 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}

From a PDF table to markdown

This illustrative invoice shows how markdown extraction can preserve a heading and table. Output depends on the document and selected OCR model.

Example PDF content
Invoice

Item                    Amount
Consulting              $120.00
Total                   $120.00
Example markdown field
# Invoice

| Item | Amount |
| --- | --- |
| Consulting | $120.00 |
| Total | $120.00 |

Read markdown for chunking and retrieval. Use elements for table cells and source locations. See a parse request and JSON response.

POST /parse returns markdown and elements

Call /parse sync, async, or batch. The response includes a markdown string and typed layout elements.

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…"
}

Preview markdown in the playground

Upload a PDF, inspect the markdown field and element kinds, then create an API key for POST /parse.

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

Markdown for storage, elements for inspection

The markdown field is ready for chunking and retrieval. elements[] carries kinds, bounding boxes, and confidence per region.

Markdown and typed elements

Both return in the same /parse response. Use markdown for storage and retrieval. Use elements when you need per-region types or confidence.

Route low-confidence pages

Elements can include OCR confidence scores. Send low-confidence results to review before they enter a retrieval index.

Headings, tables, figures

When the parser recognizes them, headings and tables survive in markdown and as typed elements. Figures keep their own element type.

Extract after parse

Run /extract on the parse result to fill a JSON schema. Citations point back to element IDs and source-page bounding boxes.

Stable element IDs

Each element carries a stable ID you can attach to vector metadata or hand to an agent tool call.

Batch document intake

POST multiple PDFs to /parse/batch and poll /jobs/{id} when you ingest folders on a schedule.

Page rates depend on ocr_model

New accounts get $10 in credits at signup (about 10,000 pages at $1/1,000 on open-weight hosted models). Other engines publish page rates on GET /models/ocr.

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.

  • No minimums
  • No per-seat fees
  • Sync, async, and batch
  • Console and API keys
Create an API key

PDF to markdown API FAQ

/parse response fields, ocr_model pricing, and hosted inference.

What does the PDF to markdown API return?

The /parse endpoint returns a markdown string plus normalized typed layout elements. Elements can include text, headings, tables, figures, bounding boxes, and confidence values.

Does markdown extraction preserve tables and images?

Tables and headings can appear in markdown when the selected model detects them. Complex tables may need the structured cells in elements instead. Image handling varies by model; inspect figure elements and assets rather than assuming every image is embedded in markdown.

Do I get markdown only, or elements too?

Both return in the same response. Use markdown for storage and retrieval. Use elements when you need per-region types, bounding boxes, or confidence scores.

Which parser runs behind the API?

OpenParser hosts ten OCR models. Set ocr_model on each /parse request. paddleocr-vl-1.6 and glm-ocr are open-weight hosted options at $1 per 1,000 pages; Mistral, Azure, Google, and AWS Textract are also available.

How much does parsing cost?

Open-weight hosted models start at $1 per 1,000 parsed pages. Other models have their own page rates. New accounts get $10 in credits; extraction is billed separately by language-model token usage.

Can I parse PDFs asynchronously?

Yes. The API supports synchronous, asynchronous, and batch parsing, plus job endpoints for checking status and retrieving results.

Does OpenParser run on my infrastructure?

No. OpenParser hosts the OCR engines. You send files to POST /parse; OpenParser runs inference and returns markdown plus typed elements.

Parse a PDF to markdown

Preview markdown in Studio, then call POST /parse

Upload a PDF, inspect the markdown field and element kinds, create an API key, and call /parse from your backend with ocr_model set.