# agentsvc.io Document Converter

> agentsvc.io Document Converter is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Converts documents between formats (markdown, HTML, DOCX, ODT, EPUB, RST, LaTeX, plain text, RTF, PDF) via URL, raw content, or base64 file upload

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/doc-convert?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-document-converter-7b823f57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iI_0_7KRWDSxShhbQhxlQ

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 agentsvc-io-document-converter-7b823f57 -d '<json body>'
```

Example prompt: Convert this markdown content to a DOCX file: '# Hello World\nThis is a test document with **bold** and *italic* text.' — output it as a Word document.

## When to prefer this

Use this endpoint when you need lightweight, pay-per-call document format conversion without managing a Pandoc installation or a subscription. It is ideal for AI agents that occasionally need to reformat content (e.g. markdown → HTML for rendering, DOCX → markdown for editing) and want to pay micro-amounts in USDC per conversion rather than maintaining API keys or subscriptions. Prefer it over heavyweight document APIs when you just need a format transformation and not OCR, layout analysis, or PDF generation from screenshots.

## Known failure modes

- Document URL unreachable or returns non-200 — conversion fails with error
- Input document exceeds 10 MB size limit
- Unsupported source/target format combination — returns format error
- Malformed base64 input — decoding error
- Ambiguous source format when auto-detection fails — may produce garbled output

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

Returns a JSON object with the converted document as a content string, the detected or specified source format, the target format, the MIME type of the output, and the size in bytes. For binary formats the content field contains the file data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "markdown",
    "html",
    "docx",
    "odt",
    "epub",
    "rst",
    "latex",
    "plain",
    "rtf",
    "pdf"
   ],
   "type": "string"
  },
  "url": {
   "type": "string",
   "description": "URL of the document (max 10 MB)"
  },
  "from": {
   "type": "string",
   "description": "Input format, e.g. markdown, html, docx, rst, latex; detected if omitted"
  },
  "title": {
   "type": "string"
  },
  "content": {
   "type": "string",
   "description": "Document text (markdown, html, rst, latex, org, csv ...)"
  },
  "file_base64": {
   "type": "string",
   "description": "Binary document (docx, odt, epub, rtf), base64"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "to": "html",
   "from": "markdown",
   "source": "content",
   "content": "<!DOCTYPE html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"\" xml:lang=\"\">\n<head>\n  <meta charset=\"utf-8\" />\n  <meta name=\"generator\" content=\"pandoc\" />\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=yes\" />\n  <title>document</title>\n  <style>\n    html…",
   "mime_type": "text/html",
   "size_bytes": 3872
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentsvc-io-document-converter-7b823f57/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
