APIMODELSAPIMODELS

Unlimited OCR 2 review: Baidu’s document parsing model, tested on 625 pages

Updated 2026-12-04

TL;DR Unlimited-OCR-2 is an open-source document parsing model from Baidu that turns a page image into Markdown, with tables as HTML and formulas as LaTeX. In our tests on 625 labelled pages it read printed books, reports, exam papers and eleven languages with a typical character error under 2%, and phone photos with shadows, blur or a curled page lost almost nothing. It is weaker on dense newspapers (about 9% error, 37 seconds a page), Chinese handwriting (about 11%) and real receipt photos (89% of fields found). Run on its own it also breaks on rotated photos and single text lines; the API on apimodels.app straightens and pads images and retries stuck pages, which cut the average error across all 624 scored pages from 42.5% to 18.0%.

Model page: Unlimited-OCR-2 API — pricing, specs and the playground

Unlimited-OCR-2, also written Unlimited OCR 2, is the second version of Baidu’s Unlimited-OCR. Baidu released the weights under the MIT licence on 27 October 2026. It reads one page image at a time and returns the page as structured Markdown: each block is labelled as a title, paragraph, table, formula, image and so on, and tables come back as HTML that keeps merged cells.

This page reports what we measured before opening it as an API. We built 625 test pages with known correct text in 26 groups: printed documents from the OmniDocBench benchmark, receipt photos, scanned forms, English and Chinese handwriting, pages we rendered in eleven languages, and the same pages photographed with angle, shadow, blur, curl, low resolution and rotation. Every number below comes from those runs on 2 and 3 December 2026. The API opened on 4 December 2026; the examples below are the live request format.

We run apimodels.app and host this model ourselves, so treat this as a vendor’s test. To keep it honest we show the failures next to the wins, give the raw scores per group, and say where the model alone and our processing differ.

What Unlimited-OCR-2 is

Unlimited-OCR-2 is a 3.3-billion-parameter vision-language model trained only for reading documents. It does not answer questions about an image; you give it a page and it writes the page back as text, in reading order, with the layout kept as Markdown structure.

Unlimited-OCR-2
MakerBaidu
Released27 October 2026, open weights
LicenceMIT
Size3.3B parameters, 6.7 GB of weights
InputOne page image: photo, scan or screenshot
OutputMarkdown; tables as HTML; formulas as LaTeX; each block labelled with its type and position
Languages we testedSimplified and Traditional Chinese, Japanese, Korean, Arabic, Thai, Russian, Vietnamese, German, Spanish, Hindi, English
Speed in our testsMedian 3 to 14 seconds a page with four requests at a time; a full newspaper page about 37 seconds

How we tested: 625 pages with known answers

Every test page has a known correct text, so the scores are measured, not judged by eye. The 625 pages come from six places: 138 pages from OmniDocBench in 12 document types; 100 receipt photos from CORD; 50 scanned forms from FUNSD; 200 handwritten lines from IAM (English) and CASIA-HWDB2 (Chinese), also stacked into 20 full pages; 20 pages we rendered ourselves (eleven languages, small print, vertical text, a receipt, a quote table, business cards, a code screenshot); and 97 phone-photo versions of 17 of those pages.

We report the character error rate (CER): the number of character edits needed to turn the output into the correct text, divided by the length of the correct text. Lower is better; under 2% means about one wrong character in a long sentence. Tables are scored with TEDS (1.0 means structure and content both match), receipts and business cards by the share of fields found, and forms by word F1, because the reading order of form fields varies and would distort a character score.

All runs used the same settings we will serve: the default tiled view, temperature 0, at most 12,000 output tokens a page, four requests at a time. The scores in the results tables include our image processing, which the section “What our API adds” separates out.

Printed documents: under 2% error on most books, reports and exams

