Service / document.analysis

Document Analysis

Extract normalized forms, tables, signatures, or layout from a document.

01 / Outcome

What this service does

Prepared, admitted, and continued durably after the initial HTTP response.

Best for

Documents where forms, tables, signatures, or layout need structured extraction.

Returns

A manifest of structured blocks, relationships and counts for each requested feature, with digest-bound result chunks and a notarized receipt; inline up to 64 KiB.

Before you buy

  • Commit one PDF, JPEG, PNG, or TIFF through the free keyless artifact ingress, then carry only its verified immutable commitment. The active input limit is 10 MiB; select one to four unique features.
  • The manifest carries at most 32 ordered result chunks, not 32 physical document pages. Blocks identify their document page; relationships can cross chunks. Requested features with no detections have a count of zero; unrequested features are absent.
  • Forms, tables, signatures and layout remain a block graph, not interpreted business records or independently validated values.
  • The service is asynchronous and bounded to 30 minutes. Read any page or result artifact through POST /v1/artifacts/{artifact_uri}/access; result artifacts are retained for 24 hours.

02 / Price

One clear skill checkout.

The amount shown is the complete skill checkout price. Preparation fixes the exact amount before approval.

Price · all in

$0.30–$0.75

Bounded range. Preparation fixes the exact price from immutable artifact size before approval.

Read the service SKILL.md

Exact terms

Exact pricing units
Model
Artifact-sized
Minimum
30 USD-minor
Maximum
75 USD-minor
Base amount
25 USD-minor
Unit amount
5 USD-minor
Unit bytes
1048576

Preparation fixes the exact checkout amount before approval. The live payment challenge is binding.

Pricing starts at $0.30: a base amount plus $0.05 per started 1 MiB, up to $0.75 at the current artifact limit. The live preparation is binding.

03 / Contract

Pinned before execution.

These values are generated from the active, digest-verified catalog revision.

Status
Active
Offer
document.analysis
Revision
analysis-bytes-r15
Execution
Async
Input artifact
Up to 10 MiB
Bounded wait
30 minutes
Result retention
24 hours
Inline result
Up to 64 KiB
Receipt evidence
Sealed at success, then notarized by an independent party, not by Ausca.
Revision digest
sha256:6e0d6fb55bf4416ad8956b54304fc0240680d0acdad5978822340fdec3ae049b
Input schema digest
sha256:7093216a29925031972d61a7ab5f6013936aac9f81c3c54f51a00a3fef66759b
Output schema digest
sha256:a515b0864320c1a0c7ee7e6ee20ba1eadc94fe58ad955ece7044fd1043b3914c

04 / Invoke

Use the entry point that fits.

Start with SKILL.md for agents, HTTP + x402 for HTTP integrations, or MCP for generated tools.

SKILL.md Recommended for agents

Start from the exact versioned instructions for this service. The skill describes the capability, inputs, payment boundary, retry identity, and evidence without requiring an agent to scrape this page.

Fetch the skill sh
curl --fail --silent --show-error https://ausca.com/skills/document-analysis/SKILL.md
Install with Skills sh
npx -y skills add auscahq/ausca --skill document-analysis

Exact identity: ausca/document-analysis@0.2.1, digest sha256:6abb3bba6662c65844d0533372af4772e515d60f53c8a0177fa7934393a68363.

ausca package npm and PyPI

The front door package wraps this exact flow as a typed client, a CLI, and a local MCP server. Payment signs on your machine under a hard per-call USD cap; the catalog binding, idempotent retry identity, and settlement receipt are built in.

Install sh
npm install ausca viem   # or: pip install ausca
Paid invocation js
import { AuscaClient } from "ausca";

const client = AuscaClient.withLocalKey({
  privateKey: process.env.AUSCA_PRIVATE_KEY,
  maxPaymentUsd: 0.75,
});

// Save one key per intended purchase before paying; reuse it only to recover.
const savedPurchaseKey = "document-analysis-purchase-0001";
const outcome = await client.invoke(
  "document.analysis",
  {
    "artifact": {
      "artifact_uri": "runx:artifact:sha256:4444444444444444444444444444444444444444444444444444444444444444",
      "content_digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
      "media_type": "application/pdf"
    },
    "feature_types": [
      "FORMS",
      "TABLES"
    ]
  },
  { idempotencyKey: savedPurchaseKey },
);
console.log(outcome.result, outcome.payment?.transaction);

MCP hosts: npx ausca mcp serves this offer as ausca_analyze_document, paying locally within AUSCA_MAX_PAYMENT_USD.

HTTP + x402 HTTP client

Send the exact invocation envelope without payment material to discover live binding terms. Use a supported x402 client for the authorized retry; do not paste a sample signature.

Unsigned discovery sh
curl --request POST https://ausca.com/v1/analyze-document \
  --header 'Content-Type: application/json' \
  --data @ausca-document-analysis-request.json
