Mathpix builds STEM-grade OCR and document-conversion services. Its Convert API converts images, handwriting, and PDFs into Mathpix Markdown (MMD) — a Markdown superset for math, tables, and chemistry — and then transforms MMD into DOCX, LaTeX, HTML, PDF, and PPTX. The same engine powers Snip (desktop snipping tool, mobile, Chrome extension, collaborative MMD editor) and the enterprise Secure Conversion Service (SCS), with on-premises deployment available. Mathpix has processed 5B+ PDF pages and 3B+ images for 3M+ users and is the OCR layer behind customers including Anthropic, Stanford, and Tencent.
URL: Visit APIs.json
Run: Capabilities Using Naftiko
- OCR, STEM, Math, Chemistry, Document Conversion, PDF, LaTeX, Handwriting, AI, Machine Learning
- Created: 2026-05-25
- Modified: 2026-05-25
Submit a single image (URL or base64) to POST /v3/text and receive Mathpix Markdown plus optional structured data, HTML, styled LaTeX, and line- or word-level segmentation. Auto-detects printed vs. handwritten and handles math, text, tables, and chemistry diagrams.
Human URL: https://docs.mathpix.com/reference/post-v3-text
Asynchronous PDF and document OCR via POST /v3/pdf. Submit by URL or multipart upload, poll status, optionally stream via SSE, and download MMD, Markdown, DOCX, LaTeX (.tex.zip), HTML, PPTX, or per-line JSON. Supports page_ranges, alphabets, chemistry (SMILES), idiomatic equation arrays, and page-info capture.
Human URL: https://docs.mathpix.com/reference/post-v3-pdf
Transform Mathpix Markdown into DOCX, LaTeX archives, HTML, PDF, PPTX, plain Markdown, and zipped multi-file outputs via POST /v3/converter. Synchronous submission returns a conversion_id to poll per-format completion and download artifacts.
Human URL: https://docs.mathpix.com/reference/post-v3-converter
Submit many image URLs (with optional per-image options) via POST /v3/batch and retrieve a results map keyed by caller IDs. Supports optional webhook callbacks. Mathpix recommends polling roughly one second per five images.
Human URL: https://docs.mathpix.com/reference/post-v3-batch
Recognize handwritten math, text, and chemistry from raw stroke coordinates (x / y arrays) via POST /v3/strokes. Pairs with the App Tokens API and strokes_session_id for client-side digital-ink capture in browsers and tablets. Request body capped at 512 KB.
Human URL: https://docs.mathpix.com/reference/post-v3-strokes
Mint short-lived client-side app_token credentials (30 seconds to 12 hours; 5 minutes by default) via POST /v3/app-tokens so browsers, mobile clients, and digital-ink surfaces can call Mathpix without exposing the long-lived app_key. Token issuance is free.
Human URL: https://docs.mathpix.com/reference/post-v3-app-tokens
Aggregate OCR consumption by usage_type, request_args_hash, or app_id over hour/day/week/month timespans via GET /v3/ocr-usage. Used to track consumption trends and reconcile billing.
Human URL: https://docs.mathpix.com/reference/ocr-usage
- Plans (API Commons) — Snip Free, Snip Pro ($4.99/mo), Convert API (from $0.002/image), SCS (custom).
- Rate Limits (API Commons) — per-account concurrency, batch polling cadence, 10 MB converter body cap, 512 KB strokes body cap.
- FinOps / FOCUS — FOCUS 1.3-aligned cost meters with allocation by
app_idandusage_type.
- Python SDK — mpxpy
- iOS Client
- CLI — mpx-cli
- API Examples
- mathpix-markdown-it (MMD renderer)
- VS Code Extension
- PDF Accessibility Toolkit
- Snip — collaborative MMD editor
- Snipping Tool (desktop)
- Mathpix Console
Server-side: send both app_id and app_key headers. Client-side: mint a short-lived app_token via POST /v3/app-tokens and use it in place of the long-lived key. Base URL: https://api.mathpix.com.
- Support: support@mathpix.com
- Sales: https://mathpix.com/contact-sales
- Console: https://console.mathpix.com