Math OCR API
Convert printed and handwritten equations, worksheets and papers to LaTeX inside Markdown.
نتیجه
خروجی Markdown یا JSON شما اینجا نمایش داده میشود.
What makes equations hard to read
- Fractions, matrices and multi-line derivations
- Handwritten symbols
- Inline math mixed with prose
What you can pull out
math fields
{
"latex": "\\int_0^1 x^2\\,dx = \\tfrac{1}{3}",
"type": "formula",
"inline": "false"
}Best models for equations
1Mathpix ConvertSpecialist for math, science papers and handwritten formulas. Outputs LaTeX.
mathpix/convert7 credits / page2Mistral OCRFast document OCR that returns clean Markdown with tables and embedded images.mistral/mistral-ocr6 credits / page3MarkerHosted version of the open-source Marker and Surya models. Strong on books and papers.datalab/marker14 credits / pageCall it from your code
curl https://api.ocrrouter.ai/v1/ocr \
-H "Authorization: Bearer $OCRROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mathpix/convert",
"file_url": "https://example.com/invoice.pdf",
"format": "json"
}'