85trust / 100

Extract Text

by Ausca OCR in Search & web

x402 APIPassing, checked 3 h ago

Extract normalized text from a scanned document.

POST https://ausca.com/v1/extract-text

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://ausca.com/v1/extract-text" \
  -H "content-type: application/json" \
  -d '{"idempotency_key":"ausca-x402-discovery-example","input":{"artifact":{"artifact_ref":"runx:artifact:sha256:1111111111111111111111111111111111111111111111111111111111111111","content_digest":"sha256:2222222222222222222222222222222222222222222222222222222222222222","media_type":"application/pdf"}},"input_schema_digest":"sha256:aa86a0fc7e01438f3f99dc35550f4c3d710795e4302e489de32eae7e403ffd5d","offer_id":"document.ocr","offer_revision":"ocr-fixed-r9","offer_revision_digest":"sha256:7948206419344081cfaf033975ce54a8dd9e934ed4006d790dc94375a80f0c13","output_schema_digest":"sha256:d9f05704955fca53ed5813e2522f56d4b9fb95e072f84771a369f780b77741d6"}'
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fausca.com%2Fv1%2Fextract-text
const res = await pay("https://ausca.com/v1/extract-text", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"idempotency_key":"ausca-x402-discovery-example","input":{"artifact":{"artifact_ref":"runx:artifact:sha256:1111111111111111111111111111111111111111111111111111111111111111","content_digest":"sha256:2222222222222222222222222222222222222222222222222222222222222222","media_type":"application/pdf"}},"input_schema_digest":"sha256:aa86a0fc7e01438f3f99dc35550f4c3d710795e4302e489de32eae7e403ffd5d","offer_id":"document.ocr","offer_revision":"ocr-fixed-r9","offer_revision_digest":"sha256:7948206419344081cfaf033975ce54a8dd9e934ed4006d790dc94375a80f0c13","output_schema_digest":"sha256:d9f05704955fca53ed5813e2522f56d4b9fb95e072f84771a369f780b77741d6"}),
});
console.log(await res.json());

Example input

{
  "idempotency_key": "ausca-x402-discovery-example",
  "input": {
    "artifact": {
      "artifact_ref": "runx:artifact:sha256:1111111111111111111111111111111111111111111111111111111111111111",
      "content_digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
      "media_type": "application/pdf"
    }
  },
  "input_schema_digest": "sha256:aa86a0fc7e01438f3f99dc35550f4c3d710795e4302e489de32eae7e403ffd5d",
  "offer_id": "document.ocr",
  "offer_revision": "ocr-fixed-r9",
  "offer_revision_digest": "sha256:7948206419344081cfaf033975ce54a8dd9e934ed4006d790dc94375a80f0c13",
  "output_schema_digest": "sha256:d9f05704955fca53ed5813e2522f56d4b9fb95e072f84771a369f780b77741d6"
}

Example output

{
  "inspect_url": "/v1/invocations/ausca-discovery-example",
  "invocation": {
    "invocation_id": "ausca-discovery-example",
    "offer_revision_digest": "sha256:7948206419344081cfaf033975ce54a8dd9e934ed4006d790dc94375a80f0c13",
    "output": {
      "lines": [
        {
          "confidence": 0.99,
          "page": 1,
          "text": "scan me"
        }
      ],
      "schema": "ausca.document_ocr.output.v1",
      "source_digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
      "text": "scan me"
    },
    "output_digest": "sha256:1b1057f8369deda528ab95671b785812745810d7dbc259a414adc190ac14c068",
    "receipt_ref": {
      "public_url": "https://runx.ai/r/0000000000000000000000000000000000000000000000000000000000000000",
      "type": "receipt",
      "uri": "runx:receipt:discovery-example"
    },
    "state": "succeeded",
    "updated_at": "2026-01-01T00:00:00Z"
  },
  "status": "accepted"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402135 ms$0.25