Skip to content
Back to schemasure.com

Card snapshot

schemasure.com · 2026-07-31 18:57:11 UTC · 5580bdcc53c2827acb39b2321ae4fdb3e06e8aadc97e6ac2cca9a57cb5d4dca1

This is a frozen copy of the agent's agent-card.json as we observed it at the timestamp above. We capture a new snapshot every time the card's content hash changes. Useful for: forensic drift analysis, verifying downstream callers see the right version, reproducing routing decisions made historically.

{
  "protocolVersion": "0.2.0",
  "name": "SchemaSure",
  "description": "Pay-per-call APIs that extract strict, JSON-Schema-valid typed JSON from unstructured text, HTML, or document images. Output is guaranteed to validate against the caller-supplied JSON Schema (Ajv, draft 2020-12) or the request returns a typed error and is not charged (charge-only-on-success). Both production services use x402 V2 with USDC on Base mainnet; the image service is always paid and has no V1 or free route. A legacy V1 text endpoint provides limited free evaluation calls. No signup, API keys, or account dashboard \u2014 built for autonomous AI agents.",
  "url": "https://schemasure.com/v2/extract",
  "preferredTransport": "JSONRPC",
  "provider": {
    "organization": "SchemaSure",
    "url": "https://schemasure.com"
  },
  "version": "0.2.0",
  "documentationUrl": "https://schemasure.com/llms.txt",
  "iconUrl": "https://schemasure.com/icon.svg",
  "capabilities": {
    "streaming": false,
    "pushNotifications": false,
    "stateTransitionHistory": false
  },
  "defaultInputModes": [
    "application/json",
    "text/plain",
    "image/png",
    "image/jpeg",
    "image/webp"
  ],
  "defaultOutputModes": [
    "application/json"
  ],
  "skills": [
    {
      "id": "extract_to_schema",
      "name": "Extract to JSON Schema",
      "description": "Turn any unstructured text or HTML into JSON that is guaranteed to validate against a caller-supplied JSON Schema, or return a typed error with no charge. General-purpose: your schema defines the domain (invoices, receipts, resumes, product pages, logs, etc.) \u2014 there is no per-document-type specialization. For best accuracy, add a `description` to ambiguous fields (e.g. \"tax rate as a decimal such as 0.0725\") and make optional fields nullable so absent values return null instead of a guess. Accepts text/HTML input (inputType text|html|auto); OCR noise, number/date formats, and detail lines are normalized automatically. Benchmarked 100% schema-valid with ~0.99 field F1 and zero hallucinations across a 10-doc-type corpus (11 items, incl. an adversarial prompt-injection tier), p50 latency ~1.5s. Evidence: /.well-known/benchmarks.json. Live operational counters are at /metrics.",
      "tags": [
        "x402",
        "structured-output",
        "ai-agents",
        "structured-data",
        "json",
        "extraction",
        "schema",
        "json-schema",
        "text-to-json",
        "image-to-json",
        "ocr",
        "vision",
        "data-cleaning",
        "parsing",
        "llm",
        "agents"
      ],
      "examples": [
        "Extract invoice fields into {invoiceNumber, total, dueDate} as valid JSON.",
        "Turn this resume text into a structured JSON object matching my schema.",
        "Parse this HTML product page into {name, price, sku} JSON."
      ],
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "input",
          "schema"
        ],
        "properties": {
          "input": {
            "type": "string",
            "minLength": 1,
            "description": "Raw unstructured content to extract from (plain text or HTML)."
          },
          "inputType": {
            "type": "string",
            "enum": [
              "text",
              "html",
              "auto"
            ],
            "default": "auto",
            "description": "How to interpret `input`: plain text, HTML, or auto-detect (default)."
          },
          "schema": {
            "type": "object",
            "description": "JSON Schema (draft 2020-12) that the returned `data` is guaranteed to satisfy."
          },
          "options": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "maxRepairs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 5,
                "description": "Max validate->re-prompt repair iterations."
              },
              "strict": {
                "type": "boolean",
                "default": true,
                "description": "Drop fields not present in the schema."
              },
              "deterministic": {
                "type": "boolean",
                "default": true,
                "description": "Enable deterministic pre-extraction hints."
              }
            }
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "description": "Extracted value; guaranteed to validate against the request `schema`."
          },
          "meta": {
            "type": "object",
            "required": [
              "repairs",
              "latencyMs",
              "validated"
            ],
            "properties": {
              "repairs": {
                "type": "integer"
              },
              "latencyMs": {
                "type": "integer"
              },
              "validated": {
                "const": true
              },
              "deterministicFields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    {
      "id": "extract_image_to_schema",
      "name": "Extract Document Image to JSON Schema",
      "description": "Turn a base64-encoded PNG, JPEG, or WebP scan or document image into JSON guaranteed to validate against a caller-supplied JSON Schema, or return a typed error with no charge. Useful for invoices, receipts, forms, labels, screenshots, and photographed documents. This service is V2-only, always paid, and has no free or V1 image endpoint. Add descriptions to ambiguous schema fields for best accuracy.",
      "tags": [
        "x402",
        "structured-output",
        "ai-agents",
        "structured-data",
        "json",
        "extraction",
        "schema",
        "json-schema",
        "text-to-json",
        "image-to-json",
        "ocr",
        "vision",
        "data-cleaning",
        "parsing",
        "llm",
        "agents"
      ],
      "examples": [
        "Extract invoice number, vendor, dates, line items, tax, and total from this invoice scan.",
        "Read this receipt image into a schema with merchant, items, subtotal, tax, and total.",
        "Convert this photographed form into validated structured JSON."
      ],
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "image",
          "schema"
        ],
        "properties": {
          "image": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "data",
              "mimeType"
            ],
            "properties": {
              "data": {
                "type": "string",
                "minLength": 1,
                "contentEncoding": "base64",
                "description": "Base64-encoded image bytes without a data-URL prefix."
              },
              "mimeType": {
                "type": "string",
                "enum": [
                  "image/png",
                  "image/jpeg",
                  "image/webp"
                ],
                "description": "Declared image media type; it must match the decoded file signature."
              }
            }
          },
          "schema": {
            "type": "object",
            "description": "JSON Schema (draft 2020-12) that the returned `data` is guaranteed to satisfy."
          },
          "options": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "maxRepairs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 5,
                "description": "Max validate->re-prompt repair iterations."
              },
              "strict": {
                "type": "boolean",
                "default": true,
                "description": "Drop fields not present in the schema."
              }
            }
          }
        }
      },
      "outputSchema": {
        "type": "object",
        "required": [
          "data",
          "meta"
        ],
        "properties": {
          "data": {
            "description": "Extracted value; guaranteed to validate against the request `schema`."
          },
          "meta": {
            "type": "object",
            "required": [
              "repairs",
              "latencyMs",
              "validated"
            ],
            "properties": {
              "repairs": {
                "type": "integer"
              },
              "latencyMs": {
                "type": "integer"
              },
              "validated": {
                "const": true
              },
              "deterministicFields": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  ],
  "x-payment": {
    "protocol": "x402",
    "version": 2,
    "primary": true,
    "resource": "https://schemasure.com/v2/extract",
    "network": "eip155:8453",
    "asset": "USDC",
    "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "priceUsd": 0.01,
    "pricing": "$0.01/call, flat, failed calls free",
    "chargeModel": "charge-only-on-success",
    "alwaysPaid": true,
    "resources": [
      {
        "capability": "extract_to_schema",
        "resource": "https://schemasure.com/v2/extract",
        "priceUsd": 0.01,
        "pricing": "$0.01/call, flat, failed calls free"
      },
      {
        "capability": "extract_image_to_schema",
        "resource": "https://schemasure.com/v2/extract-image",
        "priceUsd": 0.03,
        "pricing": "$0.03/image, flat, failed calls free",
        "v1Available": false
      }
    ]
  },
  "legacyEvaluation": {
    "resource": "https://schemasure.com/extract",
    "x402Version": 1,
    "freeCallsPerClient": 3
  }
}