Mathpix

API

OCR API that converts printed and handwritten math into LaTeX and Markdown

Price
$19.99 setup fee, then pay per use
Access
app_id and app_key headers

About

Mathpix OCR reads printed and handwritten math, text, tables and chemistry diagrams from images, PDFs and pen strokes, and returns LaTeX inside Mathpix Markdown, HTML, DOCX and more. A one-time $19.99 setup fee activates keys; an EU endpoint and a private cloud option exist.

What you can do with it

  • Convert a photo of a handwritten or printed equation into LaTeX
  • Turn scientific PDFs into Markdown or DOCX with LaTeX math and tables
  • Recognize math written with a stylus from pen stroke coordinates

Get started

  1. Create keys at console.mathpix.com and pay the setup fee
  2. POST an image or image URL to /v3/text with app_id and app_key

Example

curl -X POST https://api.mathpix.com/v3/text \
  -H "app_id: $MATHPIX_APP_ID" \
  -H "app_key: $MATHPIX_APP_KEY" \
  -H "Content-Type: application/json" \
  --data '{"src": "https://mathpix-ocr-examples.s3.amazonaws.com/cases_hw.jpg", "formats": ["text", "latex_styled"]}'

Details

Hosting
Hosted service, Self-hosted
Available in
Worldwide
Official SDKs
Python
MCP server
None

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .