# /ocr evidence

The page sells GLM-OCR (`zai-org/GLM-OCR`, default profile) on SIE Serverless
for reading photos of receipts and handwriting. Every figure on it comes from
the public Photo372 study, one recorded API call on a Photo24 receipt, and the
site's live price list. The build recomputes the claims from those files and
fails if one stops holding.

## Photo372: the study behind the quality bars

[Photo372 results](https://huggingface.co/datasets/superlinked/sie-task-evidence/tree/51bf2b5ce5d00e33f67fbb2f72fbc65181a69f25/ocr-photo372-results/2026-10-11),
recorded 11 October 2026, under a
[preregistration](https://huggingface.co/datasets/superlinked/sie-task-evidence/tree/d03e04fd2f7f768afcc753b952fb9c9abc47748b/ocr-photo372-prereg/2026-10-11)
published before any study request. The frozen
[source and gold manifest](https://huggingface.co/datasets/superlinked/sie-task-evidence/tree/6daad480d988ec1596a51ba61462be0e013028f5/ocr-photo372-results/2026-10-11/source-manifest)
the scorer and analysis used, `ocr-photo372-source-v1.json`, lists every photo's
source, image and annotation checksums, gold lines and critical values. Its
SHA-256 matches the hash the preregistration's checksum inventory recorded for
it, so anyone can rerun the scorer on the published replies.

- **Photos (372):** every receipt photo in the CORD-v2 test and validation
  splits (200; NAVER Clova, CC BY 4.0) and every handwritten page in the GNHK
  test split (172; GoodNotes, CC BY 4.0). No photo was filtered on content or
  difficulty. Every model received the same JPEG bytes.
- **A photo is read correctly** when every line of the publisher's ground truth
  appears in the reply and every amount, quantity, date, identifier, phone
  number and name is found as written on its own line. A deterministic scorer
  applies the rule the same way to every model; it agreed with the blind AI
  judge of the earlier 24-photo study on 164 of 168 decisions and was frozen
  before any Photo372 output. Empty replies, refusals and errors fail.
- **Output allowance:** 12,288 tokens for every API model. GLM-OCR ran with its
  default 8,192-token allowance, so no rival had less room than the featured
  model.

| Model | Setting | Photos read correctly | Receipts / 200 | Handwriting / 172 | USD per 1,000 photos |
| --- | --- | ---: | ---: | ---: | ---: |
| **GLM-OCR on SIE** | default profile | 264 (71.0%) | 174 | 90 | $0.25 |
| Claude Sonnet 5.5 | thinking off | 290 (78.0%) | 181 | 109 | $6.40 |
| GPT-6.1 Sol | reasoning low | 291 (78.2%) | 183 | 108 | $6.64 |
| Claude Haiku 5.5 | thinking disabled | 269 (72.3%) | 170 | 99 | $0.31 |
| LightOnOCR-3 on SIE | default profile | 256 (68.8%) | 164 | 92 | $0.54 |
| GPT-6 Luna | reasoning max | 246 (66.1%) | 162 | 84 | $2.39 |
| GPT-6 Luna | reasoning none | 239 (64.2%) | 162 | 77 | $0.32 |
| Mistral OCR 4.1 | synchronous API defaults | 231 (62.1%) | 136 | 95 | $4.00 |

GLM-OCR paired against each model on the same photos (95% percentile
bootstrap, 10,000 resamples within source-split strata; exact McNemar test;
no multiplicity correction):

| Rival | Only GLM-OCR right | Only rival right | GLM-OCR minus rival | McNemar p |
| --- | ---: | ---: | --- | ---: |
| Mistral OCR 4.1 | 63 | 30 | +8.9 points (+4.0 to +13.7) | 0.0008 |
| GPT-6 Luna, reasoning none | 45 | 20 | +6.7 points (+2.7 to +10.8) | 0.003 |
| GPT-6 Luna, reasoning max | 44 | 26 | +4.8 points (+0.5 to +9.1) | 0.04 |
| LightOnOCR-3 on SIE | 34 | 26 | +2.2 points (-1.9 to +6.2) | 0.37 |
| Claude Haiku 5.5 | 22 | 27 | -1.3 points (-5.1 to +2.2) | 0.57 |
| Claude Sonnet 5.5 | 14 | 40 | -7.0 points (-10.8 to -3.2) | 0.0005 |
| GPT-6.1 Sol, reasoning low | 10 | 37 | -7.3 points (-10.8 to -3.8) | 0.0001 |

The preregistered primary comparison was LightOnOCR-3 against each arm; the
same analysis with GLM-OCR in the lead was registered as secondary. The page
uses those descriptive counts for the model it sells; it does not turn the
secondary comparison into a tested superiority claim. The study's own
GLM-primary summary and a recomputation from the per-photo outcomes, in the
source manifest's photo order and strata, give identical counts and
intervals. The vendored per-photo outcomes are in
`src/data/reference/tasks/ocr-photo372.json`, and the site's tests recount
every pass total and the paired McNemar values from them.

What the page shows from this study:

- **Headline.** “93% cheaper” compares GLM-OCR's Serverless price ($0.25
  per 1,000 images) with Mistral OCR 4.1's synchronous list price ($4.00
  per 1,000 pages). The 93.75% saving is rounded down. Both are real-time;
  Mistral's half-price batch tier is outside this comparison. The headline
  makes no quality-superiority claim.
- **Quality and cost bars.** The same six models appear in both panels.
  GPT-6 Luna appears at the exact recorded `max` reasoning setting, its
  higher score; 52 of its 372 replies were empty after exhausting the
  12,288-token allowance and count as failures. The reasoning-none arm and the second SIE model
  remain in this source record. GLM-OCR's cost rounds up to the nearest cent;
  rival costs round down. The panels retain Sonnet and Sol's higher quality
  and Haiku's low price.
- **Not claimed:** latency. SIE was timed inside its GPU container and the
  APIs over the public internet, so the times are not comparable. A
  misassociation-only sensitivity check (counting replies whose values all
  appear but on the wrong line as correct) keeps GLM-OCR ahead of Mistral
  OCR 4.1, 280 to 264.

## Prices

- **GLM-OCR on SIE Serverless:** SKU `extract:zai-org/GLM-OCR:default:images:us`
  in the [commercial price list](https://control.superlinked.com/v1/pricing), USD 1/4000
  per consumed image: $0.25 per 1,000 photos, $250 per million. The page reads
  the published Serverless row from the price book; a missing row fails the build.
- **Rivals:** each model's real-time list price applied to its own recorded
  token usage on the 372 photos, retrieved 11 October 2026:
  [OpenAI](https://developers.openai.com/api/docs/pricing) (cache writes at the
  cache-write rate), [Anthropic](https://platform.claude.com/docs/en/about-claude/pricing)
  and [Mistral OCR 4.1](https://docs.mistral.ai/models/ocr-4-1). These are
  usage-priced estimates, not invoices.

## Hero and API example

The hero and the API request use one receipt photo from CORD-v2 (train split,
row 11), the input of the earlier 24-photo study. The served file
`receipt.jpg` is the exact submitted JPEG (864 × 1296), and a site test checks
its SHA-256 against the recording. The recorded GLM-OCR call ran on the
released SIE v0.10.0 server image with the default profile; its request,
response and decision are in the
[24-photo native results](https://huggingface.co/datasets/superlinked/sie-task-evidence/tree/45da4585013ca214faf054950f08a04f9df7e330/ocr-photo24-native-results/2026-10-10).
That request also sent the profile's defaults (instruction "Text Recognition:",
8,192 tokens, one beam) and an item label; the server applies the same
defaults when they are left out, so the page shows the photo alone. The API
output is the complete recorded reply. GLM-OCR's default profile decodes
greedily, so the same photo returns the same text.

The hero crop, `receipt-0011-rows.webp`, is the region x=56, y=553, 780 × 132
pixels of that JPEG: three item rows. A CSS contrast lift makes the faded
thermal print legible; neither the crop nor the filter is a model input.

## Pain cases

- **GPT-6 Luna, maximum reasoning, same receipt.** Five fresh runs on the same
  JPEG with the study's prompt and allowance. In three, Luna read
  "Nila Bakar/Goreng 27,500" as 77.500 and "Sop Gurame 87.000" as
  "Sop Durian 37.000"; one more run kept 87.000 but renamed the dish; one run
  was correct. The card shows the first run, verbatim. Records are in the
  results' `hero/gpt-6-luna-max/`. GPT-6 Luna at reasoning none made the same
  error in 5 of 5 runs; GPT-6.1 Sol, Claude Sonnet 5.5 and Claude Haiku 5.5
  read 87.000 in 5 of 5.
- **Mistral OCR 4.1, CORD-v2 test row 98.** A clear restaurant receipt. Mistral
  OCR 4.1 returned the item names and labels but only two of the seven printed
  amounts (79,000 and the 250,690 total); 77,000, 59,000, 215,000, 12,900 and
  22,790 are absent from the reply. GLM-OCR passed the same photo with every
  amount on its line. The card shows a contiguous excerpt of Mistral's reply
  from "79,000" to "250,690", one Markdown paragraph per line; the full reply
  also contains the menu card beside the receipt. The crop,
  `cord-test-0098-amounts.webp`, is the region x=560, y=1172, 920 × 478 pixels
  of the study's input JPEG, scaled to 720 pixels wide.
  It was chosen among the photos GLM-OCR passed and Mistral OCR 4.1 failed
  because the amounts are missing outright, not printed on another line, and
  the print is clear.

Both papers were read in full on 11 October 2026; the headlines restate their
findings:

- [ReceiptBench](https://arxiv.org/abs/2605.22413) (Zhejiang University, first
  posted 21 May 2026): 10,656 real receipt images. Under "Hallucination for
  Arithmetic Consistency" the authors report that, to force the line items to
  match the total, models "occasionally alter the price of a line item or
  hallucinate a non-existent 'Tax' item".
- [OmniHandwritingOCR](https://arxiv.org/abs/2608.18586) (East China Normal
  University, first posted 19 August 2026, CIKM 2026): 13 systems (7
  multimodal LLMs, 6 OCR models) on 77,572 handwriting images. The authors
  write that "models may correct, complete, or fabricate content rather than
  transcribe what is visually present".

## Run locally and switch

Run locally starts the released `sglang-vision-extract` server image on an
NVIDIA GPU, the image the public SIE README lists for GLM-OCR's default
profile. SIE's Apple Silicon path serves text generation only, so no Mac
command is shown. The switch examples show only the import, client, model and
call that change from Mistral OCR, OpenAI and Anthropic.

## Licences

CORD-v2 is published by [NAVER Clova](https://huggingface.co/datasets/naver-clova-ix/cord-v2)
and GNHK by [GoodNotes](https://github.com/GoodNotes/GNHK-dataset), both
CC BY 4.0. The study's input JPEGs (orientation fixed, longest edge 2,048
pixels, re-encoded) and the page's crops are modifications. Publisher blurs
stay intact. Credits and licence links sit beside every photo on the page.

## Earlier evidence

- The [24-photo comparison](https://huggingface.co/datasets/superlinked/sie-task-evidence/tree/45da4585013ca214faf054950f08a04f9df7e330/ocr-photo24-native-results/2026-10-10)
  of 8 to 10 October 2026 (12 CORD receipts, 12 GNHK pages, blind AI judge,
  including GPT-5.6 Terra) is superseded by Photo372 for every quality and
  cost claim. Its LightOnOCR-3 token mix and LightOnOCR-3 results remain
  public, and the
  [public photo transcription example](https://github.com/superlinked/sie/tree/2884f7333ead1ad2a1a1ba4498562b3ce8de3d40/examples/photo-transcription)
  recounts its saved decisions. Its displayed GPT-6 Luna reasoning-none errors are no longer shown,
  because Luna at higher reasoning and GPT-6.1 Sol read those lines correctly.
- The earlier 96-photo annotation-word comparison is archived in the
  [GLM receipts and handwriting packet](https://huggingface.co/datasets/superlinked/sie-task-evidence/tree/b30b600797ecf332d1c4c01c0bc9c0bb7dd349b2/ocr-glm-receipts-handwriting),
  run on [public SIE source](https://github.com/superlinked/sie/tree/7a56b3c6bbdeb2408f9a4392a567175acd16c93e)
  with the [GLM-OCR checkpoint](https://huggingface.co/zai-org/GLM-OCR/tree/ca5d8b3e287e52589e37c28385d9655ee4372f9d)
  the page serves. Retained asset `cord-validation-0000.webp` belongs to that
  archive. The page does not use its GPT-5.4 mini comparison, annotation-word
  metric or switching claim.
