# ForgeKit PDF Generation

> ForgeKit PDF Generation is a paid API for AI agents from useforgekit.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Converts a URL or raw HTML string into a PDF document

## Facts

- Endpoint: POST https://useforgekit.dev/api/v1/pdf
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgekit-pdf-generation-a0f6faff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cBgnuL5NLjXXuIAwwSqLk

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 forgekit-pdf-generation-a0f6faff -d '<json body>'
```

Example prompt: Can you convert this HTML invoice template into a PDF for me? Here's the HTML: '<html><body><h1>Invoice #1234</h1><p>Amount due: $500</p></body></html>' — use A4 format.

## When to prefer this

Choose this endpoint when you need to programmatically convert a webpage or HTML markup into a PDF document — especially in automated workflows, invoice generation, report exporting, or archiving web content. It supports both live URL rendering and raw HTML input, making it versatile for both scraping-to-PDF and template-to-PDF use cases. Prefer it over headless browser setups when a lightweight, pay-per-call API is sufficient.

## Known failure modes

- Invalid or unreachable URL returns an error
- Malformed HTML may produce a blank or broken PDF
- Unsupported format value may cause a validation error
- Network timeout if the target URL is slow to load
- Missing both url and html fields results in a bad request error

## How this service works

ForgeKit PDF (URL or HTML → PDF)

## Output

A PDF file (binary) rendered from the provided URL or HTML string, in the specified page format (e.g. A4, letter). The agent receives the PDF content which can be saved, sent, or returned to the user.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "html": {
   "type": "string"
  },
  "format": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgekit-pdf-generation-a0f6faff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from useforgekit.dev](https://www.zero.xyz/host/useforgekit.dev/llms.txt)
