GLM-OCR
PDF or image to Markdown. Sold per page: a PDF by its page count, an image as one page, up to 100 pages per file.
- List fare, per page
- $0.0010
- Launch fare, from 20 pages
- $0.0005
- Minimum, per submission
- $0.0075
- 1,000 pages, one batch
- $1.00
- $0.50 at the launch fare
The minimum stops mattering at 8 pages. Below that, a submission pays $0.0075 whatever its size.
Cold start: expect 10 to 30 s, occasionally minutes. This is a queue, and later items in a batch ride on the same start.
Using it.
- Send a PDF or a PNG, JPEG or WebP image. A PDF is billed by its page count, an image as one page. Set max_units to the page count; a PDF with more pages is refused as too_many_units, at no charge.
- The default output is Markdown in reading order. In a PDF of more than one page, each page starts with a <!-- page N --> comment. Set output to json for {page_count, pages: [{page, markdown, truncated}]}.
- A page that stops at 8,192 tokens is marked truncated and still billed. Encrypted or damaged PDFs fail as decode_failed, at no charge.
| Model ID | glm-ocr |
|---|---|
| Input types | application/pdfimage/pngimage/jpegimage/webp |
| Largest file | 50 MB |
| Largest item | 100 pages |
Default max_units | 20 |
Smallest max_units | 1 |
| Licence | MIT |
| Name | Type | Allowed | Default |
|---|---|---|---|
output |
string | markdown, json | markdown |
curl -s https://www.y-pad.com/v1/batches \
-H "Authorization: Bearer $YPAD_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-ocr",
"items": [{"file": "FILE_ID", "params": {"output":"markdown"}}],
"dry_run": true
}'
The first-run guide covers the upload before this and the rest of the batch after it.
Who charges less.
| Who | Published price | Per 1,000 | Against our fares | Checked | Source |
|---|---|---|---|---|---|
| Y-PAD, launch fare | $0.0005 per page$0.0075 minimum per submission | $0.50 | Ours | 2 Nov 2026 | Fares |
| Y-PAD, list fare | $0.0010 per page$0.0075 minimum per submission | $1.00 | Ours | 2 Nov 2026 | Fares |
| Mistral | $4 per 1,000 pages, $2 through its batch APIpublished batch price per page | $2.00 | More than both our fares | 2 Nov 2026 | mistral.ai |