# Leafmelt Document to Markdown Converter

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

Converts PDF, Word, and Excel documents to clean Markdown text via a single API call using a document URL

## Facts

- Endpoint: GET https://leafmelt.cybermaxtools.com/x402/api/convert?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/leafmelt-document-to-markdown-converter-8abeb2dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N6apbRFdqXidGa1wMz2JH

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-8abeb2dc
```

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?

## When to prefer this

Choose this endpoint when you need to convert PDF, Word (.docx), or Excel (.xlsx) documents to clean Markdown in a single API call, especially for AI agent workflows, RAG pipelines, or LLM ingestion where clean, structured text is needed. Prefer this over general web scrapers or HTML-to-Markdown tools when dealing with binary document formats. It's ideal for automation pipelines where document URLs are known in advance.

## Known failure modes

- Invalid or inaccessible document URL — returns an error if the URL cannot be fetched
- Unsupported file format — non-PDF/Word/Excel files may fail to convert
- Document exceeds size or character limits — content truncated or error returned
- Network timeout fetching the remote document
- Payment not completed via x402 protocol — request rejected with 402 status

## 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 document content as clean Markdown text, suitable for use in AI pipelines, RAG systems, or any downstream text processing. The Markdown is truncated at the specified maxChars limit (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-8abeb2dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from leafmelt.cybermaxtools.com](https://www.zero.xyz/host/leafmelt.cybermaxtools.com/llms.txt)
