{"uid":"cap_yuEnTdzKJGcuWIqyuQyo8","slug":"relaystation-document-format-converter-b197bce0","name":"Relaystation Document Format Converter","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","url":"https://api.relaystation.ai/v1/doc/convert","method":"POST","headers":{},"bodySchema":{"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 } / { inputKey }). BibTeX/BibLaTeX, CSL-JSON, or CSL-YAML — set `format`."}},"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."},"referenceDoc":{"type":"object","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":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kPJq7E4FZ6OsKZf72Q536","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts documents between markdown, HTML, docx, odt, rtf, epub, LaTeX, and rst formats using pandoc, with citation support","exampleAgentPrompt":"Convert this markdown file to a Word docx document — it has citations in it that need to be preserved.","exampleUseCases":[{"title":"Academic paper format conversion","prompt":"I have a LaTeX paper with citations and I need it converted to a Word docx so my collaborator who doesn't use LaTeX can edit it — can you do that?"},{"title":"Technical docs to epub for e-reader","prompt":"Take these markdown documentation files and convert them to epub format so I can read them on my Kindle."},{"title":"Blog post HTML to markdown archival","prompt":"I have a bunch of HTML blog posts I want to archive in markdown — can you convert this HTML file to clean markdown for me?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:54:39.516Z","isFirstParty":false}