OCR for math and scientific content. Extract LaTeX, MathML, and plain text from images of equations, tables, diagrams, and handwritten math. Best-in-class math recognition accuracy.
View documentationUse Mathpix when your agent needs to extract mathematical content from images — converting photos of equations to LaTeX, digitizing handwritten math, extracting formulas from scientific papers, or processing math worksheets. Ideal for education agents, research assistants, homework help bots, and any workflow that needs to turn visual math into structured text.
Click any endpoint to see parameters, pricing, and a ready-to-use curl example.
Extract LaTeX, MathML, and text from an image of math equations, tables, or scientific content.
/services/mathpix/mathpix/process-image| Name | Type | Required | Description |
|---|---|---|---|
| src | string | Yes | Image URL or base64-encoded image data (data:image/png;base64,...) |
| formats | string[] | No | Output formats — 'latex_styled', 'text', 'mathml', 'asciimath' |
curl -X POST \
"https://api.indiegent.com/services/mathpix/mathpix/process-image" \
-H "Authorization: Bearer <your-token>" \
-H "X-Agent-Wallet: my-agent" \
-H "Content-Type: application/json" \
-d '{
"src": "https://example.com/math-equation.png"
}'api.indiegent.com/services/mathpixUSDC · Automatic
Payment protocols handled by IndieGent
Tempo