Skip to content
Fourohtwo

Extract text from a PNG or JPEG image

agent402.tools/api/image-ocr

Extract text from a PNG or JPEG image - full text, overall confidence and per-line bounding boxes - from a URL or base64 payload, Tesseract on-device (no upstream API). Default English; other ISO 639-2 languages on request. Use it when an agent needs the words in a screenshot, scan or photo.

SolanaBaseAnswering
POSThttps://agent402.tools/api/image-ocr

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://agent402.tools/api/image-ocr", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://agent402.tools/fixtures/sample-text.png"}),
});
console.log(await res.json());

Example input

{
  "url": "https://agent402.tools/fixtures/sample-text.png"
}

Price changes

  • Nov 25, 20260.006 → 0.01
  • Nov 25, 20260.01 → 0.006