{"uid":"cap_1vxHLoHuFDq5xK-zr0dA6","slug":"relaystation-markdown-to-html-converter-23521135","name":"Relaystation Markdown to HTML Converter","description":"$0.0002/MB. Convert markdown to HTML — always whitelist-sanitized, safe to embed. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/text/markdown-to-html","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":{"properties":{}},"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_7mboF5tVS_Nmp2vYo-TzM","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 Markdown text to sanitized, embed-safe HTML with whitelist-based XSS protection","exampleAgentPrompt":"Convert this markdown content to HTML for me — I need it whitelist-sanitized so it's safe to embed directly in our web app: '# Hello World\\n\\nThis is **bold** and [a link](https://example.com).'","exampleUseCases":[{"title":"Sanitize user-generated markdown for CMS","prompt":"I have a block of user-submitted markdown from our blog comments and I need to render it as safe, sanitized HTML before displaying it on the page — can you run it through the markdown-to-HTML converter? Here's the markdown: '## Great article!\\n\\nCheck out [this site](https://example.com) for more info.'"},{"title":"Render README for developer portal","prompt":"Take this README.md content and convert it to clean HTML so I can embed it in our developer documentation portal without worrying about XSS: '# My SDK\\n\\n- Feature one\\n- Feature two\\n\\n```js\\nconsole.log(\"hello\");\\n```'"},{"title":"Convert docs for email-safe HTML body","prompt":"I need to turn this markdown-formatted newsletter draft into sanitized HTML so I can paste it into our email template — please convert it: '## Weekly Update\\n\\nHere are this week's highlights:\\n- **New feature launched**\\n- Bug fixes shipped'"}],"resultDescription":"Sanitized HTML string converted from the input markdown, with all potentially dangerous tags and attributes removed via whitelist sanitization, making it safe to embed directly in web pages or other HTML contexts.","failureModes":["Empty or missing markdown body — returns error requiring non-empty input","Invalid content type header — API expects text or JSON payload","Payment not attached or insufficient x402 credit — returns 402 Payment Required","Oversized payload exceeding MB limits — billed per MB, may reject extremely large inputs","Network timeout on large documents"],"whenToPreferThis":"Choose this endpoint when you need a low-cost, pay-per-use markdown-to-HTML conversion that guarantees XSS-safe, whitelist-sanitized output suitable for direct web embedding — especially useful for agent pipelines handling user-generated or untrusted markdown content where security matters. Prefer it over self-hosted parsers when you need sanitization built-in and want to avoid dependency management, or when operating in an x402 micropayment workflow at $0.01 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:48:14.299Z","isFirstParty":false}