# Markdown ↔ HTML Bidirectional Converter

> Markdown ↔ HTML Bidirectional Converter is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-15).

Converts Markdown to HTML or HTML to Markdown using GFM-compatible parsing, direction controlled by a 'from' parameter

## Facts

- Endpoint: GET https://api.x402node.dev/convert/markdown-html
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-76bd8192
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MMOgBp5-IK-y-DeiTXxZ4

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 api-x402node-dev-76bd8192
```

Example prompt: Convert this Markdown to HTML: '# Hello World\n\nThis is a **bold** paragraph with a [link](https://example.com) and a list:\n- item 1\n- item 2' — use from=markdown direction.

## When to prefer this

Use this endpoint when you need a quick, stateless, bidirectional conversion between Markdown and HTML without setting up a local parser. Ideal for AI pipelines that produce Markdown and need rendered HTML for display, or that receive HTML content and need clean Markdown for further processing. Prefer this over full document processors when you just need the markup conversion step.

## Known failure modes

- Missing 'from' parameter causes direction ambiguity or error
- Malformed or empty input body returns error or empty result
- Invalid 'from' value not recognized as 'markdown' or 'html'
- Very large documents may time out or be truncated
- Complex HTML with scripts/styles may not convert cleanly to Markdown

## How this service works

Markdown to HTML, HTML to Markdown, MD to HTML, markdown renderer, GFM markdown parser, convert md to html, convert html to markdown, markdown converter, html parser. Bidirectional convert between Markdown and HTML. Direction by 'from' param. Accepts payment on Base or Solana — either network works.

## Output

A JSON object with a 'result' field containing the converted string (HTML or Markdown), plus 'from' and 'to' fields echoing the conversion direction that was applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "content"
     ],
     "properties": {
      "from": {
       "type": "string",
       "description": "Source format (optional)"
      },
      "content": {
       "type": "string",
       "description": "Content body (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-76bd8192/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
