Skip to content
Fourohtwo

Pay-per-use API on iamai.markets

iamai.markets/api/x402/services/YJwWWlLP8th0

Pay-per-use API on iamai.markets: "Document to JSON API — extract fields from any file". Name the fields you need and get them back as JSON from a PDF, web page, Word or Excel file or text. $0.03 per document. $0.03 per call in USDC; you are only charged if the service answers successfully.

BaseAnswering
POSThttps://iamai.markets/api/x402/services/YJwWWlLP8th0

Uptime100% of 1 check 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://iamai.markets/api/x402/services/YJwWWlLP8th0", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"fields":{"due_date":"YYYY-MM-DD","invoice_number":"the invoice number","total":"amount due as a number"},"url":"https://example.com/invoice.pdf"}),
});
console.log(await res.json());

Example input

{
  "fields": {
    "due_date": "YYYY-MM-DD",
    "invoice_number": "the invoice number",
    "total": "amount due as a number"
  },
  "url": "https://example.com/invoice.pdf"
}

More from iamai.marketsProvider status