# Relaystation Document Format Converter

> Relaystation Document Format Converter is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Converts documents between markdown, HTML, docx, odt, rtf, epub, LaTeX, and rst formats using pandoc, with citation support

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/doc/convert
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-document-format-converter-b197bce0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yuEnTdzKJGcuWIqyuQyo8

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 relaystation-document-format-converter-b197bce0 -d '<json body>'
```

Example prompt: Convert this markdown file to a Word docx document — it has citations in it that need to be preserved.

## When to prefer this

Choose this endpoint when you need reliable, multi-format document conversion with citation support, especially for academic or technical documents. Prefer this over generic file converters when the input/output formats include pandoc-supported academic formats like LaTeX, rst, or epub, and when citations must be preserved. The per-MB pricing ($0.0003/MB) makes it cost-efficient for moderate document sizes.

## Known failure modes

- Unsupported source or target format combination returns an error
- Malformed or corrupted input document may cause conversion failure
- Citation format not recognized by pandoc may be dropped or cause errors
- Payment insufficient — minimum 1¢ USDC x402 required
- Large documents may exceed MB-based pricing tiers unexpectedly

## How this service works

$0.0003/MB. Convert documents between markdown, HTML, docx, odt, rtf, epub, LaTeX, and rst via pandoc — citations supported. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the converted document in the requested target format as file bytes or content. The output preserves document structure, formatting, and citations from the source document as faithfully as pandoc allows across formats.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "to": {
       "enum": [
        "asciidoc",
        "docx",
        "epub",
        "gfm",
        "html",
        "ipynb",
        "jira",
        "latex",
        "markdown",
        "mediawiki",
        "odt",
        "org",
        "plain",
        "pptx",
        "rst",
        "rtf",
        "textile",
        "typst"
       ],
       "type": "string",
       "description": "Target format (required; validated per-pair against the live matrix — GET /v1/doc/formats)."
      },
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key, ≤ 50 MB> }."
      },
      "from": {
       "enum": [
        "docx",
        "epub",
        "html",
        "ipynb",
        "latex",
        "markdown",
        "mediawiki",
        "odt",
        "org",
        "rst",
        "textile",
        "typst"
       ],
       "type": "string",
       "description": "Source format. Optional when sniffable from `filename`. Live matrix: GET /v1/doc/formats."
      },
      "options": {
       "type": "object",
       "properties": {
        "standalone": {
         "type": "boolean",
         "description": "Emit a complete document (default true) vs a bare fragment."
        }
       }
      },
      "filename": {
       "type": "string",
       "maxLength": 255,
       "minLength": 1,
       "description": "Used to sniff `from` when it is omitted."
      },
      "citations": {
       "type": "object",
       "required": [
        "bibliography"
       ],
       "properties": {
        "csl": {
         "type": "object",
         "description": "Optional CSL stylesheet (input-source) to style the citations/bibliography; omit for the embedded chicago-author-date default."
        },
        "format": {
         "enum": [
          "bib",
          "json",
          "yaml"
         ],
         "type": "string",
         "description": "Bibliography file format (default bib). bib = BibTeX/BibLaTeX, json = CSL-JSON, yaml = CSL-YAML."
        },
        "bibliography": {
         "type": "object",
         "description": "The bibliography file as a cputools input-source ({ inline 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-document-format-converter-b197bce0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
