Skip to content
Fourohtwo

PDF text extraction for RAG

api.agentwork.run/v1/pdf/read

PDF text extraction for RAG: page-aware JSON (pages[].page + pages[].text, page_count, empty_text_pages, combined text, source + text SHA-256). Embedded text only, no OCR. $0.01 USDC on Base or Algorand. Caps 20 pages / 5 MiB / 100k chars. Failed extractions not settled. Free preview: add preview=1 (GET or POST) for the first 500 characters unpaid (rate-limited) so you can judge quality before pay

BaseAlgorandAnswering
GEThttps://api.agentwork.run/v1/pdf/read

Uptime100% of 1 check 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://api.agentwork.run/v1/pdf/read?url=https%3A%2F%2Fwww.w3.org%2FWAI%2FER%2Ftests%2Fxhtml%2Ftestfiles%2Fresources%2Fpdf%2Fdummy.pdf");
console.log(await res.json());

Example input

{
  "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
}

More from AgentWork Web EvidenceProvider status