402 tools402 .dev
API · operational Browse endpoints
v1.0 · Base mainnet · USDC settlement

APIs your AI agent can pay for itself.

No account. No API key. No dashboard. Just HTTP 402, a USDC transfer on Base, and a clean JSON response. 100 endpoints across 6 categories — built for autonomous agents, billable to the cent.

Browse endpoints → View 5-min integration npm install tools402-client
Endpoints
100
Categories
6
Network
Basemainnet
Settle from
$0.0005/ call
~/agent · x402-flow.sh step 1 / 3
FR1 · Hetzner CX23 x402 · Coinbase 2025 standard Settled · USDC on Base Stateless · no PII, no logs of payloads Open · MIT client SDK · MCP tool
§2 · the problem

Agents need APIs. APIs need humans. Until now.

Every API on the market — Google, AWS, Twilio, Clearbit — assumes a human to register, file a credit card, and babysit a key. Agents don't do that. Friction kills autonomy. HTTP 402 finally does what it was named for in 1996.

Before · 2025

The human-gated API

Every call assumes a person on a Tuesday afternoon.

  • Sign up · email + verification
  • File a credit card
  • Generate API key
  • Watch a dashboard
  • Rotate, revoke, expense
After · tools402

The 402-native API

One curl. The server quotes a price. The agent pays it. Done.

  • POST /v1/<endpoint>
  • Receive 402 + USDC quote
  • Pay on Base · 1 confirmation
  • Retry with X-Payment header
  • Get JSON · ~1.2s end-to-end
For agents

Zero human in the loop

LangChain, AutoGPT, n8n, Claude Code, GPT Agents — all autonomous on day one.

  • No account state to manage
  • No key to leak or rotate
  • Per-call accounting, on-chain
  • Drop-in MCP tool
  • Integrate in < 5 min
§4 · the product

One platform. Six categories.

100 micro-service endpoints. Each one stateless, priced per call, and consumable from any agent runtime. Click a category to browse.

Integration · 5 minutes

Three lines. Same shape in any language.

The official client SDK handles the full 402 → pay → retry dance for you. Drop in a wallet, call any endpoint, receive JSON. Wallet stays under your control.

# 1 · ask the endpoint, get a 402 quote
curl -i -X POST https://api.tools402.dev/v1/pdf-md \
     -F "file=@receipt.pdf"

# → HTTP/1.1 402 Payment Required
# → { "x402Version":1, "accepts":[{"scheme":"exact","network":"base",
#       "maxAmountRequired":"10000","asset":"0x833589fCD6...02913",
#       "payTo":"0x3b9F199D...759e","resource":"/v1/pdf-md",
#       "mimeType":"application/json","maxTimeoutSeconds":60}],
#     "error":"X-PAYMENT header is required" }

# 2 · pay 0.010 USDC on Base, then retry with X-Payment (base64url)
curl -X POST https://api.tools402.dev/v1/pdf-md \
     -H 'X-Payment: eyJ4NDAyVmVyc2lvbiI6MS4uLg==' \
     -F "file=@receipt.pdf"

# → 200 OK
# → { "markdown":"# Receipt\n\n...","pages":2 }
§8 · pricing philosophy

Pay per use. Fractions of a cent. No surprises.

No subscription. No free tier. No account. Endpoints are priced by the cost of the underlying compute — trivial calls cost $0.0005, heavy AI work tops out near $0.020. Settlement is direct, on-chain, in USDC. The wallet on the receiving end is ours; the wallet paying is yours.

⚪ trivialUUID, color convert, regex test, base64$0.0001 – $0.001
🟡 lightIP enrich, IBAN, JSON validate, OCR, scraping, screenshot$0.001 – $0.010
🔴 heavyPDF → JSON, audio diarize, image caption, background remove$0.010 – $0.030
ship today

Wire your agent to autonomous money in five minutes.

Open the docs, copy a curl, fund a wallet with $1 of USDC on Base. That's your runway for ~200 invoice extractions, ~1000 IP lookups, or ~20000 UUIDs.

no email · no signup · no rotation calendar
$ curl https://api.tools402.dev/v1/uuid-generate \ -H 'X-Payment: eyJ4NDAyVmVyc2lvbiI6MS4uLg==' 200 OK { "uuid": "4e9f1b8c-…-9001", "cost": "$0.0001", "settled": true }