{
  "x402Version": 2,
  "id": 4629,
  "slug": "4629",
  "resource": "https://api.relaystation.ai/v1/doc/convert",
  "description": "$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",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x5F7254f252eF9b9f92B6B4F2cF91205eD7A96C7A",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x5F7254f252eF9b9f92B6B4F2cF91205eD7A96C7A",
      "asset": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "citations": {
              "bibliography": {},
              "csl": {},
              "format": "bib"
            },
            "file": {},
            "filename": "string",
            "from": "docx",
            "options": {
              "standalone": true
            },
            "referenceDoc": {},
            "to": "asciidoc"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "ok": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "citations": {
                    "description": "Optional citation processing (pandoc --citeproc). In-document citations (`[@key]`) render against the bibliography and a bibliography section is appended. Works for any target; a document with no citation markup just gets no bibliography. Rides the doc.convert price (no extra charge). The default style (chicago-author-date) is embedded — no network needed.",
                    "properties": {
                      "bibliography": {
                        "description": "The bibliography file as a cputools input-source ({ inline } / { inputKey }). BibTeX/BibLaTeX, CSL-JSON, or CSL-YAML — set `format`.",
                        "type": "object"
                      },
                      "csl": {
                        "description": "Optional CSL stylesheet (input-source) to style the citations/bibliography; omit for the embedded chicago-author-date default.",
                        "type": "object"
                      },
                      "format": {
                        "description": "Bibliography file format (default bib). bib = BibTeX/BibLaTeX, json = CSL-JSON, yaml = CSL-YAML.",
                        "enum": [
                          "bib",
                          "json",
                          "yaml"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "bibliography"
                    ],
                    "type": "object"
                  },
                  "file": {
                    "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key, ≤ 50 MB> }.",
                    "type": "object"
                  },
                  "filename": {
                    "description": "Used to sniff `from` when it is omitted.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  "from": {
                    "description": "Source format. Optional when sniffable from `filename`. Live matrix: GET /v1/doc/formats.",
                    "enum": [
                      "docx",
                      "epub",
                      "html",
                      "ipynb",
                      "latex",
                      "markdown",
                      "mediawiki",
                      "odt",
                      "org",
                      "rst",
                      "textile",
                      "typst"
                    ],
                    "type": "string"
                  },
                  "options": {
                    "properties": {
                      "standalone": {
                        "description": "Emit a complete document (default true) vs a bare fragment.",
                        "type": "boolean"
                      }
                    },
                    "type": "object"
                  },
                  "referenceDoc": {
                    "description": "Optional reference-doc template (branded output styling) — cputools input-source { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key, ≤ 50 MB> }. Only valid when `to` is docx or pptx (else 422 REFERENCE_DOC_UNSUPPORTED); the template must be an OOXML/ZIP document (else 422 REFERENCE_DOC_FORMAT_INVALID).",
                    "type": "object"
                  },
                  "to": {
                    "description": "Target format (required; validated per-pair against the live matrix — GET /v1/doc/formats).",
                    "enum": [
                      "asciidoc",
                      "docx",
                      "epub",
                      "gfm",
                      "html",
                      "ipynb",
                      "jira",
                      "latex",
                      "markdown",
                      "mediawiki",
                      "odt",
                      "org",
                      "plain",
                      "pptx",
                      "rst",
                      "rtf",
                      "textile",
                      "typst"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.relaystation.ai",
  "lastUpdated": "2026-09-13T16:59:19.006Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-13T16:59:18.855Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.relaystation.ai",
    "manifest_name": "api.relaystation.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}