Introduction
The SnapXam Math OCR API extracts and interprets mathematical expressions from images, returning the expression in LaTeX format and infix notation.
Base URL:
https://api.snapxam.com/v1
/ocr/recognize
Extracts math content from an image and returns the expression in LaTeX format. You can specify the image to recognize like the example below.
POST /ocr/recognize
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"image_data": "data:image/png;base64,..."
}
Response:
{
"latex": "\\frac{6x}{x}",
"infix": "(6x)/x"
}
Authentication
All API calls must include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Request your api key at hello@snapxam.com. We usually reply within a couple hours.