# HTTPay Markdown to HTML Converter

> HTTPay Markdown to HTML Converter is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts Markdown text to HTML using the 'marked' npm package, with support for GitHub Flavored Markdown and line-break options

## Facts

- Endpoint: POST https://httpay.xyz/api/markdown-to-html
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-markdown-to-html-converter-fbb797cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r0qFOag7vZI7Hnu8nPgTO

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

Example prompt: Convert this markdown to HTML for me, with GitHub Flavored Markdown enabled and line breaks turned on: '# Hello World\n\nThis is **bold** and this is a list:\n- item 1\n- item 2'

## When to prefer this

Choose this endpoint when you need a quick, serverless, pay-per-call markdown-to-HTML conversion without managing API keys or subscriptions. Ideal for agents that occasionally need to render markdown and don't want to bundle a markdown parser or set up a persistent service. Useful when GFM (GitHub Flavored Markdown) compatibility is needed.

## Known failure modes

- Missing or invalid markdown body returns an error response
- Malformed JSON in request body causes a 400-level error
- Extremely large markdown payloads may time out or be rejected
- Payment failure (insufficient USDC balance or x402 not supported) results in 402 Payment Required

## How this service works

307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.

## Output

A JSON object containing a rendered HTML string produced from the submitted Markdown input, using the 'marked' npm package with configurable GFM and breaks options.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Convert Markdown text to HTML. POST JSON body: {markdown, options}. Options: gfm (bool, default true), breaks (bool). Uses the 'marked' npm package. Returns rendered HTML string."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-markdown-to-html-converter-fbb797cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
