# Agent402 PDF Summarize

> Agent402 PDF Summarize is a paid API for AI agents from agent402.tools, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Downloads a PDF from a public URL and returns an AI-generated text summary of configurable length

## Facts

- Endpoint: POST https://agent402.tools/api/pdf-summarize
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-pdf-summarize-d3471385
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RVjk7nrGQjA8AQtbbZbKj

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 agent402-pdf-summarize-d3471385 -d '<json body>'
```

Example prompt: Can you summarize the Bitcoin whitepaper at https://bitcoin.org/bitcoin.pdf for me in about 150 words?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call AI summary of any publicly accessible PDF without managing API keys, model credentials, or document parsing infrastructure. It is ideal for agents that encounter PDF URLs at runtime and need to extract meaning on the fly. Prefer it over general-purpose LLM calls when you want document fetching, text extraction, and summarization bundled into a single atomic operation paid for in USDC per call.

## Known failure modes

- PDF URL is not publicly accessible or returns 4xx/5xx — endpoint cannot fetch the document
- URL points to a non-PDF file — parsing will fail or produce garbage output
- PDF is encrypted or password-protected — text extraction will fail
- maxWords outside the 50-500 range may produce unexpected summary length
- Very large PDFs may be truncated (truncatedInput: true), resulting in an incomplete summary
- Network timeout if the remote PDF server is slow to respond

## How this service works

Fetch a PDF from a URL, extract its text, and return a concise AI-generated summary - factual, no information added beyond what's in the document. Body: {"url":"https://…/file.pdf","maxWords":200?}. Uses the same OpenAI-compatible gateway as /v1/chat/completions internally; the model that actually served is disclosed in the response.

## Output

A JSON object containing the source URL, the AI model used (openai/gpt-4o-mini), the number of pages in the PDF, a prose summary string, the total word count of the original document, a flag indicating whether the input was truncated, and the word count of the generated summary.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public http(s) URL of a PDF"
  },
  "maxWords": {
   "type": "number",
   "description": "Target summary length in words, 50-500 (default 200)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://bitcoin.org/bitcoin.pdf",
  "model": "openai/gpt-4o-mini",
  "pages": 9,
  "summary": "The paper proposes a peer-to-peer electronic cash system that lets online payments move directly between parties without a financial institution, using a proof-of-work chain as a timestamp server to prevent double-spending…",
  "wordCount": 3604,
  "truncatedInput": false,
  "summaryWordCount": 148
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-pdf-summarize-d3471385/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
