# Document to Markdown Converter (PDF, Office, HTML)

> Document to Markdown Converter (PDF, Office, HTML) is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Converts a document (PDF, Word, Excel, PowerPoint, HTML, CSV, or XML) provided as a URL or base64 string into clean Markdown text with headings, tables, page markers, and token count.

## Facts

- Endpoint: GET https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/document?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/document-to-markdown-converter-pdf-office-html-3a04a6a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4NWHGV_i-dRVoOD5J5aAA

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 document-to-markdown-converter-pdf-office-html-3a04a6a8
```

Example prompt: Can you convert the PDF at https://example.com/report.pdf into clean Markdown so I can read its headings, tables, and text?

## When to prefer this

Choose this endpoint when you need to quickly convert a document (PDF, Word, Excel, PowerPoint, HTML, CSV, or XML) into structured Markdown without setting up an account or API key. It is ideal for one-off document conversions billed at a flat per-call rate with no subscription, and is well-suited for AI pipelines that need document text with preserved structure (headings, tables) and a token count for context window planning.

## Known failure modes

- Scanned PDF with no text layer returns empty or minimal text (no OCR is performed)
- Invalid or inaccessible URL returns an error
- Unsupported file format may fail to parse
- Malformed base64 input causes a parse error
- Payment not confirmed results in no Markdown delivery (pay-per-success model)

## How this service works

Turns a document into clean Markdown in about a second: pass an https URL or base64 of a PDF, Word, Excel, PowerPoint, HTML, CSV or XML file and get the text back with its headings, tables and page markers, plus the token count. It reads the text layer, so a scanned page with no text layer comes back without text. You are only charged if the Markdown is delivered. No API key, no account.

## Output

Returns clean Markdown with the document's headings, tables, and page markers preserved, along with the token count of the extracted text. Scanned documents without a text layer will return without readable text.

## 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",
     "required": [],
     "properties": {
      "url": {
       "type": "string",
       "description": "https URL of the document to convert. Use this or document."
      },
      "document": {
       "type": "string",
       "description": "The document, as base64. Use this or url."
      },
      "filename": {
       "type": "string",
       "description": "Name with extension, e.g. invoice.pdf. Helps the converter pick the parser. Default: taken from the URL."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/document-to-markdown-converter-pdf-office-html-3a04a6a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
