{
  "serviceId": "ocr-document-parsing",
  "displayName": "OCR Document Parsing",
  "description": "OCR and document parsing: turn an image or PDF into extracted text with layout hints. POST /v1/ocr with a document (or raw text) in the body and get the extracted text and metrics as one JSON object. Deterministic on clean inputs at a fixed engine version. Pay per request in USDC; no account, no API key.",
  "category": "documents",
  "resourceUrl": "https://agent.pocket.network/v1/ocr-document-parsing",
  "priceUsd": "0.005000",
  "priceVersion": 1,
  "rails": [
    {
      "id": "base",
      "network": "eip155:8453",
      "chainId": 8453,
      "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "tokenDecimals": 6,
      "payToAddress": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
    }
  ],
  "protocols": [
    "rest"
  ],
  "inputSchema": {
    "type": "object",
    "description": "Provide a document to OCR or raw text; input lives in the body since callers cannot send headers.",
    "properties": {
      "image": {
        "type": "string",
        "description": "Base64-encoded image."
      },
      "pdf": {
        "type": "string",
        "description": "Base64-encoded PDF."
      },
      "text": {
        "type": "string",
        "description": "Raw text (bypasses OCR)."
      }
    },
    "required": []
  },
  "outputSchema": {
    "type": "object",
    "description": "For POST /v1/ocr, a JSON object with the extracted text, character count (`chars`), and layout hints. The exact shape is the service's own and is not pinned here; errors return a JSON object with an `error` field, and the GET routes return their own small JSON documents."
  },
  "methods": {
    "GET /v1/health": "read",
    "GET /v1/version": "read",
    "POST /v1/ocr": "read"
  },
  "firstParty": true,
  "networks": [
    "eip155:8453"
  ],
  "serving": true,
  "page": "https://agent.pocket.network/services/ocr-document-parsing",
  "descriptor": "https://agent.pocket.network/services/ocr-document-parsing/descriptor.json"
}