← AgentPay — 34 pay-per-call APIs
Persistent key-value memory scoped to your wallet - agents remember across runs.
$0.005 per request · USDC on Base (eip155:8453) · no signup, no API key
/v1/memory. An unpaid call answers 402 with signed payment terms — price, wallet, network.@x402/fetch) signs the terms and pays $0.005 in USDC on Base — no account, no API key.# 1. POST JSON — an unpaid call answers 402 with signed payment terms
curl -i -X POST https://agentpay.help/v1/memory \
-H 'Content-Type: application/json' \
-d '{"action":"get|set|delete|list (required)","key":"string (required for get/set/delete)","value":"any (required for set)","namespace":"string (optional, default 'default')"}'
# 2. Pay & retry automatically with any x402 client, e.g. @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
const paidFetch = wrapFetchWithPayment(fetch, { x402Version: 2 });
const res = await paidFetch("https://agentpay.help/v1/memory", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({"action":"get|set|delete|list (required)","key":"string (required for get/set/delete)","value":"any (required for set)","namespace":"string (optional, default 'default')"}) });
console.log(await res.json());
{
"ok": true,
"key": "…",
"namespace": "…",
"value": "…"
}
{
"action": "get|set|delete|list (required)",
"key": "string (required for get/set/delete)",
"value": "any (required for set)",
"namespace": "string (optional, default 'default')"
}
$0.005 per call, settled in USDC on Base. No subscription — you pay per successful request, and prepaid credit packs save up to 30%.
No. Your x402 client receives the 402 payment terms, pays USDC on Base, and retries automatically. No signup, no keys, no billing emails.
JSON. Shape: {"ok":"boolean","key":"string","namespace":"string","value":"any (on get)"}
Any HTTP client works: POST the JSON body, get a 402 with payment terms, sign with an x402 library (e.g. @x402/fetch), retry. The same tool is also available on our remote MCP server at https://agentpay.help/mcp.
Related: classify-insurance ($0.02) · web-scrape ($0.01) · image-describe ($0.03) Every endpoint is also an MCP tool on our remote MCP server. Prepaid credits: buy once, skip per-call payments.
Machine discovery: OpenAPI · x402 catalog · llms.txt