# Agent402 Markdown to HTML Converter

> Agent402 Markdown to HTML Converter is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Converts a Markdown string to HTML using the CommonMark-compliant marked library.

## Facts

- Endpoint: POST https://agent402.co.uk/v1/utils/markdown/to-html
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-markdown-to-html-converter-66884841
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cj6wkSIbw1JHxhKxwFUPn

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

Example prompt: Can you convert this markdown to HTML for me: '# Hello World\n\nThis is a **test** paragraph with a [link](https://example.com).'

## When to prefer this

Choose this endpoint when you need a lightweight, fast, pay-per-call Markdown-to-HTML conversion without setting up your own rendering pipeline. It uses the widely-adopted marked library with CommonMark compliance, making it ideal for automating document rendering in agent workflows where you need HTML output from markdown content at low cost ($0.001 per call).

## Known failure modes

- Missing or empty markdown field returns a validation error
- Malformed JSON request body returns a 400 error
- Very large markdown inputs may be rejected or time out
- Network or server errors return 5xx responses

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

Returns an HTML string rendered from the provided Markdown source using the marked library with CommonMark compliance, including proper heading tags, paragraph tags, links, bold/italic, lists, and code blocks.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "markdown": {
   "type": "string",
   "description": "Markdown source"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "html": "<h1>Hi</h1>\n"
 }
}
```

## More

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