# AgentUtility PDF to Markdown Converter

> AgentUtility PDF to Markdown Converter is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-14).

Converts a PDF document into Markdown text, returning the extracted content and page count

## Facts

- Endpoint: POST https://x402.agentutility.ai/pdf2md
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-pdf-to-markdown-converter-e6d4bf8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TqgEs_EnKuUokaHQuGeZI

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 agentutility-pdf-to-markdown-converter-e6d4bf8c -d '<json body>'
```

Example prompt: Can you convert this PDF document into markdown for me? Here's the file: https://example.com/report.pdf — I need the full text extracted as clean markdown so I can work with it.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically extract and work with the textual content of a PDF document in Markdown format, especially in agentic pipelines where downstream tasks require structured text (e.g. summarization, Q&A, indexing). Prefer this over raw OCR tools when Markdown-formatted output with heading and paragraph structure is needed, and when pay-per-call USDC billing via x402 fits the agent's payment model.

## Known failure modes

- Invalid or inaccessible PDF URL returns an error
- Corrupted or password-protected PDF may fail to parse
- Very large PDFs may time out or exceed processing limits
- Non-PDF file formats submitted will be rejected
- Insufficient USDC balance causes x402 payment failure before processing begins

## How this service works

Paid x402 endpoints organized into product clusters. USDC-settled on Base. MCP-callable. ERC-8004 identity registry agentId 47167.

## Output

A JSON object containing 'markdown' (the full extracted Markdown content of the PDF) and 'page_count' (the number of pages processed). For example: {"markdown": "# Title\n\nBody...", "page_count": 3}.

## 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": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "pdf_url": {
       "type": "string",
       "description": "URL to the source PDF. Rejected if it exceeds 30 pages."
      },
      "output_format": {
       "type": "string",
       "description": "'markdown' (default), 'html', or 'json'."
      }
     },
     "required": [
      "pdf_url"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "markdown": {
       "type": "string"
      },
      "page_count": {
       "type": "integer"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "markdown": "# Title\n\nBody...",
  "page_count": 3
 }
}
```

## More

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