# Leafmelt Document to Markdown Converter

> Leafmelt Document to Markdown Converter is a paid API for AI agents from leafmelt.cybermax-tools.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-12).

Converts PDF, Word, Excel, and other documents from a URL into clean Markdown text in a single API call

## Facts

- Endpoint: GET https://leafmelt.cybermax-tools.workers.dev/x402/api/convert?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/leafmelt-document-to-markdown-converter-d190189f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oUM7Dgn-ci10J5zj75Ymj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability leafmelt-document-to-markdown-converter-d190189f
```

Example prompt: Can you convert this PDF at https://example.com/report.pdf into clean Markdown so I can feed it into my RAG pipeline? Keep it under 100,000 characters.

## When to prefer this

Choose this endpoint when you need a single-call, no-setup solution to convert PDF, Word, or Excel documents from a public URL into clean Markdown, especially for feeding documents into LLMs or RAG pipelines. Ideal for agents that need to process documents on the fly without managing file uploads or complex parsing libraries.

## Known failure modes

- URL is inaccessible or returns a non-200 status — conversion fails with an error
- Document format not supported — unsupported file types may return an error or empty output
- Document too large or complex — may be truncated at maxChars limit
- Network timeout fetching the remote document URL
- Invalid URL format — request fails with a validation error
- maxChars value outside allowed range (1,000 to 2,000,000) — rejected by API

## How this service works

Any document to clean Markdown, in one call. PDF, Word and Excel to Markdown API + MCP for AI agents and RAG Try it free in one click, no sign-up.

## Output

A JSON response containing the converted Markdown content of the document(s) fetched from the provided URL(s), truncated to the specified maxChars limit per document (default 200,000 characters).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string",
       "description": "Document URL, or up to 5 separated by commas or spaces (or POST {\"urls\": [...]})"
      },
      "maxChars": {
       "type": "integer",
       "default": 200000,
       "description": "Cut each document's Markdown at this many characters (1,000 to 2,000,000; default 200,000)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/leafmelt-document-to-markdown-converter-d190189f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from leafmelt.cybermax-tools.workers.dev](https://www.zero.xyz/host/leafmelt.cybermax-tools.workers.dev/llms.txt)
