# Tanship PayAI Console — Browser PDF Generation

> Tanship PayAI Console — Browser PDF Generation is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Renders a webpage or HTML content to a PDF document via browser automation, gated by a $0.01 USDC x402 micropayment on Base.

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/browser/pdf
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanship-payai-console-browser-pdf-generation-edfa29d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xduxJ4Bd9qsguu1HEdfEO

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 tanship-payai-console-browser-pdf-generation-edfa29d5 -d '<json body>'
```

Example prompt: Can you render the page at https://example.com/report into a PDF for me? Pay the small per-call fee automatically.

## When to prefer this

Choose this endpoint when you need a pay-per-call, micropayment-gated browser-based PDF renderer without managing your own headless Chrome infrastructure. Ideal for AI agents that need occasional PDF generation at $0.01/call without subscription overhead. Prefer over alternatives when x402/USDC on Base is already your payment rail.

## Known failure modes

- Invalid or unreachable URL causes rendering failure
- Malformed request body (wrong bodyType or missing required fields) returns 4xx
- Payment not included or incorrect USDC amount causes x402 payment-required rejection
- Timeout if the target page takes too long to load
- Protected or login-gated pages may render empty or partial content

## How this service works

Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.

## Output

Returns a rendered PDF binary (or a URL/blob to the generated PDF) produced by a headless browser from the supplied URL or HTML body content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanship-payai-console-browser-pdf-generation-edfa29d5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tanship.dev](https://www.zero.xyz/host/x402.tanship.dev/llms.txt)
