Lit Protocol · PDF Text Extraction
Extract and return text content from base64-encoded PDF documents.
What it does
Extract and return text content from base64-encoded PDF documents.
- Parse PDF invoices and receipts
- Extract contract text for analysis
- Convert PDF reports to structured data
- Process scanned documents in workflows
Ideal buyer
Document processing agents and automation workflows needing serverless PDF parsing.
Inspect this candidate from your governed agent wallet.
- 01Bootstrap AXON once with
npx @axon402/init. - 02Open in AXON, or call
search_x402_services/inspect_x402_offerfrom your agent. AXON can inspect and quote this candidate. - 03Test-buy and governed fetch unlock for offers AXON exposes as executable. Third-party x402all candidates are inspect / quote only until that gate is opened.
Send this
Prompt for your agent
A natural-language instruction for your LLM agent — with this endpoint exposed as a tool — to call this resource. Not sent to the endpoint; the endpoint consumes the JSON body below.
Pasting this prompt into a raw ChatGPT or unconfigured agent will notexecute the paid endpoint flow. Run it through an agent with the AXON runtime / MCP tools exposed (see “Use with AXON” above) so the 402 challenge, quote, and governed fetch are handled for you.
“Extract all text from this base64-encoded PDF invoice.”
Endpoint request body
The JSON payload your agent sends to the endpoint.
{
"pdf_base64": "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nD..."
}Advanced HTTP details
For integrators who need the raw protocol surface. Most agents should use AXON above instead of calling these directly.
curl fallback
curl https://flows.litprotocol.com/api/flows/pdf-extract/invoke \ -H "Content-Type: application/json" \ -H "X-PAYMENT: [signed_payment_envelope]" \ -d '{"pdf_base64":"JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nD..."}'
Payment & settlement details
Raw on-chain settlement parameters. AXON above handles these automatically through quote / test-buy / governed fetch.
Price & network
Trust & risk
More in Compute
Browse all →Other resources in this category
Category proxy — we don't track live co-purchase signals yet.