# Strale Markdown to HTML Converter

> Strale Markdown to HTML Converter is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-13).

Converts Markdown text to styled HTML with optional light, dark, or plain theme

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/markdown-to-html
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-markdown-to-html-converter-4dfb046a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z_cHIdOjWvCgSBC3kzBlU

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 strale-markdown-to-html-converter-4dfb046a
```

Example prompt: Convert this markdown to HTML using the dark theme: '# Hello World\n\nThis is a **bold** statement and here is a [link](https://example.com).'

## When to prefer this

Choose this endpoint when you need a quick, reliable server-side Markdown-to-HTML conversion without running a local parser, especially when you need themed output (light/dark/plain) out of the box and an auditable cryptographic record of every conversion call. Ideal for agents building or publishing web content dynamically from markdown sources.

## Known failure modes

- Missing required 'markdown' query parameter returns an error
- Invalid or empty markdown string may return empty or minimal HTML
- Unsupported theme value may fall back to default or return an error
- Extremely large markdown payloads may be rejected or time out
- Network or payment authorization failure (x402) prevents response

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

Returns an HTML document generated from the provided Markdown input, styled according to the requested theme (light, dark, or plain). The output includes properly rendered headings, lists, code blocks, links, and other Markdown elements as valid HTML markup.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ]
    },
    "queryParams": {
     "type": "object",
     "required": [
      "markdown"
     ],
     "properties": {
      "theme": {
       "type": "string",
       "description": "light, dark, or plain"
      },
      "markdown": {
       "type": "string",
       "description": "Markdown text to convert"
      }
     }
    }
   },
   "required": [
    "type",
    "method"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

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