x402-gateway.blackwoodstate8.workers.dev/v1/pdf-text
Use when you need to extract text from a pdf, pdf to text or document parsing for an LLM. Do not use for scanned PDFs (no OCR), password-protected files or files over 15 MB. Returns JSON with PDF text extraction: the text of each page (first 20 pages) plus title, author and producer metadata for 0.0025 USDC per page, up to 0.05 USDC per call (clients without upto pay the cap). Asynchronous: the pa
POST
https://x402-gateway.blackwoodstate8.workers.dev/v1/pdf-textUptime100% of 5 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402-gateway.blackwoodstate8.workers.dev/v1/pdf-text", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"url":"https://pdfobject.com/pdf/sample.pdf"}),
});
console.log(await res.json());Example input
{
"url": "https://pdfobject.com/pdf/sample.pdf"
}