46trust / 100

Ocr

by Nero Labs Agent Tools in Documents & files

x402 APIFailing, checked 17 h ago

Reads the text in images (PNG, JPEG, WebP, TIFF and more) and scanned or born-digital PDFs with OCR, in 100+ languages, and returns the text per file and per page with confidence scores. Up to 10 files a call. Priced per page allowance: files x maxPagesPerFile (default 5, at most 20) x $0.005. Runs nerolabs/bulk-ocr-image-pdf-to-text; can take a minute or two.

POST
https://x402-agent-tools.nerolabs.workers.dev/ocr
Price
$0.005
per call in USDC
Uptime
97.8%
last 30 days
Response time
566 ms
1.1 s slowest 5%
Last check
Failed
17 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 17 h ago: Timed out

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://x402-agent-tools.nerolabs.workers.dev/ocr

Each call costs $0.005 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://x402-agent-tools.nerolabs.workers.dev/ocr
content-type: application/json

{
  "fileUrls": [
    "https://nerolabs-samples.nerolabs.workers.dev/sample-receipt.png"
  ],
  "maxPagesPerFile": 1
}

Parameters

ParameterTypeRequiredDescription
dpiintegerNoResolution used to render PDF pages before recognition. 200 suits most scans; 300 helps small print and takes about twice as long; 150 is faster for large clean type. Images are used at their own resolution, enlarged when small and capped at 4000 pixels on the longest side. Default: 200.
fileUrlsarrayYesA plain list of image (PNG, JPEG, WebP, GIF, BMP, TIFF) or PDF links, for a quick one-off run with no spreadsheet. Use the dataset, file or Google Sheet inputs above to keep your own columns alongside the results.
includePageTextbooleanNoAdd a 'pages' array with each page's text, method (OCR or copied text layer), confidence and word count, on top of the combined text. Useful for citing a page number, and it makes rows larger. Default: false.
languagesarrayNoTesseract language codes, one per line, for example eng, deu, fra, spa, por, ita, nld, pol, rus, jpn, chi_sim, chi_tra, ara, hin, kor. Several codes read mixed documents. English is built in; any other language is downloaded once at the start of the run (5 to 15 MB each). Picking the right language
maxPagesPerFileintegerNoPages read from each PDF before stopping. This is also your cost ceiling per file: a 300-page scan cannot run up a bill you did not expect. Images always count as one page. Default: 20.
minWordConfidenceintegerNoDrop words the engine is less sure about than this, from 0 to 100. Leave at 0 to keep everything and judge by the reported confidence instead. Raising it cuts noise out of poor scans at the cost of real words. Default: 0.
pageSegmentationstringNoHow the engine should look for text. 'Automatic' handles documents, receipts and letters. 'Sparse' finds scattered text on screenshots, slides and product photos. 'Single block' suits a cropped paragraph, 'single column' a narrow receipt, 'single line' a cropped field. One of: auto, sparse, single_block, single_column, single_line. Default: "auto".
usePdfTextLayerbooleanNoA born-digital PDF page already contains its text. When this is on, such pages are copied exactly and charged at the low text-layer rate instead of being rendered and recognised. Turn it off to force OCR on every page, for example when a PDF's text layer is known to be garbage. Default: true.

Example response

The provider's example. We can't check it without paying.

{
  "_example_note": "Real output, trimmed: long lists cut to their first items, fields and text shortened.",
  "count": 1,
  "rows": [
    {
      "blankPages": 0,
      "charCount": 346,
      "confidence": 91.8,
      "fileType": "png",
      "ocrPages": 1,
      "ocrStatus": "ok",
      "pageCount": 1,
      "pagesRead": 1,
      "pagesTruncated": false,
      "resolvedUrl": "https://nerolabs-samples.nerolabs.workers.dev/sample-receipt.png",
      "sourceUrl": "https://nerolabs-samples.nerolabs.workers.dev/sample-receipt.png",
      "statusDetail": null,
      "textLayerPages": 0,
      "wordCount": 65
    }
  ]
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://x402-agent-tools.nerolabs.workers.dev/ocr' \
  -H 'content-type: application/json' \
  --data-raw '{"fileUrls":["https://nerolabs-samples.nerolabs.workers.dev/sample-receipt.png"],"maxPagesPerFile":1}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://x402-agent-tools.nerolabs.workers.dev/ocr' \
  -H 'content-type: application/json' \
  --data-raw '{"fileUrls":["https://nerolabs-samples.nerolabs.workers.dev/sample-receipt.png"],"maxPagesPerFile":1}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-agent-tools.nerolabs.workers.dev%2Focr&method=POST
const res = await pay("https://x402-agent-tools.nerolabs.workers.dev/ocr", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "fileUrls": [
      "https://nerolabs-samples.nerolabs.workers.dev/sample-receipt.png"
    ],
    "maxPagesPerFile": 1
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://x402-agent-tools.nerolabs.workers.dev/ocr",
        json={
            "fileUrls": [
                "https://nerolabs-samples.nerolabs.workers.dev/sample-receipt.png",
            ],
            "maxPagesPerFile": 1,
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
17 h agoTimed out---
3 days agoTimed out---
4 days agoPassed402524 ms$0.005
5 days agoPassed402554 ms$0.005
5 days agoPassed4021.1 s$0.005
Show 10 older checks
6 days agoPassed402114 ms$0.005
7 days agoPassed402770 ms$0.005
7 days agoPassed402745 ms$0.005
8 days agoPassed402795 ms$0.005
8 days agoPassed402124 ms$0.005
9 days agoPassed402693 ms$0.005
9 days agoPassed402119 ms$0.005
9 days agoPassed402756 ms$0.005
10 days agoPassed402627 ms$0.005
10 days agoPassed402158 ms$0.005

History

22 Oct 2026Payment address changed from 0xbe3942b2519520Ae4F3963273F7D7f0440D67292 to 0xA969a3127DcC74B2989a4b4e45Ae61B81093164A