# Mathpix OCR API (slim)

> Mathpix's OCR API converts images, PDFs and Office files with maths, chemistry, tables and handwriting into LaTeX, Markdown, DOCX, HTML or JSON. It adds a Files API for bulk jobs, a Python SDK and a command-line client.

- Full: https://www.anchorterminal.com/tools/mathpix.md (~6,800 tokens) · this version ~1,780 tokens · JSON https://www.anchorterminal.com/tools/mathpix.json · canonical https://www.anchorterminal.com/tools/mathpix
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-11-29 · pricing https://www.anchorterminal.com/tools/mathpix#pricing · reviews https://www.anchorterminal.com/tools/mathpix#reviews
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

**C · 61.7/100 · rank #809 of 1738 · #13 in Document parsing & extraction · not agent-ready · confidence medium**


Assessment: Mathpix's OCR API has a public status page showing no incidents from September to November 2026, documented per-key limits, short-lived app tokens and a SOC 2 Type 2 claim. An API key needs a card and a $19.99 setup fee, there is no free API tier, and most v3 errors return HTTP 200.

## Facts

- Kind: HTTP API · vendor: Mathpix · category: Document parsing & extraction · legal entity: Mathpix, Inc. · provenance 65/100
- Endpoint: `https://api.mathpix.com` (HTTP)
- Auth: API key · pricing: Pay per use · x402: no · licence: Closed service under the Mathpix Terms of Service (Mathpix, Inc., a Delaware corporation). The Python SDK is MIT.
- Benchmark probes: not run yet, so Performance is pending
- Live, from our pollers (not part of the score): down at 2026-11-30 00:11 UTC · uptime 30 days 0.0% (13 probes) · p50 n/a · p95 n/a over 24 hours
- Vendor status page: not read, no machine-readable status found (2026-11-29 23:17 UTC)
- Surface graded: The public OCR API at api.mathpix.com (v3/text, v3/pdf, v3/converter, v3/strokes and files/v1), the Python SDK and the mpx CLI, read from the vendor's docs, pricing, security, terms and status pages and a shallow clone of the mpxpy repository on 29 November 2026. No key was made and no call was sent. The Snip apps and Private Cloud OCR are separate products and were not graded.
- Endpoints: v3/text for one image (synchronous or async with tags), v3/pdf for PDF, EPUB, DOCX and PPTX documents (async, with poll or webhook), v3/converter for Mathpix Markdown into DOCX, LaTeX, HTML, PDF and PPTX, v3/strokes for digital ink, files/v1 for bulk jobs, v3/ocr-results and v3/pdf-results for results, and v3/ocr-usage for hourly usage.
- Outputs: LaTeX, Markdown, MathML, AsciiMath, DOCX, HTML, PPTX, XLSX and line-level JSON with confidence scores. Chemistry diagrams and triangles are recognised, and text covers printed and handwritten pages.
- Regions: api.mathpix.com is served from US East 1 (N. Virginia). eu.api.mathpix.com processes and stores everything derived from a document in the EU, and EU results are queryable only there.
- Limits: Per key, 200 synchronous requests a minute and 20,000 PDF pages a month by default. Requests with async or a callback are not limited per minute. Raises are self-service in the console's Requests tab, and lowering a limit needs an email to support.
- Errors: v3 endpoints return HTTP 200 with error and error_info fields, except http_unauthorized (401) and http_max_requests (429). Files API errors use real status codes. error_info.id is the stable identifier.
- Data: Images are kept for quality assurance unless Improve Mathpix is turned off on the key or improve_mathpix is false in the request. With retention off, documents are deleted after processing and results cannot be looked up later.
- Prices: Image OCR (v3/text) $0.002 per image; PDF pages (v3/pdf) $5 per 1,000 pages; Files API pages $1.50 per 1,000 pages; Digital ink (v3/strokes) $0.002 per call; API activation $19.99 per transaction

- Scores: Reliability 85, Performance not tested, Schema & documentation 55, Agent ergonomics 61, Security & auth 58, Payments & pricing 30, Task success not tested, Maintenance & community 79, Transparency & trust 57
- Why: Reliability, A public Instatus page lists the OCR API in three regions and Snip (20). · Schema & documentation, No OpenAPI file was found (0). · Agent ergonomics, Output is sized by choosing formats, line data, page subsets and streaming of finished pages (18 of 25). · Security & auth, A revocable app_id and app_key pair per key, with a disable switch for a leaked key, per-key limits and five-minute app tokens for client ap… · Payments & pricing, No x402, MPP or L402 (0). · Maintenance & community, The changelog's newest entry is 3 November 2026 (30). · Transparency & trust, A closed service under terms last updated on 1 March 2024, clear on fees and refunds, and the SDK is MIT (13 of 30).
- Sources: 15, open questions: 6, both in the full twin
- Capabilities: docs.ocr, docs.parse, docs.tables
- JSON: https://www.anchorterminal.com/api/v1/tools/mathpix.json · card, about 200 tokens, for choosing between listings: https://www.anchorterminal.com/tools/mathpix.card.md
- Its vendor verifies the listing with `verify_listing` or `POST https://www.anchorterminal.com/api/v1/verify` (the full twin says how); no effect on the grade.
- Support: support@mathpix.com; security@mathpix.com; https://docs.mathpix.com; https://status.mathpix.com; more in the full twin

## Before you call it

1. Send app_id and app_key headers from a server. For a client app, mint a short-lived token from v3/app-tokens instead.
2. Check error_info.id in the response body. Most v3 errors return HTTP 200, and only http_unauthorized and http_max_requests use status codes.
3. If error_info.id is http_max_requests, wait and retry with exponential backoff. Send bulk image work to v3/text with async and tags, which has no per-minute limit.
4. Set Improve Mathpix off on the key for sensitive files. The key setting overrides the improve_mathpix flag in a request.
5. Ask for a zip output such as mmd.zip when you need page images after 30 days. Image URLs in the Markdown expire.

## Connect

```bash
pip install mpxpy
```

```bash
curl -X POST https://api.mathpix.com/v3/text -H 'app_id: APP_ID' -H 'app_key: APP_KEY' -H 'Content-Type: application/json' --data '{"src": "https://mathpix-ocr-examples.s3.amazonaws.com/cases_hw.jpg"}'
```
Full config and headless snippets are in the full page. Through letme (picks today, calling later): https://letme.dev/mathpix

## Similar tools

| Tool | Grade | Score | Shared capabilities | Slim |
| --- | --- | --- | --- | --- |
| Amazon Textract | BB | 76 | docs.parse, docs.ocr, docs.tables | https://www.anchorterminal.com/tools/amazon-textract.min.md |
| Google Cloud Document AI | BB | 73.4 | docs.parse, docs.ocr, docs.tables | https://www.anchorterminal.com/tools/google-cloud-document-ai.min.md |
| LandingAI Agentic Document Extraction | BB | 71.5 | docs.parse, docs.tables, docs.ocr | https://www.anchorterminal.com/tools/landingai-agentic-document-extraction.min.md |
| Nemotron 3.5 Parse | B | 69 | docs.parse, docs.ocr, docs.tables | https://www.anchorterminal.com/tools/nemotron-3-5-parse.min.md |
| Datalab | B | 68.1 | docs.parse, docs.ocr, docs.tables | https://www.anchorterminal.com/tools/datalab.min.md |


## Panel reviews (0, desk reviews from public material, no calls made)

