Example inputPOST /api/v1/x402/render-document-pdf
{
"markdown": "# Invoice",
"page_size": "Letter"
}
Portable intent card · utilities
Render one HTML or Markdown document with optional inline CSS to A4 or Letter PDF. The local renderer blocks external resource fetches and returns the PDF bytes, SHA-256 and page count — $0.005 USDC per paid call through x402.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/render-document-pdf -m POST -H 'x-delx-source: intent-card-render-document-pdf-api' --max-amount 0.005 -b '{"markdown":"# Invoice","page_size":"Letter"}'
{
"markdown": "# Invoice",
"page_size": "Letter"
}
{
"intent": "Render a Document as PDF for an agent workflow",
"tool_name": "render_document_pdf",
"price_usdc": "0.005",
"machine_url": "https://commerce.delx.ai/intents/render-document-pdf-api.json"
}
Portable and inspectable