Document to Markdown: web pages, PDF, DOCX and Korean HWP/HWPX
convert_to_markdownUse when an agent must read a document as clean Markdown: web page, PDF, DOCX or Korean HWP/HWPX, tables kept. Input: url (http/https) via GET, or POST a file (multipart 'file', raw body, or JSON contentBase64+filename). Over the per-format size cap → 413 before payment (see /openapi.json). Output: JSON markdown, title, pages, sourceType, bytes, warnings. Price by detected type: HTML $0.0027, PDF/DOCX $0.0045, HWP/HWPX $0.02. Example: ?url=https://example.com/ Price: $0.0027–$0.02 USDC via x402.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL of a web page, PDF, DOCX, HWP or HWPX (max 10 MB) | |
| type | No | Optional expected type: html, text, pdf, docx, hwp, hwpx | |
| filename | No | Original file name, e.g. report.hwp (helps detection) | |
| contentBase64 | No | Document bytes as base64 (alternative to url; max 10 MB decoded) |