# Node4All pdf2md — PDF to Markdown Converter

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

Converts an uploaded PDF file into Markdown text using layout-aware parsing, suitable for feeding document content into AI agent context windows.

## Facts

- Endpoint: POST https://api.node4all.com/v1/pdf2md
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-node4all-com-fca28a85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MdFlLYeKGA8VPnjgfj-ld

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-fca28a85 -d '<json body>'
```

Example prompt: Can you convert this PDF file I'm uploading into Markdown so I can read through its contents — it's a research paper, about 8MB.

## When to prefer this

Use this endpoint when you need to ingest a PDF document into an AI agent's context window as readable Markdown. Ideal for long research papers, reports, or any structured PDF where layout-awareness matters. Prefer over generic OCR when clean Markdown structure (headings, lists) is needed rather than raw text.

## Known failure modes

- File exceeds 10MB limit — request rejected
- Non-PDF file type uploaded — unsupported media type error
- Corrupted or password-protected PDF — parsing failure
- Payment not authorized via x402 — 402 Payment Required response
- Network timeout on large file upload

## How this service works

Node4All pdf2md — layout-aware PDF → Markdown (pdf2md) conversion powered by @opendocsg/pdf2md, ideal for ingesting long documents into agent context windows. Accepts a multipart "file" upload (application/pdf, ≤10MB) and returns text/markdown. Operator: Node4All (https://node4all.com). Currency: USDC on Base.

## Output

Returns the full content of the uploaded PDF rendered as text/markdown, with layout-aware formatting preserved (headings, paragraphs, lists) ready to be inserted into an LLM context window.

## 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-fca28a85/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)
