{
  "x402Version": 2,
  "id": 31245,
  "slug": "31245",
  "resource": "https://mart402.com/v1/ocr",
  "description": "OCR image to text with hallucination guard: dual-engine consensus, calibrated confidence, per-segment corroboration. Japanese-strong (latin too). Flat 0.05/image.",
  "type": "http",
  "serviceName": "Mart402",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xE3244a21D0d68bFa78b7CAd8C3b8777aDFbB3188",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "image_url": "https://mart402.com/samples/assets/receipt.png",
            "lang": "japanese"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "description": "JSON: text, ocr_quality (calibrated confidence, hallucination flags), dual-engine consensus verdict",
          "example": {
            "chars": 28,
            "consensus": {
              "agreement": 0.957,
              "best_engine": "mistral",
              "confidence": 0.978,
              "flags": [],
              "segment_support": {
                "checked_segments": 1,
                "least_corroborated": [
                  {
                    "support": 1,
                    "text": "MART402 SELFCAL 2026-07-27"
                  }
                ],
                "note": "support = corroboration by the second engine, not correctness. Verify low-ranked segments first, especially numbers and legal text.",
                "weak_segments": []
              },
              "verdict": "high_consensus"
            },
            "engines": [
              "gcv",
              "mistral"
            ],
            "mime": "image/png",
            "note": "SAMPLE RESPONSE (recorded from a real production call on 2026-07-27). This product is LLM-backed and runs on production (mart402.com) only; the sandbox returns this fixed sample so you can see the exact response shape for free. No payment was taken.",
            "ok": true,
            "sample": true,
            "seconds": 0.68,
            "text": "# MART402 SELFCAL 2026-07-27"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "image_url": {
                    "type": "string"
                  },
                  "lang": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "offer-receipt": {
      "info": {
        "offers": [
          {
            "acceptIndex": 0,
            "format": "jws",
            "signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDp3ZWI6bWFydDQwMi5jb20ja2V5LTEifQ.eyJhbW91bnQiOiI1MDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwibmV0d29yayI6ImVpcDE1NTo4NDUzIiwicGF5VG8iOiIweEUzMjQ0YTIxRDBkNjhiRmE3OGI3Q0FkOEMzYjg3NzdhREZiQjMxODgiLCJyZXNvdXJjZVVybCI6Imh0dHBzOi8vbWFydDQwMi5jb20vdjEvb2NyIiwic2NoZW1lIjoiZXhhY3QiLCJ2YWxpZFVudGlsIjoxNzkxNDQwMDExLCJ2ZXJzaW9uIjoxfQ.HEpW1YaB2cBnTOJxrcHh5-K7JN4gAP0mU-pOZ7yj6VQIfESLPPSGFVSlBmrHzEzXarYFFkkVkOGelFiYhSC_DA"
          }
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "offers": {
            "items": {
              "properties": {
                "acceptIndex": {
                  "type": "integer"
                },
                "format": {
                  "const": "jws",
                  "type": "string"
                },
                "signature": {
                  "description": "JWS compact serialization containing the offer payload",
                  "type": "string"
                }
              },
              "required": [
                "format",
                "signature"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "offers"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "offer-receipt"
  ],
  "sourceHost": "mart402.com",
  "lastUpdated": "2026-10-08T06:08:31.914Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:08:31.805Z"
  },
  "metadata": {
    "serviceName": "Mart402",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "image_url": "https://mart402.com/samples/assets/receipt.png",
              "lang": "japanese"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "description": "JSON: text, ocr_quality (calibrated confidence, hallucination flags), dual-engine consensus verdict",
            "example": {
              "chars": 28,
              "consensus": {
                "agreement": 0.957,
                "best_engine": "mistral",
                "confidence": 0.978,
                "flags": [],
                "segment_support": {
                  "checked_segments": 1,
                  "least_corroborated": [
                    {
                      "support": 1,
                      "text": "MART402 SELFCAL 2026-07-27"
                    }
                  ],
                  "note": "support = corroboration by the second engine, not correctness. Verify low-ranked segments first, especially numbers and legal text.",
                  "weak_segments": []
                },
                "verdict": "high_consensus"
              },
              "engines": [
                "gcv",
                "mistral"
              ],
              "mime": "image/png",
              "note": "SAMPLE RESPONSE (recorded from a real production call on 2026-07-27). This product is LLM-backed and runs on production (mart402.com) only; the sandbox returns this fixed sample so you can see the exact response shape for free. No payment was taken.",
              "ok": true,
              "sample": true,
              "seconds": 0.68,
              "text": "# MART402 SELFCAL 2026-07-27"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "image_url": {
                      "type": "string"
                    },
                    "lang": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "offer-receipt": {
        "info": {
          "offers": [
            {
              "acceptIndex": 0,
              "format": "jws",
              "signature": "eyJhbGciOiJFZERTQSIsImtpZCI6ImRpZDp3ZWI6bWFydDQwMi5jb20ja2V5LTEifQ.eyJhbW91bnQiOiI1MDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwibmV0d29yayI6ImVpcDE1NTo4NDUzIiwicGF5VG8iOiIweEUzMjQ0YTIxRDBkNjhiRmE3OGI3Q0FkOEMzYjg3NzdhREZiQjMxODgiLCJyZXNvdXJjZVVybCI6Imh0dHBzOi8vbWFydDQwMi5jb20vdjEvb2NyIiwic2NoZW1lIjoiZXhhY3QiLCJ2YWxpZFVudGlsIjoxNzkxNDQwMDExLCJ2ZXJzaW9uIjoxfQ.HEpW1YaB2cBnTOJxrcHh5-K7JN4gAP0mU-pOZ7yj6VQIfESLPPSGFVSlBmrHzEzXarYFFkkVkOGelFiYhSC_DA"
            }
          ]
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "offers": {
              "items": {
                "properties": {
                  "acceptIndex": {
                    "type": "integer"
                  },
                  "format": {
                    "const": "jws",
                    "type": "string"
                  },
                  "signature": {
                    "description": "JWS compact serialization containing the offer payload",
                    "type": "string"
                  }
                },
                "required": [
                  "format",
                  "signature"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "offers"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "mart402.com",
    "manifest_name": "mart402.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}