Public HTTPS only
Private-network addresses and unsafe redirects are rejected. Base64 is available through the API when the caller is authorized to send the file.
PDF TO MARKDOWN API X402 NO API KEY
Give Utilia a public PDF URL. Receive page-delimited Markdown, document metadata, page count, and a source SHA-256 digest for exactly $0.0025 USDC.
ONE COMMAND
The client discovers the x402 price, verifies the official receiver and $0.01 safety ceiling, signs the exact payment locally, and returns the result. Your wallet key never goes to Utilia.
# Dedicated low-balance agent wallet
export SOLANA_KEYPAIR_PATH=\
/absolute/path/to/agent-wallet.json
npx -y github:mohamedkuch/utilia-solana-agent#befa103 doctor
npx -y github:mohamedkuch/utilia-solana-agent#befa103 \
pdf-to-markdown https://example.com/report.pdf \
--max-pages 50
DETERMINISTIC OUTPUT
Page markers preserve provenance. The digest lets downstream systems associate derived chunks with the exact source bytes.
{
"title": "Quarterly report",
"totalPages": 4,
"sourceBytes": 48321,
"textCharacters": 12940,
"sha256": "47b9…",
"markdown": "# Quarterly report\n\n## Page 1\n\n…"
}
BOUNDED BY DESIGN
Private-network addresses and unsafe redirects are rejected. Base64 is available through the API when the caller is authorized to send the file.
The service extracts embedded PDF text. Image-only scans may return little text and should use a dedicated OCR workflow.
Failed validation or conversion cancels settlement. Successful calls include the settlement evidence returned by the client.
AGENT-READY DOCUMENT TEXT
Add the skill, point it at a public PDF, and preserve page provenance in your RAG or analysis pipeline.