Head to head · OCR · October 2026 research run

Mathpix OCR API vs OpenDocRouter

OpenDocRouter scores 64.7 (B) on agent readiness against Mathpix OCR API's 61.7 (C), and leads in 3 of 7 scored categories. Mathpix OCR API leads on reliability, security & auth and transparency & trust. Both do ocr.

Best document parsing, OCR and extraction APIs for AI agents · All 253 documents comparisons

Which one, for what

Mathpix OCR API C

Best for Converting scientific and technical documents, equation images, tables and handwriting into LaTeX or Markdown at a few tenths of a cent per image, for teams that accept a card and a setup fee.

Ahead on

  • Reliability, 85 against 68
  • Security & auth, 58 against 41
  • Transparency & trust, 57 against 49

Watch for

An API key needs a card and a one-time $19.99 setup fee, and no free API tier was found

OpenDocRouter B

Best for Agents that need page-level markdown from PDFs and images and want to choose or compare models on price and published benchmark scores with one key.

Ahead on

  • Schema & documentation, 85 against 55
  • Agent ergonomics, 84 against 61
  • Payments & pricing, 45 against 30

Watch for

Launched on 7 October 2026. The domain was registered on 23 September 2026 and both SDKs have one release, 1.0.0

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Schema & documentation OpenDocRouter +30

Mathpix OCR API 55

No OpenAPI file was found (0). mathpix.com/llms.txt returned 404 and docs.mathpix.com was not checked for one (0). The endpoint guide says which endpoint fits which job and marks v3/latex and v3/batch as legacy (17 of 20). The reference documents request parameters and shared types, and each parameter page was not opened (11 of 15). Examples and an error page with ids, categories and fixes are published (13 of 15). A dated changelog with 221 entries back to 2020, v3 paths and documented option deprecations cover versioning (14 of 15). Total 55.

OpenDocRouter 85

Public OpenAPI 3.1 document at /v1/openapi.json covering all six operations (25). No llms.txt (404), but the docs page is served as Markdown at /docs.md (10). The parse, get, delete and upload operations say when to use sync or async, when the cache is needed and what is charged. The credits and models operations have no description, per the 8 October reading of the OpenAPI document, which wasn't re-read because it sits on the API path (16 of 20). mode and mime_type are enums, expand has a pattern and required fields are marked, while pages is a free string and model isn't enumerated (12 of 15). Examples in curl, Python and TypeScript, a table of 15 request errors and a table of 12 page errors (14 of 15). Models carry dated recipe versions and responses a price_version, and the SDKs have changelogs on GitHub, but there is no changelog for the service (8 of 15).

Agent ergonomics OpenDocRouter +23

Mathpix OCR API 61

Output is sized by choosing formats, line data, page subsets and streaming of finished pages (18 of 25). Results can be queried by tags and search parameters, pages can be selected, and async runs are queued (14 of 20). Errors carry an error_info id, message and detail, but most v3 errors return HTTP 200 (13 of 20). Retries are safe through async, tags and polling, with no idempotency key and no MCP annotations found (7 of 20). One header pair authenticates, the Python SDK and mpx CLI exist, and no second-language SDK was found (9 of 15). Total 61.

OpenDocRouter 84

API reading. pages selects pages, markdown and layout are opt-in on GET through expand, and a poll returns no document text without it (22 of 25). Results over 4 MB come in parts with next_cursor, and pages and expand size the output. There is no endpoint to list past requests (16 of 20). Errors have stable codes, 402 includes required_usd and available_usd, 429 and 503 include Retry-After and every response has X-Request-Id (19 of 20). No idempotency key. cache: true returns stored pages free on a repeat and failed pages can be resent alone, but a sync request without the cache is charged again if resent (12 of 20). Two required fields, and official SDKs in Python and TypeScript (15).

Reliability Mathpix OCR API +17

Mathpix OCR API 85

