# Utilia PDF to Markdown

> Utilia PDF to Markdown is a paid API for AI agents from api.utilia.ink, paid per call via x402, $0.0025/call, status down (last checked 2026-10-12).

Converts a public HTTPS URL or base64-encoded PDF into page-delimited Markdown, returning metadata, page count, truncation status, and a SHA-256 digest of the source document.

## Facts

- Endpoint: POST https://api.utilia.ink/v1/pdf/to-markdown?utm_source=zero.xyz
- Price: $0.0025/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/utilia-pdf-to-markdown-5c1bd21c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lPgQJms52zpbdxi1bDozI

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 utilia-pdf-to-markdown-5c1bd21c -d '<json body>'
```

Example prompt: Can you convert this PDF at https://example.com/report.pdf into Markdown so I can read through its contents, and let me know how many pages it has and whether anything got cut off?

## When to prefer this

Choose this endpoint when you need to programmatically convert a PDF (either hosted at a public HTTPS URL or provided as base64) into clean, page-delimited Markdown with integrity guarantees via SHA-256 hashing. It is ideal for agent pipelines that ingest documents for downstream analysis, summarization, or search, especially when page-level structure and truncation awareness are important. It suits pay-per-call agent workflows using the x402 payment protocol.

## Known failure modes

- URL not publicly accessible or returns non-200 — conversion fails with fetch error
- Malformed or corrupted PDF binary — parse error returned
- Base64 input is not a valid PDF — invalid input error
- PDF exceeds size or page limits — truncation flag set to true or rejection error
- Non-HTTPS URL provided — rejected for security reasons
- Payment not included or invalid — x402 payment required error

## How this service works

Give a Solana agent live compute-unit price bids for $0.002 per call via x402 USDC. One AgentCash command, no API key or subscription.

## Output

Returns page-delimited Markdown text of the entire PDF document, along with metadata fields including total page count, a boolean truncation status indicating whether the output was cut short, and a SHA-256 digest of the original source document for integrity verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "pattern": "^https://",
   "description": "Public HTTPS PDF URL"
  },
  "title": {
   "type": "string",
   "maxLength": 200
  },
  "maxPages": {
   "type": "integer",
   "default": 50,
   "maximum": 100,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "title": "Quarterly report",
  "sha256": "47b9...",
  "markdown": "# Quarterly report\n\n## Page 1\n\n...",
  "totalPages": 4,
  "sourceBytes": 48321,
  "textCharacters": 12940
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/utilia-pdf-to-markdown-5c1bd21c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.utilia.ink](https://www.zero.xyz/host/api.utilia.ink/llms.txt)
