MPPtempoquality 0.65

OCR for math, science, and documents — extract LaTeX, MathML, and Markdown from images via pay-per-call MPP.

Price
$0.005 / call
Protocol
mpp
Verified
no

What it does

This endpoint wraps the Mathpix OCR API behind the Locus Micropayment Protocol (MPP), allowing agents to process images containing math, science, handwriting, and general text without needing a Mathpix subscription. You POST an image (URL or base64) and receive structured output in formats like plain text, LaTeX, HTML, or Mathpix Markdown. The service also supports chemistry diagram recognition (SMILES notation), line/word-level segmentation, custom math delimiters, and region cropping.

Payment is settled per-call via Tempo (pathUSD on Tempo L2). The advertised price for the process-image endpoint is 5,000 base units of pathUSD (6 decimals), which equals $0.005 per image processed. The request schema requires only a `src` field (image URL or data URI); all other parameters are optional and control output formatting or OCR behavior.

The endpoint is a POST-only route. The probe returned 404 on HEAD/GET, which is expected for a POST-only MPP endpoint — the OpenAPI spec clearly defines it as a POST operation with a full request body schema. Documentation references point to https://docs.mathpix.com for the upstream API and https://beta.paywithlocus.com/mpp/mathpix.md for MPP-specific integration notes.

Capabilities

image-ocrmath-latex-extractionmathml-outputhandwriting-recognitionchemistry-smilesline-segmentationword-segmentationregion-croppingbase64-image-inputurl-image-inputpay-per-call

Use cases

  • Converting photos of handwritten math into LaTeX for inclusion in papers or homework systems
  • Extracting structured equations from scanned textbook pages for search indexing
  • Recognizing chemistry diagrams and outputting SMILES notation for cheminformatics pipelines
  • Digitizing whiteboard notes with mixed text and equations into editable Markdown
  • Automating grading workflows by parsing student-submitted equation images

Fit

Best for

  • AI agents needing per-call math/science OCR without a subscription
  • Applications processing images with mixed text and mathematical notation
  • Pipelines requiring LaTeX or MathML output from handwritten or printed equations
  • Developers who want crypto-settled micropayments instead of monthly billing

Not for

  • High-volume batch document processing where a direct Mathpix subscription would be cheaper
  • General-purpose text OCR on documents without math or scientific content
  • Real-time video or streaming OCR use cases

Quick start

curl -X POST https://mathpix.mpp.paywithlocus.com/mathpix/process-image \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <MPP_TOKEN>" \
  -d '{"src": "https://example.com/equation.png", "formats": "text"}'

Example

Request

{
  "src": "https://example.com/equation.png",
  "formats": "text",
  "rm_spaces": true,
  "include_smiles": false,
  "confidence_threshold": 0.7,
  "math_inline_delimiters": "[\"$\", \"$\"]"
}

Response

{
  "text": "$E = mc^2$",
  "confidence": 0.98,
  "is_printed": true,
  "request_id": "abc123",
  "confidence_rate": 0.98
}

Endpoint

Transporthttp
Protocolmpp
CurrencypathUSD

Quality

0.65/ 1.00

Full OpenAPI schema with request body and payment info is available, but the endpoint returned 404 on HEAD/GET (expected for POST-only). No actual 402 challenge was captured via the probe's methods, and no crawled documentation beyond the OpenAPI spec was retrievable. The example response is inferred from Mathpix's known API behavior rather than directly observed.

Warnings

  • Probe did not capture a 402 challenge because it only tried HEAD/GET on a POST-only endpoint — liveness not fully confirmed
  • Example response is inferred from upstream Mathpix API documentation, not directly observed from this MPP wrapper
  • Currency address 0x20c000000000000000000000b9537d11c60e8b50 assumed to be pathUSD with 6 decimals based on Tempo convention

Citations

Provenance

Indexed frommpp_dev
Enriched2026-04-19 17:33:48Z · anthropic/claude-opus-4.6 · v2
First seen2026-04-18
Last seen2026-04-22

Agent access