Head to head · Document parsing · October 2026 research run

Amazon Textract vs Mathpix OCR API

Amazon Textract scores 76 (BB) on agent readiness against Mathpix OCR API's 61.7 (C), and leads in 6 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

Amazon Textract BB

Best for Teams already on AWS with documents in S3 that need OCR, tables and form fields at volume with IAM and CloudTrail controls, and for US invoices, receipts, identity documents and mortgage packages.

Ahead on

  • Reliability, 96 against 85
  • Schema & documentation, 82 against 55
  • Agent ergonomics, 70 against 61
  • Security & auth, 74 against 58
  • Payments & pricing, 53 against 30
  • Transparency & trust, 85 against 57

Also in its favour

  • Agent-ready, a grade of BB or better

Watch for

AWS may store and use processed documents to improve the service, in other Regions too, unless an AI services opt-out policy is set on the AWS organisation

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 58

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.

Transparency & trust Amazon Textract +28

Amazon Textract 85

Closed service under the AWS Customer Agreement and section 50 of the Service Terms, with Apache-2.0 SDKs (20 of 30). The guide says asynchronous results are kept encrypted for 7 days in a bucket Textract owns unless OutputConfig names yours, and that adapter training content is deleted when training ends. Section 50.3 of the Service Terms (last updated 30 October 2026, re-read on 1 November) still lets AWS store and use processed content to improve the service, in other Regions too, with an opt-out through an AI services opt-out policy that also deletes stored content. The Textract guide's data protection page does not mention this, and we found no retention statement for synchronous calls (17 of 30). The Customer Agreement commits to 12 months' notice before material functionality of a generally available service is discontinued. No dated Textract deprecation notices found (15 of 20). The sub-processor page, last updated 30 October 2026 and re-read on 1 November, lists Textract under service improvement with processing in Australia, Germany, Ireland, Singapore, the United Kingdom and the USA, and promises 30 days' notice of new sub-processors. Region is chosen per request across 16 Regions (17 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.

Schema & documentation Amazon Textract +27

Amazon Textract 82

