{"uid":"cap_SZH0B1PXUH9X1rP_zKkAn","slug":"mathpix-process-image-36caf385","name":"Mathpix Process Image","description":"OCR a single image — returns recognized text, LaTeX, MathML, or HTML. Supports math, tables, diagrams, and handwriting.","url":"https://mathpix.mpp.paywithlocus.com/mathpix/process-image?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["ocr","math","latex","equations","documents","ai"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CrOtTWp5rO-HtnRMvhJtG","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"Mathpix","brandSlug":"mathpix","brandBaseUrl":"https://mathpix.com","brandDocsUrl":"https://docs.mathpix.com","whatItDoes":"Extracts LaTeX, MathML, text, and structured data from images of mathematical equations, handwriting, and documents using OCR","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:41:45.128Z","isFirstParty":false,"canonicalSlug":"mathpix-process-image-36caf385"}