x402 Bazaar Logox402 Bazaar
← Back to discover
httppayai

Agent Extraction API

Invoice or receipt (PDF, PNG/JPEG/WebP image, or plain text) to structured JSON with a fixed schema: vendor (name, address, VAT ID, email, phone, IBAN), customer, invoice number, order number, issue/due date, currency (ISO 4217), subtotal, VAT total, total, amount due, VAT breakdown and line items. Every field has value, the verbatim source quote and a confidence score (0-1: quote found in the document, value matches quote, totals add up). Arithmetic checks included. $0.0075 per page (max 10 pages per call; the 402 quotes pages x $0.0075), 1 free call per caller (up to 3 pages). Runs on Cloudflare Workers AI only (PDF text layer via toMarkdown, OCR for images); documents are not stored. Scanned PDFs without a text layer: send page images. POST JSON {url} or {file_base64, mime_type} or {text}, or POST the raw file (Content-Type application/pdf or image/*); GET ?url= or ?text= also works.

Resource URL

https://freetier-agent-api.pages.dev/api/invoice-json

Payment options

exactBase (8453)

$0.0075 USDC

Max amount

Pay to
0x165Eb3dC3E98403ecB1141e90400F5e71806554B
Timeout
300s

Tags

invoicereceiptdocument-extractionocraccounting

For agents

Prompt snippet for AI agents

Find and pay for this x402 resource:
URL: https://freetier-agent-api.pages.dev/api/invoice-json
Type: http
Sources: payai

Developer