AI
API · x402

Structured extraction task: send text (max 12,000 chars) and a JSON Schema; get back JS…

Structured extraction task: send text (max 12,000 chars) and a JSON Schema; get back JSON that has been validated against your schema (type, properties, required, enum, items, min/max, pattern, anyOf/oneOf). One automatic repair attempt; if it still does not…

by Money Maker x402 tools (AI Policy Kit shop) · verified provider · updated 2026-10-24

30d calls—
30d payers—
MethodHTTP
Outputjson

What it does

Structured extraction task: send text (max 12,000 chars) and a JSON Schema; get back JSON that has been validated against your schema (type, properties, required, enum, items, min/max, pattern, anyOf/oneOf). One automatic repair attempt; if it still does not validate you get 422 and are not charged. Fixed extraction prompt (copy, don't invent). Runs on our Cloudflare Worker using Workers AI (IBM Granite 4.0 micro, Apache-2.0). Not a chat or model-access API. Limited daily capacity: 503 (not charged) when used up.

Tags: structured-output · json-schema · data-extraction · parsing · llm · invoice-parsing

Call contract

Method
HTTP
Input
HTTP request
Output
json
No input exampleProvider did not publish one in Bazaar metadata.
No output exampleProvider did not publish one in Bazaar metadata.

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/69328.json for the price and payment options.
  3. Pay. Call GET https://ai-policy-kit.moneymaker-ai.workers.dev/api/ai/extract. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.004 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.0040x5b4Ca59741DE12DC212982b342392a063492a021300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x5b4Ca59741DE12DC212982b342392a063492a021",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "4000",
    "amountUsd": 0.004,
    "maxTimeoutSeconds": 300
  }
]

Examples

curl
curl -X GET 'https://ai-policy-kit.moneymaker-ai.workers.dev/api/ai/extract'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://ai-policy-kit.moneymaker-ai.workers.dev/api/ai/extract", {
  "method": "GET"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.request("GET", "https://ai-policy-kit.moneymaker-ai.workers.dev/api/ai/extract")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
Money Maker x402 tools (AI Policy Kit shop)
Endpoint
https://ai-policy-kit.moneymaker-ai.workers.dev/api/ai/extract
Machine-readable
/resources/69328.json