{"openapi":"3.1.0","info":{"title":"Doc Tools for Agents (PDF, Office, audio, OCR) via MPP","version":"1.0.0","description":"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). Docs: https://mpp-docs.fmf-x402.workers.dev/docs — copy-paste examples for the mppx CLI, curl, the TypeScript SDK (mppx) and the Python SDK (pympp), plus an MCP config. Machine-readable: https://mpp-docs.fmf-x402.workers.dev/llms.txt and https://mpp-docs.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://mpp-docs.fmf-x402.workers.dev/mcp. Fleet of sister services: https://mpp-docs.fmf-x402.workers.dev, https://mpp-agent-data.fmf-x402.workers.dev, https://mpp-tools.fmf-x402.workers.dev, https://mpp-ai.fmf-x402.workers.dev, https://mpp-browser.fmf-x402.workers.dev, https://mpp-research.fmf-x402.workers.dev, https://controlplane-x402.fmf-x402.workers.dev. 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.","x-guidance":"POST JSON {\"url\": \"<public file URL>\"} (or {\"data\": \"<base64>\"}, or the raw file as the body, or multipart field \"file\") to any /mpp/* route. Pay the MPP 402 challenge on Tempo. Invalid input or failed conversion returns 402 with an error and you are not charged. PDF-output routes return application/pdf unless format=json. Size limits are in each route description.","contact":{"url":"https://mpp-docs.fmf-x402.workers.dev/docs"},"x-docs":"https://mpp-docs.fmf-x402.workers.dev/docs","x-mcp":"https://mpp-docs.fmf-x402.workers.dev/mcp","x-llms":"https://mpp-docs.fmf-x402.workers.dev/llms.txt","x-fmf-id":"docs"},"servers":[{"url":"https://mpp-docs.fmf-x402.workers.dev"}],"paths":{"/mpp/pdf/markdown":{"post":{"operationId":"pdf_markdown","summary":"PDF to Markdown","description":"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. Price $0.005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"pages":{"type":"string","description":"optional 1-based pages, e.g. \"1-5,8\""},"engine":{"type":"string","enum":["layout","basic"],"default":"layout"}}},"example":{"url":"https://arxiv.org/pdf/1706.03762"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pdf/text":{"post":{"operationId":"pdf_text","summary":"PDF to plain text","description":"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. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"pages":{"type":"string","description":"optional 1-based pages, e.g. \"1-5,8\""}}},"example":{"url":"https://arxiv.org/pdf/1706.03762"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pdf/info":{"post":{"operationId":"pdf_info","summary":"PDF metadata and page count","description":"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. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"}}},"example":{"url":"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pdf/split":{"post":{"operationId":"pdf_split","summary":"PDF extract pages","description":"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. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"pages":{"type":"string","description":"1-based pages/ranges, e.g. \"1-3,5,last\""},"format":{"type":"string","enum":["pdf","json"],"default":"pdf"}}},"example":{"url":"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf","pages":"1"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"responses":{"200":{"description":"Result","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"bytes":{"type":"integer"},"data_base64":{"type":"string"}}}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pdf/merge":{"post":{"operationId":"pdf_merge","summary":"PDF merge","description":"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. Price $0.005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"urls":{"type":"array","items":{"type":"string","format":"uri"},"minItems":2,"maxItems":10,"description":"PDF URLs in merge order"},"files":{"type":"array","items":{"type":"object","properties":{"data":{"type":"string","description":"base64 PDF"},"filename":{"type":"string"}}}},"format":{"type":"string","enum":["pdf","json"],"default":"pdf"}}},"example":{"urls":["https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf","https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"array","items":{"type":"string","format":"binary"}}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"Result","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"bytes":{"type":"integer"},"data_base64":{"type":"string"}}}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/doc/markdown":{"post":{"operationId":"doc_markdown","summary":"Any document to Markdown","description":"Universal converter: PDF, DOCX, XLSX/XLS/XLSM/XLSB, ODT/ODS, CSV, HTML, XML or Apple Numbers to Markdown (type auto-detected). Max 15 MB. Price $0.005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"}}},"example":{"url":"https://arxiv.org/pdf/1706.03762"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/docx/markdown":{"post":{"operationId":"docx_markdown","summary":"DOCX to Markdown","description":"Convert a Word .docx (or .odt) to Markdown with headings, lists and tables. Max 15 MB. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"}}},"example":{"url":"https://raw.githubusercontent.com/python-openxml/python-docx/master/tests/test_files/test.docx"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/html/markdown":{"post":{"operationId":"html_markdown","summary":"URL/HTML to clean Markdown","description":"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. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"html":{"type":"string","description":"Raw HTML (alternative to url)"},"selector":{"type":"string","description":"CSS selector to keep"},"base_url":{"type":"string"}}},"example":{"url":"https://example.com"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/sheet/json":{"post":{"operationId":"sheet_json","summary":"CSV/XLSX to JSON","description":"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. Price $0.002 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"header":{"type":"boolean","default":true},"delimiter":{"type":"string"}}},"example":{"url":"https://raw.githubusercontent.com/datasets/country-codes/main/data/country-codes.csv"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/image/ocr":{"post":{"operationId":"image_ocr","summary":"Image OCR","description":"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. Price $0.004 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"language":{"type":"string","description":"ISO 639-1 code (optional)"}}},"example":{"url":"https://raw.githubusercontent.com/naptha/tesseract.js/master/tests/assets/images/testocr.png"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.004"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/markdown/pdf":{"post":{"operationId":"markdown_pdf","summary":"Markdown to PDF","description":"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. Price $0.005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["markdown"],"properties":{"markdown":{"type":"string","maxLength":300000},"title":{"type":"string"},"page_size":{"type":"string","enum":["A4","Letter"]},"format":{"type":"string","enum":["pdf","json"]}}},"example":{"markdown":"# Hello\n\n- one\n- two"}},"text/markdown":{"schema":{"type":"string"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"Result","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"bytes":{"type":"integer"},"data_base64":{"type":"string"}}}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/audio/transcribe":{"post":{"operationId":"audio_transcribe","summary":"Speech to text","description":"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. Price $0.01 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"language":{"type":"string","description":"ISO 639-1 code (optional)"}}},"example":{"url":"https://github.com/openai/whisper/raw/main/tests/jfk.flac"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/audio/memo":{"post":{"operationId":"audio_memo","summary":"Voice memo to Markdown document","description":"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. Price $0.02 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"language":{"type":"string","description":"ISO 639-1 code (optional)"}}},"example":{"url":"https://github.com/openai/whisper/raw/main/tests/jfk.flac"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/audio/meeting":{"post":{"operationId":"audio_meeting","summary":"Meeting audio to summary","description":"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. Price $0.03 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"language":{"type":"string","description":"ISO 639-1 code (optional)"}}},"example":{"url":"https://github.com/openai/whisper/raw/main/tests/jfk.flac"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.03"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/url/metadata":{"post":{"operationId":"url_metadata","summary":"URL metadata / link preview","description":"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. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"}}},"example":{"url":"https://example.com"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/text/chunk":{"post":{"operationId":"text_chunk","summary":"Text chunking for RAG","description":"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. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"size":{"type":"integer","minimum":50,"maximum":4000,"default":400},"overlap":{"type":"integer","minimum":0,"default":40}}},"example":{"text":"# Title\n\nFirst paragraph.\n\nSecond paragraph.","size":400}},"text/plain":{"schema":{"type":"string"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/json/validate":{"post":{"operationId":"json_validate","summary":"JSON Schema validate","description":"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. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["schema","data"],"properties":{"schema":{"type":"object"},"data":{},"draft":{"type":"string","enum":["2020-12","2019-09","7","4"]}}},"example":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}},"data":{"id":"x"}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/pdf/images":{"post":{"operationId":"pdf_images","summary":"PDF pages to images","description":"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. Price $0.005 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"pages":{"type":"string","description":"1-based pages (default first 10, max 50)"},"dpi":{"type":"integer","minimum":36,"maximum":300,"default":110},"format":{"type":"string","enum":["png","jpeg"],"default":"png"},"quality":{"type":"integer","minimum":30,"maximum":95},"output":{"type":"string","enum":["json","zip"],"default":"json"}}},"example":{"url":"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf","pages":"1","dpi":72}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","properties":{"page_count":{"type":"integer"},"images":{"type":"array","items":{"type":"object","properties":{"page":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"},"data_base64":{"type":"string"}}}}}}},"application/zip":{"schema":{"type":"string","format":"binary"}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/text/tokens":{"post":{"operationId":"text_tokens","summary":"Exact token count (tiktoken)","description":"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. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"encodings":{"type":"array","items":{"type":"string","enum":["o200k_base","cl100k_base","p50k_base","r50k_base"]}}}},"example":{"text":"Hello, how many tokens is this sentence?"}},"text/plain":{"schema":{"type":"string"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/audio/transcribe-long":{"post":{"operationId":"audio_transcribe_long","summary":"Long audio transcription (up to 30 min)","description":"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. Price $0.05 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Public URL of the file"},"data":{"type":"string","description":"Base64 file content (alternative to url)"},"filename":{"type":"string"},"language":{"type":"string","description":"ISO 639-1 code (optional)"}}},"example":{"url":"https://github.com/openai/whisper/raw/main/tests/jfk.flac"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.05"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}}},"externalDocs":{"description":"Copy-paste examples (CLI, curl, TypeScript, Python, MCP)","url":"https://mpp-docs.fmf-x402.workers.dev/docs"},"components":{"securitySchemes":{"Payment":{"type":"http","scheme":"Payment","description":"MPP Payment credential on Tempo (USDC.e or pathUSD). Clients such as mppx handle the 402 challenge automatically. See https://mpp.dev/sdk"}}},"tags":[{"name":"paid","description":"Pay-per-call MPP routes. Unpaid requests receive 402. Invalid input is not charged."},{"name":"discovery","description":"Free discovery surfaces: /docs, /llms.txt, /openapi.json, /mcp, /health."}]}