77trust / 100

Pdf Ocr

by Relaystation PDF OCR in Documents & files

x402 APIPassing, checked 3 h ago

$0.003/page. Extract text from a scanned PDF (Tesseract) — make paper searchable data. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

POST https://api.relaystation.ai/v1/pdf/ocr

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
409 ms typical, 556 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://api.relaystation.ai/v1/pdf/ocr' \
  -H 'content-type: application/json' \
  --data-raw '{"file":{},"lang":"eng","pages":"string"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.relaystation.ai%2Fv1%2Fpdf%2Focr
const res = await pay("https://api.relaystation.ai/v1/pdf/ocr", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"file\":{},\"lang\":\"eng\",\"pages\":\"string\"}",
});
console.log(await res.json());

Example input

{
  "file": {},
  "lang": "eng",
  "pages": "string"
}

Example output

{
  "ok": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402433 ms$0.01
7 h agoPassed402400 ms$0.01
10 h agoPassed402528 ms$0.01
14 h agoPassed402556 ms$0.01
18 h agoPassed402457 ms$0.01
22 h agoPassed402396 ms$0.01
25 h agoPassed402517 ms$0.01
29 h agoPassed402590 ms$0.01
33 h agoPassed402458 ms$0.01
36 h agoPassed402396 ms$0.01
40 h agoPassed402377 ms$0.01
43 h agoPassed402409 ms$0.01
2 days agoPassed402392 ms$0.01
2 days agoPassed402428 ms$0.01
2 days agoPassed402404 ms$0.01