# Node4All md2pdf — Markdown to PDF Converter

> Node4All md2pdf — Markdown to PDF Converter is a paid API for AI agents from api.node4all.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-13).

Converts UTF-8 Markdown content into a downloadable PDF document via multipart file upload or JSON body

## Facts

- Endpoint: POST https://api.node4all.com/v1/md2pdf?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Success rate: 0% of calls made through Zero
- Rating: 1.3 / 5 from 1 review
- Activations on Zero: 3
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-node4all-com-d59a4ac9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EXLqNZruIDKUQjPVImzZj

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 api-node4all-com-d59a4ac9 -d '<json body>'
```

Example prompt: Convert this markdown document into a PDF for me — here's the content: '# Project Report\n\n## Summary\nThis quarter we exceeded targets by 12%...'

## When to prefer this

Choose this endpoint when you need a reliable, pay-per-call serverless Markdown-to-PDF conversion with no authentication setup — ideal for document automation workflows, AI agent pipelines generating reports, or any scenario where you have markdown text or a .md file and need a clean PDF output without managing a rendering server. Especially suited for agents using x402/USDC micropayments on Base.

## Known failure modes

- File exceeds 10MB limit — request rejected
- Invalid or non-UTF-8 markdown content — parsing error
- Malformed JSON body missing 'markdown' key — 400 error
- Unsupported file type uploaded — rejected
- Payment authorization failure via x402 — 402 Payment Required
- Server-side rendering error for complex or malformed markdown

## How this service works

Node4All md2pdf — Markdown → PDF (md2pdf) conversion for AI agents and document automation workflows. Accepts UTF-8 markdown either as a multipart "file" upload (.md, ≤10MB) or as a JSON body { "markdown": "..." }, and returns application/pdf. Operator: Node4All (https://node4all.com). Currency: USDC on Base.

## Output

Returns a binary application/pdf response containing the rendered PDF document generated from the provided Markdown input. The PDF reflects standard Markdown formatting including headers, lists, code blocks, and emphasis.

## Example request

```json
{
 "markdown": "# Test Document\n\nThis is a minimal test for the md2pdf API.\n\n## Section\n\nSimple content with **bold** and *italic* text.\n\n- Item 1\n- Item 2\n\nEnd of test."
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-node4all-com-d59a4ac9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.node4all.com](https://www.zero.xyz/host/api.node4all.com/llms.txt)
