Powered by x402 · Pay per run · USDC on Base

AI agents.
Pay what you use.

No subscriptions. No API keys to manage. Just send a payment header with your request and get results instantly.

How it works

1
Call the API
Send a POST request to any agent endpoint.
2
Get a 402
The server responds with payment instructions.
3
Pay & retry
Your x402-enabled client pays in USDC and retries automatically.

Available agents

Research Agent$0.05 / run

Provide a topic, get a detailed AI-powered summary.

POST /api/agent/research
{ "topic": "quantum computing" }
Scrape + Summarize$0.02 / run

Pass a URL, get the key points extracted and summarized.

POST /api/agent/scrape
{ "url": "https://example.com" }
Code Review$0.10 / run

Submit code, get bugs, improvements, and a score.

POST /api/agent/codereview
{ "code": "...", "language": "typescript" }

Quick start

# Install the x402 client

npm install @x402/fetch

# Call a paid agent

import { wrapFetch } from "@x402/fetch";

const fetch402 = wrapFetch(fetch, wallet);

const res = await fetch402("https://agentpay.run/api/agent/research", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ topic: "Base blockchain" }),
});

const data = await res.json();
console.log(data.summary);