Skip to content
Fourohtwo

Extract printed text from a public PNG, JPEG, WebP, GIF or TIFF

tanod.dev/v1/ocr

Extract printed text from a public PNG, JPEG, WebP, GIF or TIFF; returns word count and mean confidence. Use when an agent needs image to text: extract text from an image such as a scan, screenshot or photo.

BasePolygonSolanaBNB ChainArbitrumUnchecked
POSThttps://tanod.dev/v1/ocr

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://tanod.dev/v1/ocr", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"lang":"eng","url":"https://tesseract-ocr.github.io/tessdoc/images/eurotext.png"}),
});
console.log(await res.json());

Example input

{
  "lang": "eng",
  "url": "https://tesseract-ocr.github.io/tessdoc/images/eurotext.png"
}

More from Tanod sitepeek