ausca-document-analysis-request.json json
{
  "idempotency_key": "ausca-document-analysis-example-0001",
  "input": {
    "artifact": {
      "artifact_uri": "runx:artifact:sha256:4444444444444444444444444444444444444444444444444444444444444444",
      "content_digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
      "media_type": "application/pdf"
    },
    "feature_types": [
      "FORMS",
      "TABLES"
    ]
  },
  "input_schema_digest": "sha256:7093216a29925031972d61a7ab5f6013936aac9f81c3c54f51a00a3fef66759b",
  "offer_id": "document.analysis",
  "offer_revision": "analysis-bytes-r15",
  "offer_revision_digest": "sha256:6e0d6fb55bf4416ad8956b54304fc0240680d0acdad5978822340fdec3ae049b",
  "output_schema_digest": "sha256:a515b0864320c1a0c7ee7e6ee20ba1eadc94fe58ad955ece7044fd1043b3914c"
}

Expected first response: 402 with matching x402 v2 PAYMENT-REQUIRED header and body. A valid paid retry returns the admitted or replayed invocation.

MCP Discovery and control

MCP projects the same Ausca contract. Paid invocation is disabled by default and must be enabled deliberately by a compatible host. MCP does not carry x402 HTTP headers.

ausca_analyze_document json
{
  "jsonrpc": "2.0",
  "id": "document-analysis-example",
  "method": "tools/call",
  "params": {
    "name": "ausca_analyze_document",
    "arguments": {
      "idempotency_key": "ausca-document-analysis-example-0001",
      "input": {
        "artifact": {
          "artifact_uri": "runx:artifact:sha256:4444444444444444444444444444444444444444444444444444444444444444",
          "content_digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
          "media_type": "application/pdf"
        },
        "feature_types": [
          "FORMS",
          "TABLES"
        ]
      },
      "input_schema_digest": "sha256:7093216a29925031972d61a7ab5f6013936aac9f81c3c54f51a00a3fef66759b",
      "offer_id": "document.analysis",
      "offer_revision": "analysis-bytes-r15",
      "offer_revision_digest": "sha256:6e0d6fb55bf4416ad8956b54304fc0240680d0acdad5978822340fdec3ae049b",
      "output_schema_digest": "sha256:a515b0864320c1a0c7ee7e6ee20ba1eadc94fe58ad955ece7044fd1043b3914c"
    }
  }
}

Expected response: the generated invocation result shape. Use ausca_get_invocation for authoritative state and the receipt reference; a result above the inline bound arrives as output_artifact, readable through ausca_artifact_access.

05 / Lifecycle

One purchase identity to terminal state.

A connection can end while durable work continues. Read back the invocation; do not create a second purchase.

  1. 01 prepare
  2. 02 payment terms
  3. 03 admitted
  4. 04 running
  5. 05 terminal

A 202 response means the invocation was admitted, not that execution failed to finish inline. Read the same invocation until it reaches a terminal state.

Cancellation is a bounded request and can lose a race with completion. Results remain available for 24 hours. Retry uncertain purchases with the same idempotency key.

06 / Contract examples

A complete request, from authority.

Replace the example artifact commitment and idempotency key. Keep the same key when retrying an uncertain purchase.

Invocation request json
{
  "idempotency_key": "ausca-document-analysis-example-0001",
  "input": {
    "artifact": {
      "artifact_uri": "runx:artifact:sha256:4444444444444444444444444444444444444444444444444444444444444444",
      "content_digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
      "media_type": "application/pdf"
    },
    "feature_types": [
      "FORMS",
      "TABLES"
    ]
  },
  "input_schema_digest": "sha256:7093216a29925031972d61a7ab5f6013936aac9f81c3c54f51a00a3fef66759b",
  "offer_id": "document.analysis",
  "offer_revision": "analysis-bytes-r15",
  "offer_revision_digest": "sha256:6e0d6fb55bf4416ad8956b54304fc0240680d0acdad5978822340fdec3ae049b",
  "output_schema_digest": "sha256:a515b0864320c1a0c7ee7e6ee20ba1eadc94fe58ad955ece7044fd1043b3914c"
}
Result shape json
{
  "feature_counts": {
    "FORMS": 1,
    "TABLES": 0
  },
  "pages": [
    {
      "artifact_uri": "runx:artifact:sha256:6666666666666666666666666666666666666666666666666666666666666666",
      "content_digest": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
      "feature_counts": {
        "FORMS": 1,
        "TABLES": 0
      },
      "page_index": 1,
      "size_bytes": 1024
    }
  ],
  "schema": "ausca.document_analysis.manifest.v1",
  "source_digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555"
}

Recommended agent entry

ausca/document-analysis@0.2.1

Extract structured document data through Ausca's measured asynchronous document analysis service.

Read the exact SKILL.md
Digest-bound skill reference text
SKILL.md: https://ausca.com/skills/document-analysis/SKILL.md
Service: https://ausca.com/services/document-analysis
Endpoint: POST https://ausca.com/v1/analyze-document
Offer: document.analysis
Revision: sha256:6e0d6fb55bf4416ad8956b54304fc0240680d0acdad5978822340fdec3ae049b
Input schema: https://ausca.com/schemas/offers/document-analysis.input.schema.json
Output schema: https://ausca.com/schemas/offers/document-analysis.output.schema.json
Pricing: artifact_bytes; resolve binding terms from live preparation or payment challenge.

Executed through an Ausca-owned document analysis capability behind the governed provider boundary.