Unlimited-OCR-2 reads ordinary printed pages almost perfectly. Books had a median error of 0.59%, research reports 1.38% and exam papers 1.93%, and table structure on those pages scored 0.95 to 1.00. Slides, hard tables and hard formulas also came back clean on most pages.

The score drops as layouts get busier. Academic papers (3.62%), magazines (4.15%) and hard layouts (4.96%) lose points mainly to reading order across columns and figures. Newspapers are the weakest group: a 9.12% median error and 37 seconds a page, because a full broadsheet is several thousand characters in many columns.

Formulas: on exam papers the LaTeX matched the reference at 0.92 similarity across the page, and on the hard-formula set at 0.81. Tables on slides (0.55) and hard layouts (0.56) scored low because the model sometimes reads a chart or a grid of boxes as a table, or the reverse.

Document typePagesMedian error (CER)Pages under 2%Table score (TEDS)Seconds a page
Slides exported to PDF120.00%10 of 120.552.9
Hard tables100.10%7 of 100.778.9
Hard formulas100.35%8 of 10—14.0
Books120.59%8 of 111.006.7
Colourful textbooks120.64%8 of 120.954.9
Notes121.31%8 of 120.965.1
Research reports121.38%7 of 120.959.0
Exam papers121.93%7 of 121.0011.4
Academic papers123.62%6 of 120.869.7
Magazines124.15%5 of 12—6.7
Hard layouts104.96%4 of 100.565.7
Newspapers129.12%3 of 12—36.9

Eleven languages, small print and vertical text

All twelve language pages came back under 2% error, with an average of 0.26%. The set covers Simplified and Traditional Chinese, Japanese, Korean, Arabic (right to left), Thai, Russian (one and two columns), Vietnamese, German, Spanish and Hindi. A dense Chinese contract set in 10.5-pixel type scored 0.08%.

Vertical text is readable but not clean: the two vertical pages, one classical Chinese and one Japanese, scored 2.5% and 4.4%. A receipt, a quote table and two business cards we rendered ourselves were read with every field correct, and the table came back with a TEDS of 1.0. A Python screenshot had every character right but lost its indentation, which breaks Python code.

Phone photos: shadows, blur and curl barely matter

Photographing a page costs Unlimited-OCR-2 very little. We took 17 clean pages and made five versions of each: a slight angle, a hard version with a strong angle, a hand shadow, blur and noise, a curled page and a 900-pixel low-resolution copy. The median error stayed between 0.11% and 0.53% in every condition.

Rotation is the exception. Given a page turned 90° or 180°, the model alone averaged 41.3% and 35.0% error, and some rotated Chinese pages came back as nonsense. Our API detects the orientation and turns the page upright first, which brought both down to under 3%.

Photo conditionPagesMedian errorPages under 2%Average error, model aloneAverage error, our API
Flat, clean170.11%11 of 174.6%4.6%
Slight angle and shadow170.22%11 of 173.5%3.5%
Strong angle, hand shadow, blur170.44%9 of 1711.4%10.6%
Curled page170.53%9 of 178.5%8.4%
Low resolution (900 px)170.33%11 of 1712.5%8.2%
Rotated 90°60.06%4 of 641.3%2.8%
Rotated 180°60.06%4 of 635.0%2.7%

Receipts, forms and handwriting: usable, but check the output

Real receipt photos are where Unlimited-OCR-2 needs help. On 100 phone photos of Indonesian receipts from CORD it found 88.7% of item names, prices and totals; every field was right on 70 receipts and the total on 83. Four photos returned no text at all. If you need the total to be right, add your own check, such as summing the line items.

Handwriting depends on the script. English handwriting had a median error of 2.3% per line and 4.1% per page, good enough for search and notes. Chinese handwriting had 11.1% per line and 12.6% per page: treat it as a draft for a person to correct. Scanned forms scored a word F1 of 0.86; the words are there, but you get reading text, not key–value pairs.

