x402USDC on BaseNo API keyNo signup

Agent Hub

Pay-per-call web utilities for AI agents. Call the endpoint, get a 402 with the price, pay inline, get the result.

curl -X POST https://api.example.com/v1/markdown \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com"}'
# 402 Payment Required  ->  PAYMENT-REQUIRED: {price: "$0.01", payTo: ..., network: "eip155:8453"}
# pay with any x402 client (@x402/fetch, AgentKit, Cloudflare Agents SDK) and retry

Endpoints

RoutePriceWhat it does
Loading from /.well-known/x402 ...

Why agents use it

One wallet, eleven tools

Search, read, extract, render, infer, verify. Everything a research or coding agent hits inside a loop, priced from $0.001.

Zero onboarding

No keys, no accounts, no rate-limit tiers. Payment is the authentication.

Machine-readable

OpenAPI, llms.txt, x402 discovery, and Bazaar metadata on every route.

Real browser

Markdown, scrape, extract, PDF and screenshot run in a headless Chromium at the edge, so JavaScript pages work.

Pay from code

import { wrapFetchWithPayment } from "@x402/fetch";
const fetchPaid = wrapFetchWithPayment(fetch, client); // your x402 client + wallet
const r = await fetchPaid("https://api.example.com/v1/search", {
  method: "POST", headers: { "content-type": "application/json" },
  body: JSON.stringify({ query: "latest cloudflare x402 news", limit: 5 })
});
console.log(await r.json());