HTTP API MCP PDF, DOCX, PPTX, XLSX, HTML OCR
Convert documents to Markdown.
Headings, tables, lists and links from the file itself, and OCR for scans and pictures. Try it here for free, then call POST /v1/convert from your code and pay credits per page.
Have a link instead of a file? Convert a web page to Markdown.
Try it free no sign-in
10 free conversions a day, files up to 10 MB and 50 pages. Text, tables, charts and links are read from the file itself; OCR of scans and pictures needs an account.
API
The same conversion, one request away.
Send the file to POST /v1/convert with your API key and get Markdown back with the pages and credits used. OCR runs only on the pages and pictures that need it. You pay credits for the pages converted, nothing when a conversion fails.
For a web page, send its URL to POST /v1/fetch: it opens in a browser, its JavaScript runs, and you get the page as Markdown for 5 credits. To try it without code, paste the link on URL to Markdown. For a PDF link, send the URL to POST /v1/fetch-pdf.
curl -X POST https://api.md.tlelabs.com/v1/convert \
-H "Authorization: Bearer $MDW_API_KEY" \
-F "file=@report.pdf"{
"markdown": "# Quarterly report\n\nRevenue grew 12%…",
"format": "pdf",
"usage": {
"pages": 10,
"ocr_pages": 3,
"credits_charged": 52,
"credits_remaining": 9948,
"ocr_page_credits": 15
},
"metadata": {
"ocr_model": "auto",
"ocr_models_used": ["openparser/paddleocr-vl-1.6"]
},
"warnings": []
}MCP
Or let your agent convert files itself.
Add the md. MCP server (@tlelabs/md-mcp) to Claude Code, Codex, Antigravity, Devin or Cursor. Your agent calls convert_file on a local PDF, DOCX, PPTX, XLSX, HTML file and gets the Markdown back, or saves it next to your code; fetch_url and convert_pdf_url do the same for web pages and PDF links. A file over the API limits is split into parts on your machine and the Markdown joined. Same API key, same credits per page.
claude mcp add -s user md \
-e 'MD_API_KEY=<YOUR_API_KEY>' \
-- npx -y @tlelabs/md-mcpcodex mcp add md \
--env 'MD_API_KEY=<YOUR_API_KEY>' \
-- npx -y @tlelabs/md-mcpagy mcp add \
--env 'MD_API_KEY=<YOUR_API_KEY>' \
md -- npx -y @tlelabs/md-mcpdevin mcp add -s user md \
--env 'MD_API_KEY=<YOUR_API_KEY>' \
-- npx -y @tlelabs/md-mcp{
"mcpServers": {
"md": {
"command": "npx",
"args": [
"-y",
"@tlelabs/md-mcp"
],
"env": {
"MD_API_KEY": "<YOUR_API_KEY>"
}
}
}
}convert_file
path: report.pdf
output_path: report.md
Converted report.pdf (pdf): 10 pages, 3 OCR pages;
charged 52 credits, 9948 remaining.
Saved to /home/you/project/report.mdFORMATS
5 formats, one endpoint.
PDF .pdf
Text layer in reading order with headings, lists, code, links and MathML formulas, form fields and FreeText annotations; scanned or unreadable pages are OCR'd.
PDF to MarkdownDOCX .docx
Headings, lists, tables, links, charts and SmartArt; pictures are OCR'd.
Word to MarkdownPPTX .pptx
Slides in order with titles, text, tables, charts, SmartArt and speaker notes; pictures are OCR'd.
PowerPoint to MarkdownXLSX .xlsx
Every sheet as a Markdown table, plus charts, shapes and pictures.
Excel to MarkdownHTML .html .htm
Sanitized headings, lists, tables and links, text inside SVG; embedded data: pictures are OCR'd.
HOW IT WORKS
The cheapest accurate path, page by page.
Step 1
Read the file's own structure
Headings, lists, tables, links, charts and SmartArt come straight from the document. No OCR, 1 credit per page ($0.20 per 1,000 pages), even with OCR off.
Step 2
OCR the pictures
Scans and pictures inside the file are sent to an OCR model; the text lands as a quote right after the picture.
Step 3
Render only unreadable PDF pages
A PDF page whose text layer is missing or garbled is rendered and read by OCR. Pages with good text keep it.
PRICING
Credits per page.
- 1 credit per page read from the file ($0.20 per 1,000 pages)
- 15 credits per OCR page with
ocr_model=auto($3.00 per 1,000 pages) - 0 credits when a conversion fails
New accounts get 500 free credits. Buy more in the dashboard under Billing: credits never expire, and larger packs include more credits per dollar. Payments are processed by Creem; taxes are added at checkout.
| Pack | Credits | Text / 1,000 pages | OCR (auto) / 1,000 pages |
|---|---|---|---|
| $5.00 | 25,000 | $0.20 | $3.00 |
| $10.00 | 50,000 | $0.20 | $3.00 |
| $25.00 | 131,250 | $0.19 | $2.86 |
| $50.00 | 275,000 | $0.18 | $2.73 |
| $100.00 | 575,000 | $0.17 | $2.61 |
The most a file can cost is reserved before converting; you are charged only for the pages actually converted. Questions: md@tlelabs.com.
A page is one PDF page or PPTX slide; 3,000 characters of visible text for HTML, 3,000 characters of text for DOCX and 3,000 characters of cell text per sheet for XLSX.
auto tries novita/deepseek-ocr-2 → openparser/paddleocr-vl-1.6 → paddle/serving for pictures and openparser/paddleocr-vl-1.6 → paddle/serving for rendered PDF pages, falling back on failure.
| Model | Credits / page | USD / 1,000 pages |
|---|---|---|
novita/deepseek-ocr-2 | 15 | $3.00 |
openparser/paddleocr-vl-1.6 | 15 | $3.00 |
openparser/mistral-ocr-3 | 35 | $7.00 |
openparser/azure-di-read | 26 | $5.20 |
openparser/google-docai-ocr | 26 | $5.20 |
openparser/aws-textract-detect | 26 | $5.20 |
openparser/mistral-ocr-4 | 69 | $13.80 |
openparser/aws-textract-layout | 69 | $13.80 |
openparser/azure-di-layout | 173 | $34.60 |
openparser/aws-textract-tables-layout | 259 | $51.80 |
paddle/serving | 15 | $3.00 |
LIMITS
Sized for real documents.
| File size | 50 MB |
|---|---|
| 500 pages | |
| PPTX | 200 slides |
| XLSX | 50 sheets |
Larger files? The MCP server splits them into parts that fit.
PRIVACY
Your files are not kept.
Uploaded files are processed in memory and are not stored, and neither is the Markdown. When OCR is needed, only the pages or pictures that need it are sent to an OCR provider (Novita, OpenParser, a self-hosted PaddleOCR server). Privacy Policy
Service health and recent incidents: status.md.tlelabs.com.