# Mathpix Process Image

> Mathpix Process Image is a paid API for AI agents from Mathpix at mathpix.mpp.paywithlocus.com, paid per call via MPP, $0.005/call, status unknown (last checked 2026-10-10).

Extracts LaTeX, MathML, text, and structured data from images of mathematical equations, handwriting, and documents using OCR

## Facts

- Endpoint: POST https://mathpix.mpp.paywithlocus.com/mathpix/process-image?utm_source=zero.xyz
- Price: $0.005/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Provider: Mathpix
- Docs: https://docs.mathpix.com
- Website: https://mathpix.com
- Tags: ocr, math, latex, equations, documents, ai
- Canonical page: https://www.zero.xyz/c/mathpix-process-image-36caf385
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SZH0B1PXUH9X1rP_zKkAn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mathpix-process-image-36caf385 -d '<json body>'
```

Example prompt: Extract the LaTeX from this image of a handwritten equation — here's the URL: https://example.com/math_problem.jpg — and return both the styled latex_styled and plain text formats, with extra whitespace removed.

## When to prefer this

Use this endpoint when you have a static image (URL or base64) containing math equations, handwriting, or scientific notation and need to extract structured LaTeX, text, or HTML representations. Prefer this over Process Strokes when working with rasterized images rather than real-time stylus input. Ideal for digitizing scanned homework, textbook pages, or screenshots of equations.

## Known failure modes

- Image URL is inaccessible or returns non-image content — endpoint returns an error
- Confidence score falls below the specified confidence_threshold — returns an error instead of low-confidence output
- Unsupported image format or corrupted base64 data — parsing failure
- Image contains no recognizable mathematical or textual content — returns empty or low-confidence result
- Invalid region coordinates that fall outside image bounds — may return an error or empty result

## How this service works

OCR a single image — returns recognized text, LaTeX, MathML, or HTML. Supports math, tables, diagrams, and handwriting.

## Output

Returns extracted content in one or more formats including plain text, styled LaTeX, HTML, and optionally SMILES (for chemistry), along with optional line-by-line or word-level segmentation data and confidence metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "src"
 ],
 "properties": {
  "src": {
   "type": "string",
   "description": "Image URL (http/https) or base64-encoded image (data:image/...;base64,...)"
  },
  "region": {
   "type": "object",
   "description": "Pixel region to process: { x1, y1, x2, y2 } coordinates.",
   "additionalProperties": true
  },
  "formats": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Output formats to return: \"text\", \"data\", \"html\", \"latex_styled\". Defaults to [\"text\"]."
  },
  "rm_fonts": {
   "type": "boolean",
   "description": "Strip font commands like \\mathbf. Default: false."
  },
  "rm_spaces": {
   "type": "boolean",
   "description": "Remove extra whitespace from equations. Default: true."
  },
  "include_smiles": {
   "type": "boolean",
   "description": "Enable chemistry diagram OCR (returns SMILES notation)."
  },
  "include_line_data": {
   "type": "boolean",
   "description": "Return line-by-line segmentation data."
  },
  "include_word_data": {
   "type": "boolean",
   "description": "Return word-level segmentation data."
  },
  "confidence_threshold": {
   "type": "number",
   "description": "Minimum confidence (0–1) before returning an error."
  },
  "idiomatic_eqn_arrays": {
   "type": "boolean",
   "description": "Use aligned/gathered instead of array environments. Default: false."
  },
  "math_inline_delimiters": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Custom inline math delimiters, e.g. [\"$\", \"$\"]. Default: [\"\\\\(\", \"\\\\)\"]."
  },
  "math_display_delimiters": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Custom display math delimiters, e.g. [\"$$\", \"$$\"]. Default: [\"\\\\[\", \"\\\\]\"]."
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mathpix-process-image-36caf385/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mathpix.mpp.paywithlocus.com](https://www.zero.xyz/host/mathpix.mpp.paywithlocus.com/llms.txt)
