# the402.ai PDF Generation

> the402.ai PDF Generation is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.032/call, status down (last checked 2026-09-15).

Generates a PDF document on-demand via a paid API call on the the402.ai agent service marketplace

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_fa0c3f78361a4baa/purchase
- Price: $0.032/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-the402-ai-54450994
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5yQOCyozEyxYfIssHkxNa

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 api-the402-ai-54450994 -d '<json body>'
```

Example prompt: Can you generate a PDF of the following invoice text for me and return the file: 'Invoice #1042 — Acme Corp — Due: $450.00 — Due Date: June 15, 2025'?

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically generate a PDF document and can pay per-use via USDC micropayment (x402 protocol). Ideal for agentic workflows where PDF creation is a one-off or infrequent task and a subscription service is not warranted.

## Known failure modes

- Payment not submitted or insufficient USDC — 402 Payment Required error
- Invalid or missing document content — 400 Bad Request
- Service temporarily unavailable — 503 error
- Malformed input parameters — validation error response
- Generation timeout for very large documents

## How this service works

Purchase: PDF Generation

## Output

A generated PDF document returned as binary or downloadable content, produced from the submitted input content or parameters, delivered after a $0.032 USDC micropayment via the x402 protocol.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-the402-ai-54450994/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
