{"slug":"api-relaystation-ai-v1-doc-convert-dc7f7d","title":"$0.0003/MB","host":"api.relaystation.ai","method":"POST","resource":"https://api.relaystation.ai/v1/doc/convert","category":"other","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","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":616,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_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_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"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":616,"error":null}],"description_full":"$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","last_updated":"2026-09-13T16:59:19.006Z","schemes":["exact"]}