{
  "x402Version": 2,
  "id": 1475,
  "slug": "1475",
  "resource": "https://schemasure.com/v2/extract-image",
  "description": "Extract strict, JSON-Schema-valid typed JSON from a PNG, JPEG, or WebP document image. Failed extraction calls are not settled. Always-paid x402 V2 image API.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x9876af0F6D8Ed5155Cd02d1ca56D128601612690",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "30000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "image": {
              "data": "<base64-encoded PNG, JPEG, or WebP bytes>",
              "mimeType": "image/png"
            },
            "schema": {
              "additionalProperties": false,
              "properties": {
                "invoiceNumber": {
                  "description": "Invoice identifier exactly as printed.",
                  "type": "string"
                },
                "total": {
                  "description": "Final amount due as a number, without currency symbols.",
                  "type": "number"
                },
                "vendor": {
                  "type": "string"
                }
              },
              "required": [
                "invoiceNumber",
                "vendor",
                "total"
              ],
              "type": "object"
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "invoiceNumber": "INV-2048",
              "total": 382.45,
              "vendor": "Northstar Supplies"
            },
            "meta": {
              "latencyMs": 910,
              "repairs": 0,
              "validated": true
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "image": {
                    "additionalProperties": false,
                    "properties": {
                      "data": {
                        "contentEncoding": "base64",
                        "description": "Base64-encoded image bytes without a data-URL prefix.",
                        "minLength": 1,
                        "type": "string"
                      },
                      "mimeType": {
                        "description": "Declared image media type; it must match the decoded file signature.",
                        "enum": [
                          "image/png",
                          "image/jpeg",
                          "image/webp"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "data",
                      "mimeType"
                    ],
                    "type": "object"
                  },
                  "options": {
                    "additionalProperties": false,
                    "properties": {
                      "maxRepairs": {
                        "description": "Max validate->re-prompt repair iterations.",
                        "maximum": 5,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "strict": {
                        "default": true,
                        "description": "Drop fields not present in the schema.",
                        "type": "boolean"
                      }
                    },
                    "type": "object"
                  },
                  "schema": {
                    "description": "JSON Schema (draft 2020-12) that the returned `data` is guaranteed to satisfy.",
                    "type": "object"
                  }
                },
                "required": [
                  "image",
                  "schema"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "description": "Extracted value; guaranteed to validate against the request `schema`."
                  },
                  "meta": {
                    "properties": {
                      "deterministicFields": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "latencyMs": {
                        "type": "integer"
                      },
                      "repairs": {
                        "type": "integer"
                      },
                      "validated": {
                        "const": true
                      }
                    },
                    "required": [
                      "repairs",
                      "latencyMs",
                      "validated"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "schemasure.com",
  "lastUpdated": "2026-09-18T07:40:49.835Z",
  "quality": {
    "calls30d": 30,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-18T07:40:49.517Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "schemasure.com",
    "manifest_name": "schemasure.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}