Skip to content
Fourohtwo

Read the text from a photo, screenshot, scan or scanned PDF (OCR)

agent-tools-production-e6aa.up.railway.app/v1/ocr

Read the text from a photo, screenshot, scan or scanned PDF (OCR). If the PDF already has real text, that is returned instead (faster and exact). Use when text is only available as an image: receipts, letters, forms, signs. Send {url} or {base64}, optional lang (default eng, e.g. eng+fra). Max 20 MB, 20 pages. Returns {text, method, pages}. Errors: 400 bad input, 413 too large.

BaseAnswering
POSThttps://agent-tools-production-e6aa.up.railway.app/v1/ocr

Uptime100% of 4 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://agent-tools-production-e6aa.up.railway.app/v1/ocr", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"lang":"eng","url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}),
});
console.log(await res.json());

Example input

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

More from Agent Tools UKProvider status