Skip to content
Fourohtwo

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

Read the text from up to 10 images, scans or PDFs in one paid call, cheaper than one call per file. Use for a stack of receipts, pages of a scanned letter, photos of forms or a folder of screenshots. Send {files:[{url} or {base64}], lang}. Max 30 pages across the batch, 20 MB per file. Each file gets its own result or error. Returns {files, pages, results:[{index, text, method, pages}]}. Errors: 4

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

Uptime100% of 3 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-batch", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"files":[{"url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"},{"url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}],"lang":"eng"}),
});
console.log(await res.json());

Example input

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

More from Agent Tools UKProvider status