# fastapi.online PDF Extract

> fastapi.online PDF Extract is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0015/call, status down (last checked 2026-09-15).

Extracts text content and page data from a PDF file, returning structured text and per-page information.

## Facts

- Endpoint: POST https://api.fastapi.online/pdf-extract
- Price: $0.0015/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-pdf-extract-803f2c84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DBsRM1Dw6L-hYd_kXmPIG

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 fastapi-online-pdf-extract-803f2c84 -d '<json body>'
```

Example prompt: Can you extract all the text from this PDF file I'm uploading and give me the content page by page?

## When to prefer this

Choose this endpoint when you need fast, pay-per-call PDF text extraction without account signup, especially in automated agent pipelines that pay with crypto (USDC). Prefer this over hosted document APIs when you want no subscription commitment and are already using the fastapi.online ecosystem for other AI inference tasks.

## Known failure modes

- File not provided or invalid — missing required 'file' field returns an error
- Non-PDF or corrupted file submitted — may return empty text or processing error
- Very large PDFs may time out or return partial results
- Scanned image-only PDFs with no embedded text may produce empty or poor-quality extraction
- Payment failure via x402 protocol results in 402 response before processing begins

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns a JSON object containing the full extracted text as a string, an array of pages with per-page content, the OCR engine used, and the total page count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "file": {
   "type": "string",
   "format": "binary",
   "description": "PDF file"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-pdf-extract-803f2c84/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
