AIPayGen for ETHGlobal Agentic Markets
Pay-per-call tools for AI agents, paid in USDC over x402 or from prepaid credit. Hackers get a free key with $1.00 of credit and 200 free calls of the cheap tools. The first 150 keys only; the code stops working on 2026-12-12.
1. Get your key
No card, no email. The code is filled in. The key is shown once: copy it before you leave.
2. Pay per call from code (x402, no key)
Your agent signs the 402 quote with a wallet. Tool: token_security, checks a token contract for honeypots and risky settings.
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
// A wallet with a little USDC on Base. It needs no ETH: the facilitator pays the gas. No account, no API key.
const account = privateKeyToAccount(process.env.WALLET_KEY);
const pay = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});
// token_security, $0.003 a call: gets the 402 quote, signs it, sends the request again.
const res = await pay("https://aipaygen.com/v1/token_security?chain=base&address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913");
console.log(await res.json());3. Give your agent the tools (MCP, with your key)
The starter set: sixteen tools, one URL. Works in Claude Desktop, Claude Code, Cursor and VS Code. Then ask it:
{
"mcpServers": {
"aipaygen": {
"url": "https://mcp.aipaygen.com/mcp/starter",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}Use page_to_markdown on https://en.wikipedia.org/wiki/Model_Context_Protocol and summarize it in three lines.4. Spend your credit on other x402 sites (paid_fetch, then sanctions_check)
paid_fetch pays a site's x402 price from your credit, no wallet. sanctions_check screens crypto addresses against OFAC lists.
# paid_fetch buys a page from any x402 site with your credit: no wallet. Our fee is $0.001 + the site's price + 15%, plus the site's price.
curl -X POST https://aipaygen.com/v1/paid_fetch \
-H "Authorization: Bearer YOUR_API_KEY" -H "content-type: application/json" \
-d '{"url":"https://aipaygen.com/llms.txt","max_price_usd":0.05}'
# sanctions_check, $0.001 a call. The first 200 calls of the cheap tools are free:
curl "https://aipaygen.com/v1/sanctions_check?addresses=0x098B716B8Aaf21512996dC57EB0615e2383E2f96%2C0xebA22e8CD05Cb72A2F913099D6cCA666DD6D35B0" \
-H "Authorization: Bearer YOUR_API_KEY"Built with AIPayGen
Shipped something with these tools? We list hackathon projects on /showcase. Send the repo or demo link to hello@aipaygen.com.
Not at the hackathon? Get started gives you a regular free key. Every tool and its price: docs.