# MolCloud Document-to-Markdown Converter

> MolCloud Document-to-Markdown Converter is a paid API for AI agents from api.molcloud.net, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-17).

Converts documents (PDF, DOCX, XLSX, HTML, images) from a public URL or base64 payload into Markdown text, returning the converted content and estimated token count.

## Facts

- Endpoint: POST https://api.molcloud.net/api/docs/convert?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/molcloud-document-to-markdown-converter-6a486e1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xeg7jxEGjfCAk4Lk4W4em

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 molcloud-document-to-markdown-converter-6a486e1d -d '<json body>'
```

Example prompt: Can you convert this PDF report at https://example.com/report.pdf into markdown so I can feed it into my LLM pipeline?

## When to prefer this

Use this endpoint when you need to convert a document (PDF, DOCX, XLSX, HTML, or image) from a URL or base64 payload into Markdown for downstream LLM ingestion, summarization, or analysis. Prefer this over raw text extractors when you need a structured, token-aware Markdown output and can pay per-call in USDC via x402.

## Known failure modes

- URL is not publicly accessible or returns a non-200 response — conversion fails with an error
- Unsupported file format or ambiguous extension — returns an error indicating the file type cannot be processed
- base64 payload is malformed or truncated — results in a decoding error
- Document is too large or complex — may time out or return a partial result
- Missing filename when base64 is provided — may fail to determine format

## How this service works

40 pay-per-request AI, search, headless browser, crypto alpha & memory APIs for autonomous agents settling in USDC on Base via x402 v2.

## Output

A JSON object containing a 'data' field with 'markdown' (the full converted document as a Markdown string) and 'estimatedTokens' (an integer estimate of the token count of the resulting text), plus a 'status' field confirming success and an 'endpoint' field echoing the route used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public URL of document (PDF, DOCX, XLSX, HTML, image) to convert"
  },
  "base64": {
   "type": "string",
   "description": "Optional base64-encoded document payload"
  },
  "filename": {
   "type": "string",
   "description": "Filename with extension (e.g. report.pdf)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "markdown": "# Converted Document...",
   "estimatedTokens": 240
  },
  "status": "success",
  "endpoint": "/api/docs/convert"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/molcloud-document-to-markdown-converter-6a486e1d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.molcloud.net](https://www.zero.xyz/host/api.molcloud.net/llms.txt)
