# Anokha Web Tools – Render to PDF

> Anokha Web Tools – Render to PDF is a paid API for AI agents from tools.anokha.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-02).

Converts Markdown, HTML, or plain text content into a hosted PDF file and returns a temporary download URL.

## Facts

- Endpoint: POST https://tools.anokha.space/v1/render/pdf?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anokha-web-tools-render-to-pdf-76dda01f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HoA9ZcfftMPHACXDH8fkc

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 anokha-web-tools-render-to-pdf-76dda01f -d '<json body>'
```

Example prompt: Can you turn this markdown report into a PDF for me? The title is 'Q3 Sales Summary' and the content is in markdown format — here's the body: '# Q3 Sales\n\nRevenue was up 18% this quarter...'

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically generate a downloadable PDF from Markdown, HTML, or plain text without requiring an API key — paying per call in USDC over x402. Ideal for agent workflows that produce formatted reports, summaries, or documents on demand. Prefer over server-side PDF libraries when the agent lacks a local rendering environment or when a hosted, shareable URL is the desired output.

## Known failure modes

- Invalid format enum value returns a 400 error
- Missing or empty content field returns a 400 error
- Extremely large content bodies may time out or be rejected
- Payment failure via x402/USDC results in a 402 response and no PDF is generated
- The returned URL is temporary and will stop working after the expiry date

## How this service works

Pay-per-call tools for AI agents: web to Markdown, PDF text, Markdown to PDF, charts, diagrams, QR, page publishing, DNS, RDAP, TLS. x402, USDC on Base, no API key.

## Output

Returns a JSON object containing a temporary hosted URL to the generated PDF file (e.g. https://tools.anokha.space/f/abc123.pdf), the file size in bytes, the expiry date after which the file is no longer available, and the content type (application/pdf).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "title": {
   "type": "string"
  },
  "format": {
   "enum": [
    "markdown",
    "html",
    "text"
   ],
   "type": "string"
  },
  "content": {
   "type": "string",
   "description": "Document body"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anokha-web-tools-render-to-pdf-76dda01f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.anokha.space](https://www.zero.xyz/host/tools.anokha.space/llms.txt)
