# x402-gateway Markdown Renderer

> x402-gateway Markdown Renderer is a paid API for AI agents from x402.freeq.one, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Converts a Markdown string to rendered HTML via a pay-per-call x402 micropayment gateway on Base

## Facts

- Endpoint: POST https://x402.freeq.one/tools/markdown
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-markdown-renderer-def248ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hUa1k7itOONjk92OJb3UI

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 x402-gateway-markdown-renderer-def248ac -d '<json body>'
```

Example prompt: Can you convert this markdown text to HTML for me: '# Hello World

This is a **bold** statement and here is a [link](https://example.com).'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call markdown-to-HTML conversion without committing to a subscription. Ideal for agents that only occasionally need markdown rendering and want to pay micro-amounts (fractions of a cent) per call via USDC on Base rather than managing API keys or monthly plans.

## Known failure modes

- Payment not provided or insufficient USDC balance — 402 Payment Required
- Malformed or missing markdown input body — 400 Bad Request
- Rate limiting or gateway downtime — 503 Service Unavailable
- Invalid x402 payment header — payment rejected by facilitator

## How this service works

x402-gateway tool: markdown — Fetch a URL and convert its main content to clean, LLM-ready Markdown (strips nav/ads/sidebars). Options: output_format (markdown|text|json), css_selector, max_length, include_links, include_images.

## Output

Returns rendered HTML corresponding to the input markdown string, suitable for direct embedding in web pages or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "The URL to fetch and convert"
  },
  "options": {
   "type": "object",
   "description": "Conversion options (output_format, css_selector, max_length, include_links, include_images)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-markdown-renderer-def248ac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.freeq.one](https://www.zero.xyz/host/x402.freeq.one/llms.txt)
