Catalog
AIPOSTlive

Math & science OCR

Extract LaTeX, Mathpix Markdown, and text from an image of math, science, or chemistry content.

$0.005
per call
Success
100%
p50 latency
2.01s
p95 latency
2.01s
Calls (30d)
1

Provider contract

Call path
/routes/locus-mathpix/ai/math-ocr
Method
POST
Selected provider
locus-mathpixdefault
Provider price
$0.005
Settlement
Base USDC · x402 · 5% h402 fee

Quickstart

Both commands call the selected provider directly.

cURL
curl -X POST '/routes/locus-mathpix/ai/math-ocr' \
  -H 'content-type: application/json' \
  -d '{"src":"https://mathpix-ocr-examples.s3.amazonaws.com/limit.jpg"}'
CLI
h402 call 'ai/math-ocr' --provider 'locus-mathpix' --method POST --json '{"src":"https://mathpix-ocr-examples.s3.amazonaws.com/limit.jpg"}'

Parameters & live test

pays real USDC

Fill the request fields, quote the exact per-call total, then choose x402 or eligible bonus credit explicitly before sending. Only the selected provider's listed parameters are accepted.

srcstringrequired

Mathpix-native image URL or base64 data URI.

include_line_databooleanoptional
include_smilesbooleanoptional
confidence_thresholdnumberoptional0–1
POST/routes/locus-mathpix/ai/math-ocr
Request body
{
  "src": "https://mathpix-ocr-examples.s3.amazonaws.com/limit.jpg"
}

ResponseExample response
{
  "data": {
    "success": true,
    "data": {
      "request_id": "6e2a2105-546e-4aed-afe5-bbb1917efa67",
      "version": "SuperNet-200",
      "is_printed": false,
      "is_handwritten": true,
      "auto_rotate_confidence": 7.435090765284258e-9,
      "auto_rotate_degrees": 0,
      "image_height": 288,
      "image_width": 720,
      "confidence": 0.9741783142089844,
      "confidence_rate": 0.999391791592854,
      "latex_styled": "\\text { - } \\lim _{x \\rightarrow 3}\\left(\\frac{x^{2}+9}{x-3}\\right)",
      "text": "- \\( \\lim _{x \\rightarrow 3}\\left(\\frac{x^{2}+9}{x-3}\\right) \\)"
    }
  },
  "h402": {
    "routeId": "ai/math-ocr",
    "provider": "locus-mathpix",
    "selectedCandidateId": "ai/math-ocr/locus-mathpix",
    "routing": "manual",
    "paidBy": "x402-exact"
  }
}

Providers

Choose a provider for this task. The catalog recommends the current default from quality, reliability, and price; your selected provider stays pinned. Listed prices are provider prices; settlement adds a 5% h402 fee.

locus-mathpix
mpp
100
Success
100%
p50
2.01s
Calls
1
100%
$0.005$0.0050/call
Last successful call: 27d ago· Aggregated by h402 — not the source provider