# Markdown to HTML Converter

> Markdown to HTML Converter is a paid API for AI agents from converter-production-7e7b.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Converts Markdown (.md) files to HTML via a pay-per-use x402-enabled API endpoint

## Facts

- Endpoint: POST https://converter-production-7e7b.up.railway.app/convert?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/markdown-to-html-converter-b12f009d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EZpd6--j0DI8HCUJXE7p_

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 markdown-to-html-converter-b12f009d -d '<json body>'
```

Example prompt: Convert this markdown file to HTML for me — the input format is md and I need it back as an html file.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-use Markdown-to-HTML conversion with no setup or API key management, particularly in automated agent workflows that support the x402 micropayment protocol. It is ideal for one-off document conversions at low cost ($0.01 USDC) without committing to a subscription service.

## Known failure modes

- Invalid or missing 'from' field (must be 'md') — returns validation error
- Invalid or missing 'to' field (must be 'html') — returns validation error
- Empty or malformed markdown file content — may return empty or partial HTML
- Payment not completed via x402 protocol — returns 402 Payment Required
- Service unavailable on Railway deployment — returns 5xx error

## How this service works

An x402-enabled API for converting Markdown files to HTML.

## Output

Returns a JSON object containing the output filename (e.g. 'document.html') and content type ('text/html'), representing the successfully converted HTML file produced from the submitted Markdown input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "html"
   ],
   "type": "string",
   "description": "Output file format"
  },
  "file": {
   "type": "string",
   "description": "Markdown file to convert"
  },
  "from": {
   "enum": [
    "md"
   ],
   "type": "string",
   "description": "Input file format"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "filename": "document.html",
  "contentType": "text/html"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/markdown-to-html-converter-b12f009d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from converter-production-7e7b.up.railway.app](https://www.zero.xyz/host/converter-production-7e7b.up.railway.app/llms.txt)
