Pay-per-call document conversion for AI agents: PDF to Markdown/text, PDF info/split/merge, DOCX/XLSX/CSV/HTML conversion, image OCR, Markdown to PDF, speech-to-text, voice memo to document, meeting notes, RAG chunking and JSON Schema validation. No account, no API key: pay per call with MPP on Tempo (USDC.e or pathUSD).
Full docs with copy-paste examples (mppx CLI, curl, TypeScript, Python, MCP).
| Route | Price | What you get |
|---|---|---|
POST /mpp/pdf/markdown | $0.005 | PDF to Markdown Convert a PDF to clean LLM-ready Markdown with a layout-aware engine: correct word spacing (incl. LaTeX/arXiv papers), headings from font size/bold/section numbers, bullet and numbered lists, column-aligned tables, de-hyphenation, page markers. Optional pages="1-5". Up to 40 MB / 500 pages. |
POST /mpp/pdf/text | $0.003 | PDF to plain text Extract plain text from a PDF with correct word spacing (layout-aware; pages separated by form feed \f). Optional pages="1-5". Up to 40 MB. |
POST /mpp/pdf/info | $0.001 | PDF metadata and page count PDF facts in one call: page count, title, author, subject, keywords, creator, producer, dates, page sizes, encryption and form-field flags, and the bookmark outline (title, level, page). Up to 40 MB. |
POST /mpp/pdf/split | $0.003 | PDF extract pages Extract pages from a PDF into a new PDF. pages="1-3,5,last" (1-based; reverse ranges allowed). Returns application/pdf, or JSON with base64 when format=json. Up to 40 MB. |
POST /mpp/pdf/merge | $0.005 | PDF merge Merge 2-20 PDFs (JSON {urls:[...]} or {files:[{data}]}, or multipart files) into one PDF in the given order. Returns application/pdf, or JSON with base64 when format=json. Up to 20 MB each, 30 MB total. |
POST /mpp/doc/markdown | $0.005 | Any document to Markdown Universal converter: PDF, DOCX, XLSX/XLS/XLSM/XLSB, ODT/ODS, CSV, HTML, XML or Apple Numbers to Markdown (type auto-detected). Max 15 MB. |
POST /mpp/docx/markdown | $0.003 | DOCX to Markdown Convert a Word .docx (or .odt) to Markdown with headings, lists and tables. Max 15 MB. |
POST /mpp/html/markdown | $0.003 | URL/HTML to clean Markdown Fetch a web page (url) or take raw HTML and return clean Markdown with absolute links. Optional selector (CSS) to keep only part of the page. Static HTML, no JS rendering. Max 5 MB. |
POST /mpp/sheet/json | $0.002 | CSV/XLSX to JSON Convert CSV, XLSX/XLS/XLSM/XLSB, ODS or Numbers to JSON: one array of row objects per sheet (first row = headers). Numbers are typed. Max 10 MB. |
POST /mpp/image/ocr | $0.004 | Image OCR Read all text in an image (PNG, JPEG, WebP, GIF, BMP; screenshots, scans, receipts, photos of documents) and return it as Markdown, keeping headings, lists and tables. Max 5 MB. |
POST /mpp/markdown/pdf | $0.005 | Markdown to PDF Render Markdown (headings, paragraphs, bold, bullet/numbered lists, code blocks, tables, rules) to a clean A4/Letter PDF. Body: JSON {markdown, title?, page_size?: "A4"|"Letter"} or raw text/markdown. Returns application/pdf (or base64 JSON with format=json). Max 300 KB of Markdown. |
POST /mpp/audio/transcribe | $0.01 | Speech to text Transcribe speech (MP3, WAV up to 10 minutes / 15 MB; FLAC, M4A, OGG, WebM up to 8 MB) with Whisper large-v3-turbo on Cloudflare Workers AI. Returns text, timestamped segments, WebVTT subtitles, detected language and duration. Optional language (ISO code). For up to 30 minutes use /mpp/audio/transcribe-long. Not charged on failure or when the daily free compute budget is reached. |
POST /mpp/audio/memo | $0.02 | Voice memo to Markdown document Turn a voice memo (up to 10 minutes; MP3/WAV up to 15 MB, other formats 8 MB) into a structured Markdown document: title, summary, headings, bullet points, decisions, action items and open questions, plus the raw transcript. |
POST /mpp/audio/meeting | $0.03 | Meeting audio to summary Meeting recording (up to 10 minutes; MP3/WAV up to 15 MB, other formats 8 MB) to notes: summary, key points, decisions, action items (owner, due date if said), open questions, as Markdown and JSON, plus the timestamped transcript. |
POST /mpp/url/metadata | $0.001 | URL metadata / link preview Fetch a URL and return its link-preview metadata: final URL, HTTP content type, title, description, canonical, language, Open Graph and Twitter card fields, favicon, feeds, JSON-LD types, and word count. Static fetch, max 3 MB. |
POST /mpp/text/chunk | $0.001 | Text chunking for RAG Split text or Markdown into retrieval-ready chunks that respect headings, paragraphs and sentences. Params: size (target tokens, default 400, 50-4000), overlap (tokens, default 40). Returns chunks with heading path, char offsets and token estimates. Body: JSON {text} or raw text. Max 2 MB. |
POST /mpp/json/validate | $0.001 | JSON Schema validate Validate JSON data against a JSON Schema (draft 2020-12, 2019-09, 7, 4). Body: JSON {schema, data, draft?}. Returns valid plus every error with instance path and keyword. |
POST /mpp/pdf/images | $0.005 | PDF pages to images Render PDF pages to PNG or JPEG images (for vision models, OCR, thumbnails). Params: pages="1-3" (default first 10, max 50 per call), dpi (36-300, default 110), format png|jpeg, quality (JPEG), output=zip for a ZIP file instead of JSON base64. Up to 40 MB. |
POST /mpp/text/tokens | $0.001 | Exact token count (tiktoken) Exact token counts with OpenAI tiktoken encodings: o200k_base (GPT-4o, 4.1, o-series, GPT-5) and cl100k_base (GPT-4, 3.5, text-embedding-3). Body: JSON {text, encodings?} or raw text. Up to 5 MB of text. |
POST /mpp/audio/transcribe-long | $0.05 | Long audio transcription (up to 30 min) Transcribe long recordings (podcasts, lectures, interviews, calls) up to 30 minutes / 40 MB (MP3 or WAV; split into 2-minute chunks transcribed in parallel) with Whisper large-v3-turbo on Cloudflare Workers AI. Returns text, timestamped segments, WebVTT, language, duration. Not charged on invalid input or when the daily free compute budget is reached. |
Input: POST JSON {url} or {data: base64}, raw file body, or multipart field file. GET ?url= also works for single-file routes. Invalid input or a failed conversion is refused with 402 and is not charged.