Loading capabilities…
Loading capability…
Extract LaTeX, Mathpix Markdown, and text from an image of math, science, or chemistry content.
Both commands call the selected provider directly.
curl -X POST '/routes/locus-mathpix/ai/math-ocr' \
-H 'content-type: application/json' \
-d '{"src":"https://mathpix-ocr-examples.s3.amazonaws.com/limit.jpg"}'h402 call 'ai/math-ocr' --provider 'locus-mathpix' --method POST --json '{"src":"https://mathpix-ocr-examples.s3.amazonaws.com/limit.jpg"}'Fill the request fields, quote the exact per-call total, then choose x402 or eligible bonus credit explicitly before sending. Only the selected provider's listed parameters are accepted.
srcstringrequiredMathpix-native image URL or base64 data URI.
include_line_databooleanoptionalinclude_smilesbooleanoptionalconfidence_thresholdnumberoptional0–1{
"src": "https://mathpix-ocr-examples.s3.amazonaws.com/limit.jpg"
}{ "data": { "success": true, "data": { "request_id": "6e2a2105-546e-4aed-afe5-bbb1917efa67", "version": "SuperNet-200", "is_printed": false, "is_handwritten": true, "auto_rotate_confidence": 7.435090765284258e-9, "auto_rotate_degrees": 0, "image_height": 288, "image_width": 720, "confidence": 0.9741783142089844, "confidence_rate": 0.999391791592854, "latex_styled": "\\text { - } \\lim _{x \\rightarrow 3}\\left(\\frac{x^{2}+9}{x-3}\\right)", "text": "- \\( \\lim _{x \\rightarrow 3}\\left(\\frac{x^{2}+9}{x-3}\\right) \\)" } }, "h402": { "routeId": "ai/math-ocr", "provider": "locus-mathpix", "selectedCandidateId": "ai/math-ocr/locus-mathpix", "routing": "manual", "paidBy": "x402-exact" } }
Choose a provider for this task. The catalog recommends the current default from quality, reliability, and price; your selected provider stays pinned. Listed prices are provider prices; settlement adds a 5% h402 fee.