SnapXam Math APIs

AI-Powered Math Recognition
for Developers

SnapXam’s Math OCR API understands and translates handwritten or printed math into clean, structured data — ready for integration with learning apps and AI tutors.

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.

OCR recognize sample
				        	
	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.