# Tanod Docs – Any File to Markdown

> Tanod Docs – Any File to Markdown is a paid API for AI agents from docs.tanod.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Converts any supported document (PDF, DOCX, XLSX, PPTX, HTML, EPUB, CSV, plain text) to Markdown format via URL or base64 upload.

## Facts

- Endpoint: POST https://docs.tanod.dev/v1/docs/to-markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-docs-any-file-to-markdown-ae34b53f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HclKZh0Ijn5pqhDCMuyod

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 tanod-docs-any-file-to-markdown-ae34b53f -d '<json body>'
```

Example prompt: Can you convert this PDF (https://example.com/report.pdf) to Markdown so I can use the text in my pipeline?

## When to prefer this

Choose this endpoint when you need to programmatically extract readable Markdown from a wide variety of document types (PDF, DOCX, XLSX, PPTX, HTML, EPUB, CSV) via a simple HTTP call with per-use micropayment pricing. Prefer this over generic OCR services when you also need structured Markdown (headers, tables, lists) rather than raw text, and over full document pipeline services when you only need the Markdown conversion step.

## Known failure modes

- URL is private, internal, or IP-literal — request rejected
- File exceeds 20 MB via URL or 10 MB decoded via base64 — rejected
- Unsupported or undetectable file format — error returned
- URL is unreachable or returns non-200 — fetch failure
- Malformed base64 string — decoding error
- Output truncated if document is extremely large

## How this service works

Documents: DOCX template fill, Office to PDF, any file to Markdown, PDF to Word, OCR, PDF pipeline.

## Output

Returns a JSON object containing the extracted Markdown string, the detected file format, page count, total character count, input byte size, whether the output was truncated, and a flag indicating if the content is untrusted (i.e., came from user-supplied input).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 2048,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Public http(s) URL of the document (at most 20 MB; private, internal and IP-literal hosts are refused); or use file_base64."
  },
  "filename": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 255,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Optional original file name (printable, at most 255 characters). The format is detected from the content; the name only breaks ties between text formats (a .csv name makes two delimited lines a table, a .txt or .md name never does)."
  },
  "file_base64": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 13398872,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "The document as base64 (at most 10 MB decoded); or use url. DOCX, XLSX, PPTX, PDF, HTML, EPUB, CSV or plain text, detected from the content."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pages": 1,
  "format": "pdf",
  "markdown": "Dummy PDF file",
  "operation": "to-markdown",
  "truncated": false,
  "characters": 14,
  "input_bytes": 13264,
  "untrusted_content": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-docs-any-file-to-markdown-ae34b53f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from docs.tanod.dev](https://www.zero.xyz/host/docs.tanod.dev/llms.txt)