No OpenAPI, but the Smithy model is published in aws/api-models-aws, 25 operations under API version 2018-06-27 on the awsJson1_1 protocol (25). llms.txt for the developer guide and the API reference, a Markdown twin of every page and the whole guide as one Markdown file (10). Operation descriptions state purpose and the guide has a section on picking an operation for a use case and on synchronous against asynchronous calls. Few say when not to use them (15 of 20). 11 enumerated types (such as FeatureType and BlockType), 39 length, pattern or range constraints and 45 required members, with one map and no JSON carried inside strings (13 of 15). The reference pages list each operation's errors with HTTP status codes but carry no examples, and the model has none. The guide has request and response samples and SDK code (11 of 15). The API is versioned, but the guide's document history stops at 21 April 2022 and omits signatures, the lending workflow, layout and Custom Queries, all launched later. Model changes show only as commits in aws/api-models-aws (8 of 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.

Payments & pricing Amazon Textract +23

Amazon Textract 53

No x402, MPP or L402 (0). Per-page prices by Region published without login, with a price feed the pricing page loads, republished on 27 October 2026 with the same US East (N. Virginia) page prices (20). The pricing page gives new AWS customers three months of free pages (1,000 a month for text detection, 100 for forms, tables, layout, queries, expense and identity analysis, 2,000 for lending). The Free Tier FAQ, re-read on 1 November, says a payment method isn't required for most new customers, though AWS may ask for one, so 15 of 20. A person signs up for the AWS account. IAM can mint keys by API only after that (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.

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.

Maintenance & community Mathpix OCR API +21

Amazon Textract 58

The Textract API model last changed on 11 August 2026, a documentation update, 82 days before the re-check, and the JavaScript SDK client shipped 3.1161.0 on 30 October (20 of 30). That is the only model change since 10 July, and aws/api-models-aws holds none for Textract to its 30 October head. The client is published with the whole SDK, and the amazon-textract-textractor helper's 1.10.0 (11 August) is a helper release that doesn't change the service. The guide's document history has no entry after 21 April 2022 and the newest Textract item in AWS's What's New feed is still 30 June 2025 on 1 November (5 of 20). The 11 August model change leaves the 90-day window on 9 November. Closed service with AWS re:Post and paid support plans, and a document history that is four years stale (8 of 15). Official SDKs released on most working days (15). The JavaScript client needs Node 20 or later and comes from the SDK's release pipeline. The amazon-textract-textractor helper library released 1.10.0 on 11 August 2026, still the newest on PyPI and the newest tag on 1 November, and its master branch set version 1.10.1 on 23 October without a tag (10).

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.

Security & auth Amazon Textract +16

Amazon Textract 74

IAM with identity policies per action, temporary credentials from AWS STS and rotation. Resource-level permissions cover adapters only, and Textract has no service-specific condition keys. No secret travels in a URL (30). A policy can allow textract:DetectDocumentText alone, and the service reads documents without changing them, writing to S3 only when OutputConfig names a bucket. The guide names AmazonTextractFullAccess and we found no read-only managed policy in it. The only destructive calls delete adapters (16 of 20). Returns text from untrusted documents, with no prompt-injection guidance found (0 of 15). CloudTrail logs every operation with the caller's identity, leaving out image bytes and response fields (15). In scope for SOC 1, 2 and 3 (page updated 11 August 2026), and the guide names HIPAA, ISO and PCI programmes. Vulnerability disclosure programme on HackerOne. aws.amazon.com's security.txt, expired from 24 September 2026, was renewed by 17 October with Expires 2027-10-16 and points to the VDP (re-read on 1 November). We found no paid bug bounty, so 18, as on the Polly and Secrets Manager re-checks of 17 October (18 of 20). We take 5 off the total of 79, a departure from the checklist, because section 50.3 of the AWS Service Terms lets AWS store and use processed documents to improve the service by default, and the opt-out is a policy on the whole AWS organisation.

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.

Reliability Amazon Textract +11

Amazon Textract 96

AWS Health Dashboard with per-service, per-Region history (20). AWS's dashboard history file, re-read on 1 November 2026, holds 28 events, the newest updated on 30 October (API Gateway in US West (Oregon)), and none names Amazon Textract. The service is not sold in the Middle East Regions whose disruptions have been open since March. The one event that names it is the US East (N. Virginia) multi-service outage of 20 October 2025, outside the 90-day window. The public dashboard shows broad events only (30). Default quotas are published per operation and Region, such as 25 DetectDocumentText calls a second in US East (N. Virginia), 1 in most other Regions, and 600 concurrent asynchronous jobs (15). The guide recommends five SDK retries with exponential backoff and jitter, and ClientRequestToken makes a repeated Start call return the same JobId. Throttling arrives as ProvisionedThroughputExceededException with HTTP 400 or ThrottlingException with HTTP 500, neither with Retry-After, and the API model marks no error as retryable (11 of 15). The Amazon Textract SLA, last updated 5 May 2022, commits 99.9 per cent monthly uptime per Region with credits of 10, 25 or 100 per cent (10). Generally available since 29 May 2019 (10).

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.

Score by category

CategoryWeightAmazon TextractMathpix OCR APIEdge
Reliability16%9685Amazon Textract +11
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8255Amazon Textract +27
Agent ergonomics13%7061Amazon Textract +9
Security & auth14%7458Amazon Textract +16
Payments & pricing10%5330Amazon Textract +23
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%5879Mathpix OCR API +21
Transparency & trust7%8557Amazon Textract +28
Negative events≤1500
TotalBB 76/100C 61.7/100

Facts side by side

FactAmazon TextractMathpix OCR API
KindHTTP APIHTTP API
VendorAmazon Web ServicesMathpix
Hosted endpointhttps://textract.us-east-1.amazonaws.comhttps://api.mathpix.com
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingPay per usePay per use
x402nono
LicenceProprietary service under the AWS Customer Agreement. The AWS SDKs and the Textractor helper library are Apache-2.0Closed service under the Mathpix Terms of Service (Mathpix, Inc., a Delaware corporation). The Python SDK is MIT.
Read-only variant documentednono
llms.txtyesno
Last release2026-10-302026-11-03
Terms last updated2026-08-14not read yet
Privacy policy last updated2026-05-18not read yet
Customer content may train modelsnot found in the textnot read yet
Terms restrict automated accessnot found in the textnot read yet
Terms restrict benchmarkingnot found in the textnot read yet
Terms or service can change without noticenot found in the textnot read yet
Arbitration or class-action waiveryesnot read yet
Popularity1.9M npm/wk, 208k PyPI/wknone
Agent reviews3/5 (4)none

How the scores have moved

Verdicts

Amazon Textract

IAM policies limit a credential to single operations, CloudTrail logs every call, and page prices start at $1.50 per 1,000 in US East. Multipage files need S3 and an asynchronous job. Text detection covers six languages. Under the AWS Service Terms AWS may store and use documents to improve the service unless an AI services opt-out policy is set.

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

Amazon Textract

  1. Sign with SigV4 for service textract at textract.<region>.amazonaws.com, or call aws textract detect-document-text. The AWS CLI can't send image bytes, so reference an S3 object
  2. Use StartDocumentTextDetection or StartDocumentAnalysis for any PDF or TIFF of more than one page, pass a ClientRequestToken, then page Get calls with NextToken (1,000 blocks at most each)
  3. Fetch results within 7 days of starting a job, or set OutputConfig to write them to your own S3 bucket
  4. Request only the FeatureTypes you need. Forms cost $50 per 1,000 pages against $15 for tables or queries in US East
  5. Back off on ProvisionedThroughputExceededException (HTTP 400) and ThrottlingException (HTTP 500). Neither carries Retry-After, and default quotas are 1 call a second in most Regions
  6. Set the AI services opt-out policy on the AWS organisation before sending customer documents

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, Amazon Textract or Mathpix OCR API?

Amazon Textract scores 76 (BB) on agent readiness against Mathpix OCR API's 61.7 (C), and leads in 6 of 7 scored categories. Mathpix OCR API leads on maintenance & community.

Do Amazon Textract and Mathpix OCR API need an API key?

Both need an API key.

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

Yes. Amazon Textract has a hosted endpoint at https://textract.us-east-1.amazonaws.com and Mathpix OCR API at https://api.mathpix.com.

Other comparisons with Amazon Textract 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.