{
  "format": "delx/intent-card/v1",
  "id": "pdf-text-extraction-api",
  "intent": "extract text from a PDF for an agent",
  "title": "PDF text extraction API for agents",
  "description": "Extract bounded UTF-8 text from one caller-supplied PDF for $0.003 with SHA-256 receipt and no document storage, URL fetch or scanned-image OCR.",
  "keywords": [
    "PDF text extraction API",
    "PDF parser for agents",
    "document processing API",
    "PDF to text",
    "x402 PDF"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/pdf-text-extraction-api",
  "machine_url": "https://commerce.delx.ai/intents/pdf-text-extraction-api.json",
  "recommendation": {
    "tool_name": "extract_pdf_text",
    "service_name": "PDF Text Extraction for Agents",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/pdf-text",
    "price_usdc": "0.003",
    "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
        }
      },
      "required": [
        "pdf_base64"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "pdf_base64": "\u003cbase64 PDF up to 4 MiB decoded>",
      "max_chars": 200000
    },
    "example_output": {
      "schema": "delx/pdf-text/v1",
      "scope": "pdf_text",
      "document_id": "pdf_6fd2b8d1b8ddf0f3e9a9b2c4d5e6f708",
      "input_sha256": "6fd2b8d1b8ddf0f3e9a9b2c4d5e6f7081234567890abcdef1234567890abcdef",
      "output_sha256": "c5f7b2d4c1e7a0f9b6d2e8c3a4f5b6071234567890abcdef1234567890abcdef",
      "bytes": 48210,
      "text": "Extracted PDF text",
      "chars": 19,
      "pages_observed": 2,
      "truncated": false,
      "provider": "first-party",
      "model": "poppler-pdftotext",
      "upstream_cost_usd": 0,
      "sale_price_usdc": 0.003,
      "gross_margin_floor_usd": 0.0028425,
      "attribution": "Text extracted locally by Delx with Poppler; no document is stored, fetched, or sent to a third-party provider. Scanned-image OCR is not included."
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/pdf-text -m POST -H 'x-delx-source: intent-card-pdf-text-extraction-api' --max-amount 0.003 -b '{\"pdf_base64\":\"\u003cbase64 PDF up to 4 MiB decoded>\",\"max_chars\":200000}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-pdf-text-extraction-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-text"
  }
}