Test setSamplesResult
Receipt photos (CORD, Indonesian)100Fields found 88.7%; all fields right on 70; total right on 83; 4 with no text; median 2.7 s
Scanned forms (FUNSD, English)50Word F1 0.86; word recall 84%
English handwriting, single lines (IAM)100Median error 2.3%; 50 lines under 2%
English handwriting, full pages10Median error 4.1%
Chinese handwriting, single lines (CASIA-HWDB2)100Median error 11.1%; 29 lines under 2%
Chinese handwriting, full pages10Median error 12.6%

Three pages, read block by block

These three are from our own rendered pages, so the content is ours to show; the receipt and the business card are fictional. Left is the image we sent, with the layout blocks the model returned boxed and numbered in its reading order. Right is the Markdown output rendered as a page, appearing block by block in the same order, so block 3 on the left is block 3 on the right. Playback is slowed down for reading; the real run time is in each pair’s details. Click an image to open the full photo or the full output.

Receipt photographed under a hand shadow

All 10 items, the total of 269.36 and the change came back right, as a two-column table.

Details and run stats

Hard photo condition: angled, blurred, warm light, a soft shadow across the middle. Character error 0%, every field found, 4.9 seconds.

receipt-zh__hard · CER 0% · all fields found · 4.9 s

Business card rotated 90°

Turned upright automatically, then read with every field right in 1.9 seconds.

Details and run stats

Without the orientation step, rotated pages averaged 41.3% error in our tests. With it, this card came back with name, title, company, phone, email and address all correct.

card-zh__rot90 · auto-rotated 90° · all fields found · 1.9 s

Curled photo of a quote with a table

The 7-row table came back as HTML with the merged total row intact (TEDS 1.0).

Details and run stats

The page was photographed curled. Every price and amount matches; one phone number picked up extra spaces (“021- 5555- 0188”).

table-quote-zh__curl · TEDS 1.0 · 7.4 s

What our API adds on top of the open model

Most failures of the raw model come from the image, not the reading. We found three patterns in the 625 pages and added a step for each around the model call. Together they cut the average error across 624 scored pages from 42.5% to 18.0%, and pages with more than 50% error from 239 to 71, for 4.6% more model calls and the same total time.

On the 393 pages none of these steps touched, scores moved by −0.19 points on average, which is run-to-run noise. Two groups look slightly worse in the tables (colourful textbooks and newspapers) for the same reason: on a few long pages the model read columns in a different order between runs.

ProblemModel aloneWith our APIWhat we do
Page photographed sideways or upside down41.3% / 35.0% average error2.8% / 2.7%Detect orientation with a classifier and rotate first (0 wrong turns on 413 upright pages)
Single text line or narrow strip89 of 100 English and 81 of 100 Chinese lines returned as an image with no text0 and 1Add a white border to narrow images before sending
Output stuck repeating until the length limit17 of 625 pages13 clean on retry, 4 cut at the start of the loopWatch the stream, stop at the first loop, retry with different settings

Unlimited-OCR-2 vs PaddleOCR-VL, MinerU, Mistral OCR and Google Document AI

On single printed pages, two smaller open models score higher. On the OmniDocBench v1.6 benchmark Baidu reports 94.02 for Unlimited-OCR-2, while PaddleOCR-VL-1.6 reports 96.33 and MinerU2.5-Pro-2605 reports 95.72, each from its own developers. Teams do not run their scores under identical settings, so treat a gap of one or two points as close. We found no score on the same benchmark version for Mistral OCR or Google Document AI.

Unlimited-OCR-2 was built for length: self-hosted, it parses documents of hundreds of pages in one pass and merges tables that run across pages, scoring 77.06 on Baidu’s 100-to-300-page MarathonDocBench. Our API accepts a PDF of up to 20 pages per request, but reads each page on its own, so tables that run across pages are not merged. Hosted services such as Mistral OCR and Google Document AI accept larger PDF files.