A public Instatus page lists the OCR API in three regions and Snip (20). Its history page shows 100.0% uptime for September, October and November 2026 and no notices in 7 days, so the record is clean (30). Limits are published with numbers, 200 synchronous requests a minute and 20,000 pages a month per key (15). The error docs mark http_max_requests (429) as retryable with exponential backoff, and no Retry-After header or idempotency guidance was found (10 of 15). The product page's 99.99% uptime is a marketing figure and no SLA for a paid tier was found (0). The v3 endpoints are generally available (10). Total 85.

OpenDocRouter 68

Read with the hosted lines. The site still links no status page. LlamaIndex's Statuspage at llamaindex.statuspage.io lists LlamaParse Docs, API and UI components and none for OpenDocRouter. A vendor status page with no component for the product takes 15 in this run, as sentry-mcp and honeycomb-mcp do (15). Its history shows no incident in October or November 2026 and none naming OpenDocRouter. The service launched on 7 October 2026, so the record covers 28 days, read as a short record (15). Limits are published with numbers, 300 parse calls and 60 polls a minute and 10 requests running at once per account (15). 429 and 503 carry Retry-After per the docs, each page error is marked as worth retrying or not, and cache: true makes a repeated request free. There is no idempotency key, and without the cache a resend is charged again. Kept at 13 as partly met (13). No SLA found, and the terms allow changes with or without notice (0). The API is version 1 with 1.0.0 SDKs and no beta or preview label (10). 15+15+15+13+0+10 = 68.

Security & auth Mathpix OCR API +17

Mathpix OCR API 58

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 apps, and no scopes (22 of 30). Members have roles and keys carry limits, but no read-only or per-endpoint scopes were found (8 of 20). OCR output is untrusted text from user documents and no injection guidance was found (3 of 15). A usage tab with alerts, a results tab and hourly usage by key give per-call visibility (11 of 15). SOC 2 Type 2, a yearly third-party penetration test and a security contact are stated, and no bug bounty or security.txt was found (14 of 20). Total 58.

OpenDocRouter 41

Bearer API keys created in the dashboard, and the terms say a key can be revoked. No scopes, expiry or rotation were found, and the dashboard needs a sign-in we didn't have (20 of 30). No read-only or restricted key found. One key can spend credit and read cached results, with spending bounded by the prepaid balance (6 of 20). The API returns untrusted document text and no prompt-injection guidance was found. Document URLs must be public HTTPS on the default port (0 of 15). GET /v1/parse/{id} shows what each request did and cost, and the docs mention a usage log keyed by X-Request-Id. No audit log found (8 of 15). SECURITY.md in both SDK repositories asks for private reports to security@runllama.ai, covering the SDK and the APIs it calls, with no acknowledgement time, which this run scores 7. No security.txt per the 8 October check, no advisories in OSV, and LlamaIndex's SOC 2 statement (read for llamaparse on 4 November) names the LlamaParse Platform, so no certification is confirmed for this service (7). 20+6+0+8+7 = 41.

Payments & pricing OpenDocRouter +15

Mathpix OCR API 30

No x402, MPP or L402 (0). Per-image and per-page prices are public without a login (30). A card and a $19.99 non-refundable setup fee come before the first key, and the $29 test credit follows payment, so there is no card-free trial for the API (0). Access needs a browser sign-up and a card, and no programmatic route was found (0). Total 30.

OpenDocRouter 45

