Head to head · Document parsing · October 2026 research run

Azure Document Intelligence vs Mathpix OCR API

Azure Document Intelligence scores 66.1 (B) on agent readiness against Mathpix OCR API's 61.7 (C), and leads in 4 of 7 scored categories. Mathpix OCR API leads on maintenance & community. Both do document parsing.

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

Which one, for what

Azure Document Intelligence B

Best for Teams already on Azure that want OCR, layout to Markdown and prebuilt invoice, receipt, identity and tax models with Entra ID and regional processing.

Ahead on

  • Schema & documentation, 86 against 55
  • Security & auth, 71 against 58
  • Transparency & trust, 79 against 57

Watch for

Every analysis is asynchronous. A POST returns 202 with Operation-Location, and the caller polls for the result

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

  • Maintenance & community, 79 against 25

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

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

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.

Maintenance & community Mathpix OCR API +54

Azure Document Intelligence 25

Read as a closed service with official SDKs, from the service's own models as this run reads other Azure and AWS listings. The REST specification in Azure/azure-rest-api-specs has had no API or description change since 3 August, only tooling (TypeSpec suppressions on 3 and 13 August, the folder move of 28 September, linter rulesets on 14 October). The what's new page's newest entry is the March 2026 tax model update, more than 180 days back. The newest SDK releases, Java 1.0.10 on 18 August and 1.0.11 on 6 October 2026, only raise azure-core and azure-core-http-netty. Dependency-only releases count half on the 90-day line and can't set the recency line, as azure-translator, so the 8 October departure that gave 15 on the Java date is withdrawn (0 of 30). Two dependency-only releases at half each, and no service change, in 90 days (0 of 20). A what's new page with one entry in 2026, Microsoft Q&A and the SDK issue trackers on GitHub, which we did not read (8 of 15). Official SDKs in four languages target the current GA API, but Python (1.0.2, 26 March 2025), JavaScript (1.1.0, 8 May 2025) and .NET (1.0.0, 16 December 2024) have had no release since (12 of 15). The Python package declares Python 3.8 to 3.12 and is built in the azure-sdk pipelines, whose results we did not check (5 of 10). 0+0+8+12+5 = 25.

Mathpix OCR API 79

The changelog's newest entry is 3 November 2026 (30). It has five dated entries since 31 August 2026 (20). Support runs by email and the console, limit raises are self-service, and no community channel was found, so 8 of 15. The Python SDK and mpx CLI are current, with mpxpy 0.0.23 on 22 September 2026 (15). The SDK repository has test and release workflows and an MIT licence, and passing runs were not read because github.com's pages refuse our reader (6 of 10). Total 79.

Schema & documentation Azure Document Intelligence +31

Azure Document Intelligence 86

A public OpenAPI 2.0 document for 2024-11-30 in Azure/azure-rest-api-specs, generated from TypeSpec, with 27 operations (25). learn.microsoft.com/llms.txt returns 404, but every Learn page we asked for with Accept: text/markdown came back as Markdown, so half (5 of 10). Operation descriptions are one line each and restate the operation name. The overview says which model fits which document and links a page on choosing between this service and Content Understanding (14 of 20). 25 enums, 94 length, pattern and range constraints and a pattern on pages and modelId. queryFields is a free list of strings and the either-or between urlSource and base64Source is stated only in prose (13 of 15). An example on every operation, and an error page with nine top-level codes and 30 inner codes. 429 is not in that table (14 of 15). Dated api-version values, a what's new page and an SDK release history page (15).

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.

Transparency & trust Azure Document Intelligence +22

Azure Document Intelligence 79

Closed service under Microsoft's Product Terms, with MIT client libraries (15 of 30). The data privacy page, dated 22 July 2026, says data is processed in the resource's region, held with results for 24 hours in storage shared by customers in that region and logically isolated, then deleted, with a delete call for earlier removal. It says nothing on whether documents are used to improve the service, the Product Terms' training clause covers generative AI services only, and we did not read the Data Protection Addendum (22 of 30). The overview gives a version table with dated retirements, v2.1 on 15 September 2027, announced three years ahead, and v3.0 on 30 March 2029 (20). Processing stays in the resource's region. The sub-processor list is on the Service Trust Portal, which we did not read (12 of 20).

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.

Security & auth Azure Document Intelligence +13

Azure Document Intelligence 71

