H

Hugen · Visual OCR

by Hugen

GETBaseSolana

$0.05

per call · USD Coin on Base

OCR extraction from scanned PDF documents (English). Uses Tesseract to read text from image-based pages that have no embedded text layer. Returns structured text and metadata. Ideal for invoices, receipts, contracts, and legacy documents. $0.05 per extraction.

Endpoint

GET https://visual.hugen.tokyo/visual/ocr

3

Calls / 30d

2

Unique payers / 30d

Sep 2

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://visual.hugen.tokyo/visual/ocr", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://visual.hugen.tokyo/visual/ocr?max_pages=50&url=https%3A%2F%2Fexample.com%2Fscanned-invoice.pdf" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "metadata": {
    "file_size_bytes": 1548290,
    "page_count": 3
  },
  "summary_stats": {
    "has_text": true,
    "ocr_pages": 3,
    "total_characters": 2840
  }
}

Payment details

Pay to0x29322ea7ecb34aa6164cb2ddeb9ce650902e4f60
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Hugen & similar services