How you get itOmniDocBench v1.6Whole documents in one requestNotes
Unlimited-OCR-2Open weights, MIT, 3.3B; API on apimodels.app at $0.001 a page94.02 (Baidu)Self-hosted: yes, hundreds of pages. Our API: PDFs up to 20 pages, read page by pageOur API adds rotation, padding and loop handling; results above
PaddleOCR-VL-1.6Open weights, Apache-2.0, 0.9B96.33 (self-reported)Self-hosted pipelineHigher score at about a quarter of the size
MinerU2.5-Pro-2605Open weights, Apache-2.0, 1.2B95.72 (self-reported)Self-hosted PDF-to-Markdown toolHigher score; built around PDF input
Mistral OCRHosted API—Yes: PDF, PPTX and DOCX by URLTables returned as Markdown or HTML
Google Document AIHosted API—Yes: up to 40 MB online, 1 GB in batchUp to 5,000 files per batch request

When not to use Unlimited-OCR-2

You need totals you can book without checking. 17 of 100 real receipt photos had a missing or wrong total. Use it to read receipts, then verify the sum or have a person confirm.

You need finished text from Chinese handwriting. A median 11% character error means about one wrong character in every nine. It saves typing, but someone has to proofread.

You process full newspaper pages at volume. A broadsheet took about 37 seconds and came back with a 9% median error, mostly from column order. Crop articles first if you can.

You extract code from screenshots. Characters are right, indentation is not. For Python and YAML that changes meaning.

You want structured fields, not text. The output is Markdown of the whole page. To get fields such as invoice number or due date, pass the Markdown to a language model or your own parser.

Limits on apimodels.app

Not every call succeeds. In our tests 4 of 100 receipt photos returned no text even after a retry, and 4 looping pages could only be returned up to the point where the loop began. A request that fails with an error is not charged; a successful one costs $0.001 a page ($1 per 1,000 pages), and a picture counts as one page.

SupportedNot supported
InputOne picture (JPEG, PNG, WebP, BMP, TIFF, GIF) or one PDF of up to 20 pages per request, up to 30 MBWord files; PDFs over 20 pages in one request (choose pages with the pages field)
OutputMarkdown, tables as HTML, formulas as LaTeX; layout blocks with type and coordinatesJSON key–value fields; a layout-faithful PDF
LengthUp to 12,000 output tokens a pagePages longer than that are cut
SpeedMedian 3 to 14 seconds a page in our testsGuaranteed latency; dense newspapers take about 37 seconds

Sources

Model facts: Baidu’s Unlimited-OCR-2 model card, GitHub repository and the Unlimited OCR 2 paper, read on 3 December 2026. Benchmark scores of other models: their own model cards. Hosted API facts: Mistral and Google Cloud documentation, read the same day. Test data: OmniDocBench, CORD, FUNSD, IAM and CASIA-HWDB2; all other pages and photos were made by us.

Quick start

cURL

curl https://api.apimodels.app/v1/chat/completions \
  -H "Authorization: Bearer $APIMODELS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "unlimited-ocr-2",
    "messages": [{"role": "user", "content": [
      {"type": "image_url", "image_url": {"url": "https://example.com/invoice-page-1.jpg"}}
    ]}]
  }'

Python

from openai import OpenAI

client = OpenAI(base_url="https://api.apimodels.app/v1", api_key="YOUR_API_KEY")

# One picture (or a PDF of up to 20 pages) per request; the reply is Markdown
resp = client.chat.completions.create(
    model="unlimited-ocr-2",
    messages=[{"role": "user", "content": [
        {"type": "image_url", "image_url": {"url": "https://example.com/invoice-page-1.jpg"}},
    ]}],
)
print(resp.choices[0].message.content)

FAQ

How good is Unlimited OCR 2?