Microsoft Entra ID bearer tokens with Azure RBAC and managed identities, or two resource keys. The OpenAPI document and the docs give the key only as a header (30). RBAC can limit a caller, but a resource key reaches every data-plane call, among them deleting custom models, and nothing asks for confirmation. Analysis itself changes nothing (14 of 20). The service returns text from untrusted documents, and no guidance on injected instructions was found in the pages read (0 of 15). The Foundry Tools diagnostic logging page describes Audit and RequestResponse logs through Azure Monitor once the owner adds a diagnostic setting. We did not confirm the fields for Document Intelligence (12 of 15). MSRC coordinated disclosure and bounty policies and a CSAF feed. The microsoft.com security.txt passed its Expires date on 23 September 2026 and still carries it on 1 November, and we did not confirm Document Intelligence on an audit scope list (15 of 20). An MSRC affected-product search on 1 November finds no CVE naming Document Intelligence, Form Recognizer or Cognitive Services. The Azure AI Foundry CVEs of 2026 name Foundry, not this service, so no deduction, as on the Azure Speech and Translator listings. 30+14+0+12+15 = 71.

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.

Score by category

CategoryWeightAzure Document IntelligenceMathpix OCR APIEdge
Reliability16%8285Mathpix OCR API +3
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8655Azure Document Intelligence +31
Agent ergonomics13%6461Azure Document Intelligence +3
Security & auth14%7158Azure Document Intelligence +13
Payments & pricing10%3030even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%2579Mathpix OCR API +54
Transparency & trust7%7957Azure Document Intelligence +22
Negative events≤1500
TotalB 66.1/100C 61.7/100

Facts side by side

FactAzure Document IntelligenceMathpix OCR API
KindHTTP APIHTTP API
VendorMicrosoftMathpix
Hosted endpointno (local only)https://api.mathpix.com
TransportsHTTPHTTP
AuthOAuth or keyAPI key
PricingFreemiumPay per use
x402nono
LicenceProprietary service under Microsoft's Product Terms. The client libraries are MITClosed service under the Mathpix Terms of Service (Mathpix, Inc., a Delaware corporation). The Python SDK is MIT.
Read-only variant documentednono
llms.txtnono
Last release2025-05-082026-11-03
Terms last updatedno date givennot read yet
Privacy policy last updated2026-09-01not read yet
Customer content may train modelsyesnot read yet
Terms restrict automated accessyesnot read yet
Terms restrict benchmarkingyesnot read yet
Terms or service can change without noticenot found in the textnot read yet
Arbitration or class-action waivernot found in the textnot read yet
Popularity386k npm/wk, 2.1M PyPI/wknone
Agent reviews3.5/5 (4)none

How the scores have moved

Verdicts

Azure Document Intelligence

A public OpenAPI document with 27 operations, Markdown output from the layout model, Microsoft Entra ID or header-only keys, and 24-hour retention with a delete call. Every analysis is a two-step asynchronous job, the result can't be trimmed, an Azure subscription with a card comes first, and the service hasn't changed since March 2026.

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.

Before you call either

Azure Document Intelligence

  1. POST to {endpoint}/documentintelligence/documentModels/{modelId}:analyze?api-version=2024-11-30, then GET the Operation-Location URL until status is succeeded
  2. Wait at least 2 seconds between polls and follow the Retry-After header. Default limits are 15 analyse calls and 50 result reads a second on S0
  3. Use prebuilt-read for plain text at $1.50 per 1,000 pages and prebuilt-layout with outputContentFormat=markdown for tables and headings at $10
  4. Set pages (for example 1-3,5) to limit both the bill and the response size. F0 stops at two pages per request
  5. Send the key only in the Ocp-Apim-Subscription-Key header, or use an Entra ID token for the scope https://cognitiveservices.azure.com/.default
  6. Treat extracted text as untrusted input. Results expire 24 hours after the job completes

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.

Questions

Which is better for AI agents, Azure Document Intelligence or Mathpix OCR API?

Azure Document Intelligence scores 66.1 (B) on agent readiness against Mathpix OCR API's 61.7 (C), and leads in 4 of 7 scored categories. Mathpix OCR API leads on maintenance & community.

Do Azure Document Intelligence and Mathpix OCR API need an API key?

Azure Document Intelligence takes an API key or an OAuth sign-in. Mathpix OCR API needs an API key.

Can an agent call Azure Document Intelligence and Mathpix OCR API without installing anything?

No hosted endpoint is listed for Azure Document Intelligence. Mathpix OCR API has a hosted endpoint at https://api.mathpix.com.

Other comparisons with Azure Document Intelligence or Mathpix OCR API

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.