Mathpix
APIOCR API that converts printed and handwritten math into LaTeX and Markdown
- 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
- Create keys at console.mathpix.com and pay the setup fee
- 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