md. by TLE Labs

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.

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.

Request
curl -X POST https://api.md.tlelabs.com/v1/convert \
  -H "Authorization: Bearer $MDW_API_KEY" \
  -F "file=@report.pdf"
Response · 200 application/json
{
  "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": []
}

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-mcp
Tool call
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.md

5 formats, one endpoint.

The cheapest accurate path, page by page.

  1. 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.

  2. 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.

  3. 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.

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.

PackCreditsText / 1,000 pagesOCR (auto) / 1,000 pages
$5.0025,000$0.20$3.00
$10.0050,000$0.20$3.00
$25.00131,250$0.19$2.86
$50.00275,000$0.18$2.73
$100.00575,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.

Choosing a specific OCR model (ocr_model)
ModelCredits / pageUSD / 1,000 pages
novita/deepseek-ocr-215$3.00
openparser/paddleocr-vl-1.615$3.00
openparser/mistral-ocr-335$7.00
openparser/azure-di-read26$5.20
openparser/google-docai-ocr26$5.20
openparser/aws-textract-detect26$5.20
openparser/mistral-ocr-469$13.80
openparser/aws-textract-layout69$13.80
openparser/azure-di-layout173$34.60
openparser/aws-textract-tables-layout259$51.80
paddle/serving15$3.00

Sized for real documents.

Limits per request
File size50 MB
PDF500 pages
PPTX200 slides
XLSX50 sheets

Larger files? The MCP server splits them into parts that fit.

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.

Convert your first document.