# agent402.tools PDF to Markdown Converter

> agent402.tools PDF to Markdown Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Converts a PDF at a given public URL into clean markdown with headings, paragraphs, and bullets reconstructed from the text layer

## Facts

- Endpoint: POST https://agent402.tools/api/pdf-to-markdown
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-pdf-to-markdown-converter-6b0c1a91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VoxolPAgDfe1us3qS4YS1

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-tools-pdf-to-markdown-converter-6b0c1a91 -d '<json body>'
```

Example prompt: Can you convert this PDF into clean markdown so I can paste it into my prompt? The file is at https://example.com/report.pdf

## When to prefer this

Use this endpoint when you need to quickly convert a single publicly accessible PDF into clean, LLM-ready markdown without standing up your own PDF parsing infrastructure. Prefer it over full document intelligence bundles when you only need the raw markdown conversion without additional analysis or structured extraction steps.

## Known failure modes

- PDF URL is not publicly accessible — returns error indicating the file could not be fetched
- URL does not point to a valid PDF — returns parsing or format error
- PDF is image-only or scanned without a text layer — results in empty or minimal markdown output
- Payment not completed via x402 — returns 402 Payment Required before processing
- PDF is too large or times out — returns a timeout or size-limit error

## How this service works

Convert a PDF to clean markdown: headings, paragraphs, and bullets reconstructed from the text layer - ready to drop into a model's context. Body: {"url":"https://…/file.pdf"}.

## Output

Clean markdown string with reconstructed headings, paragraphs, and bullet points extracted from the PDF's text layer, ready to insert directly into a model's context window

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public URL of the PDF"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pages": 15,
  "markdown": "## Attention Is All You Need\n\nThe dominant sequence…",
  "wordCount": 4500
 }
}
```

## More

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