Anokha Web Tools

POST /v1/render/pdf

Convert Markdown, HTML or plain text into a clean, printable PDF. Returns a public download URL (kept 30 days). Tables, code blocks, headings supported.

Price: $0.02 per call, paid in USDC on Base via x402. No API key or signup.

Example call

npx x402-fetch -X POST -H 'Content-Type: application/json' -d '{"content": "# Report\n\n| a | b |\n|---|---|\n| 1 | 2 |", "format": "markdown", "title": "Report"}' https://tools.anokha.space/v1/render/pdf

Example response

{
  "url": "https://tools.anokha.space/f/abc123def456.pdf",
  "bytes": 20480,
  "expires": "2026-10-25T00:00:00Z",
  "content_type": "application/pdf"
}

How payment works

The first request returns HTTP 402 with a PAYMENT-REQUIRED header. An x402 client signs a USDC authorization and retries with a PAYMENT-SIGNATURE header. You are charged only when the call succeeds.