{
  "format": "delx/intent-card/v1",
  "id": "pdf-ocr-api",
  "intent": "OCR a scanned PDF for an agent",
  "title": "Scanned PDF OCR API for agents",
  "description": "OCR up to 10 pages of one caller-supplied scanned PDF for $0.01 with confidence, page counts and SHA-256 receipt—no URL fetch, storage or paid vision provider.",
  "keywords": [
    "scanned PDF OCR API",
    "PDF OCR for agents",
    "document OCR API",
    "Tesseract PDF OCR",
    "x402 PDF OCR"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/pdf-ocr-api",
  "machine_url": "https://commerce.delx.ai/intents/pdf-ocr-api.json",
  "recommendation": {
    "tool_name": "extract_pdf_ocr",
    "service_name": "Scanned PDF OCR for Agents",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/pdf-ocr",
    "price_usdc": "0.01",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "pdf_base64": {
          "type": "string",
          "minLength": 1,
          "maxLength": 5592406,
          "description": "One base64-encoded PDF up to 4 MiB decoded; application/pdf data URIs are accepted."
        },
        "file_base64": {
          "type": "string",
          "minLength": 1,
          "maxLength": 5592406,
          "description": "Alias for pdf_base64."
        },
        "max_chars": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200000,
          "default": 200000
        },
        "max_pages": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10,
          "default": 10
        },
        "psm": {
          "type": "integer",
          "enum": [
            3,
            6,
            11
          ],
          "default": 6,
          "description": "Tesseract page segmentation mode for machine-printed text."
        }
      },
      "required": [
        "pdf_base64"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "pdf_base64": "\u003cbase64 scanned PDF up to 4 MiB decoded>",
      "max_pages": 10,
      "max_chars": 200000,
      "psm": 6
    },
    "example_output": {
      "schema": "delx/ocr/v1",
      "scope": "pdf_ocr",
      "document_id": "pdf_ocr_6fd2b8d1b8ddf0f3e9a9b2c4d5e6f708",
      "input_sha256": "6fd2b8d1b8ddf0f3e9a9b2c4d5e6f7081234567890abcdef1234567890abcdef",
      "output_sha256": "c5f7b2d4c1e7a0f9b6d2e8c3a4f5b6071234567890abcdef1234567890abcdef",
      "bytes": 48210,
      "text": "--- Page 1 ---\nPrinted text recognized from a scanned PDF",
      "chars": 51,
      "words_observed": 9,
      "confidence": 94.12,
      "language": "eng",
      "psm": 6,
      "pages_observed": 1,
      "total_pages": 1,
      "truncated": false,
      "provider": "first-party",
      "model": "tesseract-5+poppler",
      "upstream_cost_usd": 0,
      "sale_price_usdc": 0.01,
      "gross_margin_floor_usd": 0.0095275,
      "attribution": "Text recognized locally by Delx with Tesseract and Poppler; no document is stored, fetched, or sent to a third-party provider."
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/pdf-ocr -m POST -H 'x-delx-source: intent-card-pdf-ocr-api' --max-amount 0.01 -b '{\"pdf_base64\":\"\u003cbase64 scanned PDF up to 4 MiB decoded>\",\"max_pages\":10,\"max_chars\":200000,\"psm\":6}'",
      "max_amount_usdc": "0.01"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-pdf-ocr-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/pdf-ocr"
  }
}