Very good on printed pages, weaker on handwriting and dense layouts. In our 625-page test it read books, reports, exam papers and slides with a median character error under 2%, and phone photos of the same pages lost almost nothing. Dense newspapers (9% median error), Chinese handwriting (11%) and real receipt photos (88.7% of fields found) need checking. On the public OmniDocBench v1.6 benchmark Baidu reports 94.02, a little below PaddleOCR-VL-1.6 and MinerU2.5-Pro.

Is Unlimited OCR free and open source?

The model is open source. Baidu released the Unlimited-OCR-2 weights under the MIT licence, which allows commercial use, so running it on your own GPU has no licence cost. Calling it through the apimodels.app API is paid by usage: you pay for a hosted model instead of running and maintaining a GPU server.

What languages does Unlimited-OCR-2 support?

Baidu has not published a language list, so we tested it. Pages in Simplified and Traditional Chinese, Japanese, Korean, Arabic, Thai, Russian, Vietnamese, German, Spanish and Hindi all came back under 2% character error, with an average of 0.26%, and English documents did as well. Vertical text was weaker, at 2.5% and 4.4% on our two vertical pages. We did not test Hebrew or Turkish.

Does Unlimited OCR work on handwriting?

English handwriting reads well; Chinese handwriting needs proofreading. On English lines from the IAM dataset the median character error was 2.3%, with half the lines under 2%, and 4.1% on full pages. On Chinese lines from CASIA-HWDB2 it was 11.1%, and 12.6% on full pages, about one wrong character in nine. Use it to draft a transcription and have a person check it.

Can Unlimited-OCR-2 read scanned PDFs?

Yes. Our API takes a PDF of up to 20 pages per request and reads it page by page; pick pages with the pages field. On 50 scanned forms from FUNSD it found 84% of the words (word F1 0.86), and book and exam pages from OmniDocBench came back under 2% median error. Complex tables are the weak spot: the hardest table group scored a structure similarity (TEDS) of 0.77, so check merged cells.

Does Unlimited-OCR-2 make up text?

It can fail in ways that look like it, and we measured two. Run alone, it repeated a line until the length limit on 17 of 625 pages, and it returned an image placeholder instead of text for most single-line images. Our API stops loops and retries, and pads narrow images, which fixed 13 of the 17 loops and nearly all the single lines; the other 4 looping pages are returned up to where the loop began. Check outputs that are unusually long or short.

What hardware do I need to run Unlimited OCR locally?

A data-centre GPU is the comfortable option. Baidu tested it on an 80 GB A800, the weights alone are 6.7 GB, and a GitHub issue reports out-of-memory errors on 12 GB cards with SGLang. If you would rather not run a GPU, the apimodels.app API serves the same model at $0.001 a page, with PDFs of up to 20 pages per request.

Unlimited OCR vs PaddleOCR: which should I use?

For single printed pages that you host yourself, PaddleOCR-VL-1.6 has the higher published score: 96.33 on OmniDocBench v1.6 against 94.02, from a 0.9B model instead of 3.3B. Unlimited-OCR-2 is built for long documents and tables that run across pages when self-hosted. If you want an API without running a GPU, Unlimited-OCR-2 is the one we serve on apimodels.app, at $0.001 a page with the rotation and retry handling described above.

What is the best OCR for receipts and invoices?

Use an OCR model to read the text, then check the numbers. On 100 real receipt photos from CORD, Unlimited-OCR-2 found 88.7% of the fields and got the total right on 83; 4 photos returned no text. For invoices and bank statements, pass the Markdown to a language model to pull out the fields you need, and compare the total with the line items before booking anything.

Does Unlimited-OCR-2 return word-level bounding boxes?

No. Each block, such as a paragraph, table, formula or title, comes with its type and a bounding box, but individual words do not. If you need word positions for highlighting or redaction, use an OCR engine that returns word boxes, or match the text back to its block area yourself.

Related

등재된 곳
APIMODELS on Product HuntAPIMODELS featured on ToolifyAPIMODELS featured on There's An AI For That