Skip to content
Fourohtwo

schemasure.com/v2/extract-image

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.

BaseAnswering
POSThttps://schemasure.com/v2/extract-image

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://schemasure.com/v2/extract-image", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"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"],"),
});
console.log(await res.json());

Example input

{"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"],"

More from SchemaSureProvider status