No x402, MPP or L402 (0). Token prices for every model, an average and a maximum charge per page, the layout price and the 5% top-up fee are public on the models page and in the docs (20). New accounts get $5 of promotional credit. Whether a card is needed at sign-up isn't stated and the dashboard needs a sign-in (10 of 20, our call until that's confirmed). A person signs in through a browser to create a key (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.

Transparency & trust Mathpix OCR API +8

Mathpix OCR API 57

A closed service under terms last updated on 1 March 2024, clear on fees and refunds, and the SDK is MIT (13 of 30). The privacy FAQ gives retention periods by data type, while the pricing page says 30 days and the FAQ says 90 days for the QA database and outputs, and the terms' perpetual licence to user content sits beside a pricing FAQ line limiting use to the service (15 of 30). Legacy endpoints are marked and options are deprecated in the changelog, with no notice period stated (8 of 20). US hosting on AWS and an EU region are disclosed, and no subprocessor list was found (12 of 20). Total 48.

OpenDocRouter 49

Closed service under the LlamaIndex terms with an OpenDocRouter addendum, SDKs MIT (15). The docs, the OpenAPI document and the addendum agree that nothing is stored without cache: true, cached results are encrypted and kept 24 hours, uploads are deleted once read or after an hour, and request records are kept for billing. The terms say LlamaIndex trains no models on user content. No DPA or retention period for request records was found, and the privacy notice dates from March 2024 and doesn't mention the service (22 of 30). No deprecation policy. Recipe and price versions are dated, and the terms allow changes and price changes without notice (3 of 20). The addendum names Anthropic, Google and OpenAI as examples of model providers that receive pages, leaves its infrastructure providers unnamed and gives no data location beyond processing in the United States (5 of 20).

Score by category

CategoryWeightMathpix OCR APIOpenDocRouterEdge
Reliability16%8568Mathpix OCR API +17
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%5585OpenDocRouter +30
Agent ergonomics13%6184OpenDocRouter +23
Security & auth14%5841Mathpix OCR API +17
Payments & pricing10%3045OpenDocRouter +15
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7975Mathpix OCR API +4
Transparency & trust7%5749Mathpix OCR API +8
Negative events≤1500
TotalC 61.7/100B 64.7/100

Facts side by side

FactMathpix OCR APIOpenDocRouter
KindHTTP APIHTTP API
VendorMathpixLlamaIndex
Hosted endpointhttps://api.mathpix.comhttps://www.opendocrouter.ai/v1
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingPay per usePay per use
Price for ocr$0.002 per image$4 per 1,000 pages
x402nono
LicenceClosed service under the Mathpix Terms of Service (Mathpix, Inc., a Delaware corporation). The Python SDK is MIT.Proprietary service under the LlamaIndex Terms of Service with an OpenDocRouter addendum. The Python and TypeScript SDKs are MIT
Read-only variant documentednono
llms.txtnono
Last release2026-11-032026-10-07
Terms last updatednot read yet2026-10-07
Privacy policy last updatednot read yet2024-03-30
Customer content may train modelsnot read yetnot found in the text
Terms restrict automated accessnot read yetnot found in the text
Terms restrict benchmarkingnot read yetyes
Terms or service can change without noticenot read yetyes
Arbitration or class-action waivernot read yetyes

How the scores have moved

Verdicts

Mathpix OCR API

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.

OpenDocRouter

One endpoint reaches 19 parsing models, each with a dated recipe version, a published token price and a ParseBench score, and failed pages aren't charged. The service launched on 7 October 2026, so it has no status component, SLA or changelog of its own, and no key scopes were found in the reviewed documentation.

Before you call either

Mathpix OCR API

  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.

OpenDocRouter

  1. Read the models page first and choose a model by its per-page average and ParseBench scores. Send its id as model
  2. Send cache: true on any request you might repeat. Without it the markdown exists only in the POST response and a resend is charged as a new request
  3. Raise the SDK timeout above its 60-second default for sync parses. Pages can run for 270 seconds and the SDKs retry a timed-out request twice
  4. Check every page's status before using its markdown. A 200 can be partial, and failed pages can be resent alone with pages
  5. Treat 402 as final until credit is added. The hold is the model's maximum charge per page times the page count, and GET /v1/credits shows available_usd

Questions

Which is better for AI agents, Mathpix OCR API or OpenDocRouter?

OpenDocRouter scores 64.7 (B) on agent readiness against Mathpix OCR API's 61.7 (C), and leads in 3 of 7 scored categories. Mathpix OCR API leads on reliability, security & auth and transparency & trust.

Do Mathpix OCR API and OpenDocRouter need an API key?

Both need an API key.

Can an agent call Mathpix OCR API and OpenDocRouter without installing anything?

Yes. Mathpix OCR API has a hosted endpoint at https://api.mathpix.com and OpenDocRouter at https://www.opendocrouter.ai/v1.

Other comparisons with Mathpix OCR API or OpenDocRouter

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.