← Back to marketplace

Markdown to HTML

Convert Markdown text to HTML. Supports full CommonMark specification including headings, lists, code blocks, links, and more.

infra
by APIHub1 endpoint100% uptime15ms avg

Endpoints

POST/markdown/to-html
$0.0020/req

Convert Markdown to HTML. Body: {"input": "# Hello"}

Request schema

inputstringrequired

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call "https://proxy.apihub.io/markdown-to-html/markdown/to-html" \
  -d '{"input":"# Hello\n\nThis is **markdown**."}'

Or call the proxy directly (curl / any HTTP client):

curl -X POST https://proxy.apihub.io/markdown-to-html/markdown/to-html \
  -H "Authorization: Bearer ahk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"input":"# Hello\n\nThis is **markdown**."}'

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Markdown to HTML.

POST /markdown/to-html$0.0020/req
-