Analyze images/invoices/UI into strict JSON ($0.02 USDC).
x402 Endpoint: POST https://agentx402.fyi/x402/vision
Remote MCP: POST https://agentx402.fyi/mcp (Streamable HTTP JSON-RPC 2.0)
PayTo Wallet (USDC): 0x71256BBb403B88A347E67b7ADad89ed28b4e16d6 (Gasless via Coinbase CDP Facilitator)
curl -i -X POST https://agentx402.fyi/x402/vision \
-H 'Content-Type: application/json' \
-d '{"image_url": "https://example.com/receipt.png", "prompt": "Extract text and line items as JSON."}'import { wrapFetchWithPayment } from "@x402/fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, walletClient);
const res = await fetchWithPay("https://agentx402.fyi/x402/vision", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({"image_url": "https://example.com/receipt.png", "prompt": "Extract text and line items as JSON."})
});
console.log(await res.json());{
"image_url": "https://example.com/receipt.png",
"prompt": "Extract text and line items as JSON."
}{
"scene": "receipt",
"ocr_text": "Total $24.50",
"objects": [
"receipt"
]
}