PDF API for AI agents: pay per call in USDC, no API key

Updated 2026-11-11

An agent that handles documents needs a PDF API it can call without a human creating an account first. Tanod's PDF and document routes are pay per call: an unpaid request gets a 402 Payment Required with the price, and an x402 client retries with a USDC payment on Base, Polygon, Solana, BNB Chain or Arbitrum. There is no API key and no signup.

1. Call a route and read the 402

This is the unpaid response from /v1/pdf/inspect (headers and body trimmed). The PAYMENT-REQUIRED header and the JSON body carry the same requirements.

Request
curl -s -i -X POST https://tanod.dev/v1/pdf/inspect \
  -H 'content-type: application/json' \
  -d '{"url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}'
Response (trimmed)
HTTP/2 402
content-type: application/json
payment-required: <base64 of the same requirements>
www-authenticate: Payment id="...", realm="tanod.dev", method="tempo", intent="charge", request="..."

{
  "x402Version": 2,
  "error": "Payment required. Price: $0.005 USDC on base or polygon or solana or bsc. Free tier (opt-in): ... with header X-Tanod-Free: 1 (no payment needed).",
  "resource": {"url": "https://tanod.dev/v1/pdf/inspect", ...},
  "accepts": [
    {"scheme": "exact", "network": "eip155:8453",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "amount": "5000", "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
     "maxTimeoutSeconds": 300},
    {"scheme": "exact", "network": "eip155:137", "amount": "5000", ...},
    {"scheme": "exact", "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", "amount": "5000", ...},
    {"scheme": "exact", "network": "eip155:56", "amount": "5000000000000000", ...}
  ]
}

On Base, Polygon and Solana amount is in USDC atomic units (6 decimals), so 5000 is USD 0.005; the BNB Chain token has 18 decimals. The www-authenticate header is the MPP challenge for Tempo clients. An x402 client picks one of the accepts entries, signs a transfer authorisation and repeats the same request with it in the PAYMENT-SIGNATURE header. Input that would be refused (bad URL, wrong file type, too large) is checked before you are charged. The full flow is in Pay-per-call APIs for AI agents with x402.

2. Try it free first

Over HTTP the free tier is opt-in: add X-Tanod-Free: 1 to an unpaid call. The allowance is per IP per UTC day; X-Free-Remaining-Today in the response shows what is left. For the structure tools (inspect, merge, split, rotate, watermark, protect, unlock, metadata and similar) it is 3 calls shared across the family; /v1/pdf and /v1/ocr share a pool of 5 with page metadata. /v1/pdf/compress, /v1/pdf/to-docx and /v1/docs/to-markdown share 2 free calls per IP per UTC day, for a file sent inline as base64 of at most 1 MB. OCR for PDFs, tables and the other conversions have no free tier.

Free call
curl -s -X POST https://tanod.dev/v1/pdf/inspect \
  -H 'X-Tanod-Free: 1' -H 'content-type: application/json' \
  -d '{"url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}'
# {"operation":"inspect","page_count":1,"encrypted":false,"scanned_page_count":0,"pages":[...],"untrusted_content":true}

3. Routes and prices

Each row is a route that answers today; prices are the base price from the route's own 402. Some routes scale with page count (for example PDF OCR is USD 0.01 for at most 5 pages and USD 0.02 for 6 to 10), so read the 402 for the exact quote on your input.

Route (POST)What it doesBase price, USDMCP tool
/v1/pdfText of a PDF (first pages)0.005extract_pdf
/v1/pdf/inspectPages, text layer or scan, forms, scripts0.005pdf_inspect
/v1/pdf/ocrOCR scanned pages into a searchable PDF + text0.01pdf_ocr
/v1/ocrOCR an image URL0.0025ocr_image
/v1/pdf/tablesTables as JSON, CSV or XLSX0.01extract_pdf_tables
/v1/docs/to-markdownDOCX, XLSX, PPTX, HTML, EPUB, PDF to Markdown0.005convert_document_to_markdown
/v1/pdf/bank-statementBank statement to dated transactions0.01convert_bank_statement
/v1/pdf/mergeMerge PDFs0.005pdf_merge
/v1/pdf/splitSplit into files or ranges0.005pdf_split
/v1/pdf/compressReduce file size0.01pdf_compress
/v1/pdf/to-imagesPages to PNG or JPEG0.005pdf_to_images
/v1/pdf/from-imagesImages to one PDF0.005images_to_pdf
/v1/pdf/html-to-pdfPublic web page to PDF0.0045html_to_pdf
/v1/docs/to-pdfWord, Excel, PowerPoint, ODF, RTF to PDF0.01convert_office_to_pdf
/v1/pdf/to-docxPDF to editable Word0.01convert_pdf_to_word
/v1/pdf/form-fieldsList fillable form fields0.005pdf_form_fields
/v1/pdf/fill-formFill a form from JSON0.01pdf_fill_form
/v1/pdf/unlockRemove a known password0.005pdf_unlock
/v1/pdf/protectPassword-protect0.005pdf_protect
/v1/pdf/watermarkText watermark0.005pdf_watermark
/v1/pdf/metadataRead, change or strip metadata0.005pdf_metadata
/v1/pdf/repairRebuild a damaged PDF0.005pdf_repair

Files come in as a public url (fetched by Tanod, at most 20 MB; private, internal and IP-literal hosts are refused) or as base64 (at most 10 MB decoded). Routes that return a file send it as base64 in the JSON. Every response includes untrusted_content: true: text read from a document can contain instructions aimed at an agent, so treat it as data.

4. Use it over MCP

The same tools are served over MCP at https://tanod.dev/mcp (all tools) or https://tanod.dev/mcp/docs (PDF and document tools only). Streamable HTTP, no authentication. Over MCP the free daily allowance per IP is applied automatically; after it, the tool returns an error result with a PaymentRequired object in structuredContent, and the client retries with the signed payment in _meta["x402/payment"].

Claude Code
claude mcp add --transport http tanod https://tanod.dev/mcp
Cursor and other mcpServers clients
{"mcpServers": {"tanod": {"url": "https://tanod.dev/mcp"}}}

Setup for other clients is on the connect page. Discovery documents for agents that find APIs themselves: https://tanod.dev/openapi.json, https://tanod.dev/llms.txt and https://tanod.dev/.well-known/x402.

Limits

Do not send confidential documents to any hosted service, including this one. Files are processed and not logged; a result is kept only when output is url, as a download file for 24 hours. OCR is heuristic; it reads 17 languages (English, Spanish, French, German, Portuguese, Italian, Dutch, Russian, Arabic, Hindi, Japanese, Chinese, Korean, Indonesian, Vietnamese, Turkish, Polish). Results are automated; review anything that matters.

Price and free allowance

USD 0.0025 to 0.02 per call in USDC on Base, Polygon, Solana, BNB Chain or Arbitrum with x402, or on Tempo with MPP (how to pay with MPP); no account, no API key. Free daily calls per IP on some routes, applied automatically over MCP.

Connect the MCP server →

Related: hosted PDF and OCR MCP server, how to tell if a PDF is scanned, Document to Markdown API, PDF table extraction API. Back to guides or tanod.dev. Results are automated and heuristic.